blob: 4f8d98cb1a461ea0c8034f5f2cb968c85e081627 (
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
|
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-libs/gupnp-igd/gupnp-igd-0.2.2-r1.ebuild,v 1.6 2014/01/18 20:16:44 ago Exp $
EAPI=5
PYTHON_COMPAT=( python2_7 )
AUTOTOOLS_AUTORECONF=true
inherit autotools-utils gnome.org python-r1
DESCRIPTION="Library to handle UPnP IGD port mapping for GUPnP"
HOMEPAGE="http://gupnp.org"
LICENSE="LGPL-2"
SLOT="0"
KEYWORDS="alpha amd64 ~arm hppa ia64 ~ppc ~ppc64 ~sparc ~x86"
IUSE="+introspection python"
RDEPEND="
net-libs/gssdp
>=net-libs/gupnp-0.18
>=dev-libs/glib-2.16:2
introspection? ( >=dev-libs/gobject-introspection-0.10 )
python? (
>=dev-libs/gobject-introspection-0.10
>=dev-python/pygobject-2.16:2[${PYTHON_USEDEP}]
)"
DEPEND="${RDEPEND}
dev-util/gtk-doc-am
sys-devel/gettext
virtual/pkgconfig
"
# The only existing test is broken
RESTRICT="test"
PATCHES=(
"${FILESDIR}"/${P}-underlinking.patch
"${FILESDIR}"/${PN}-0.1.11-disable_static_modules.patch
)
src_prepare() {
rm missing || die
sed -i 's/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/g' configure.ac || die
# Python bindings are built/installed manually.
if use python; then
sed -e "/PYTHON_SUBDIR =/s/ python//" -i Makefile.am Makefile.in || die
fi
autotools-utils_src_prepare
}
src_configure() {
local myeconfargs=(
--disable-static
--disable-gtk-doc
$(use_enable introspection)
$(use_enable python)
)
autotools-utils_src_configure
}
src_compile() {
autotools-utils_src_compile
if use python; then
python_copy_sources
building() {
cd "${BUILD_DIR}"/python || die
emake \
PYTHON_INCLUDES="-I$(python_get_includedir)" \
pyexecdir="$(python_get_sitedir)"
}
python_foreach_impl building
fi
}
src_install() {
autotools-utils_src_install
if use python; then
installation() {
cd "${BUILD_DIR}"/python || die
emake \
DESTDIR="${D}" \
pyexecdir="$(python_get_sitedir)" \
install
}
python_foreach_impl installation
fi
}
|