blob: 8ad6be3e7fe5296666a993ae5fed56d1f2fb9a16 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI="5"
PYTHON_COMPAT=( python{2_7,3_6} )
inherit python-any-r1 vala toolchain-funcs multilib eutils multiprocessing
DESCRIPTION="XML parser written in Vala"
HOMEPAGE="https://birdfont.org/xmlbird.php"
SRC_URI="https://birdfont.org/xmlbird-releases/${P}.tar.xz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
# The test build logic needs work. Doesn't respect compiler settings.
RESTRICT="test"
DEPEND="${PYTHON_DEPS}
$(python_gen_any_dep 'dev-python/doit[${PYTHON_USEDEP}]')"
src_prepare() {
vala_src_prepare
epatch "${FILESDIR}"/${PN}-1.2.0-configure-valac.patch
epatch "${FILESDIR}"/${PN}-1.2.0-libdir.patch
sed -i \
-e "s:pkg-config:$(tc-getPKG_CONFIG):" \
configure dodo.py || die
sed -i \
-e '/tests.build_tests/d' \
build.py || die
}
v() {
echo "$@"
"$@" || die
}
src_configure() {
v ./configure \
--prefix "${EPREFIX}/usr" \
--libdir "$(get_libdir)" \
--valac "${VALAC}" \
--cc "$(tc-getCC)" \
--cflags "${CFLAGS} ${CPPFLAGS}" \
--ldflags "${LDFLAGS}"
}
src_compile() {
v doit run -n $(makeopts_jobs)
}
src_install() {
v ./install.py --dest "${D}"
dodoc NEWS README.md
}
|