/[gentoo-x86]/net-libs/gupnp-igd/gupnp-igd-0.2.2-r1.ebuild
Gentoo

Contents of /net-libs/gupnp-igd/gupnp-igd-0.2.2-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.11 - (show annotations) (download)
Sat Apr 26 06:35:33 2014 UTC (6 years, 7 months ago) by pacho
Branch: MAIN
CVS Tags: HEAD
Changes since 1.10: +2 -2 lines
Move to testing in some arches due other gupnp dependencies

(Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key A188FBD4)

1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-libs/gupnp-igd/gupnp-igd-0.2.2-r1.ebuild,v 1.10 2014/01/26 12:20:28 ago Exp $
4
5 EAPI=5
6
7 PYTHON_COMPAT=( python2_7 )
8 AUTOTOOLS_AUTORECONF=true
9
10 inherit autotools-utils gnome.org python-r1
11
12 DESCRIPTION="Library to handle UPnP IGD port mapping for GUPnP"
13 HOMEPAGE="http://gupnp.org"
14
15 LICENSE="LGPL-2"
16 SLOT="0"
17 KEYWORDS="~alpha amd64 ~arm hppa ~ia64 ~ppc ~ppc64 ~sparc x86"
18 IUSE="+introspection python"
19
20 RDEPEND="
21 net-libs/gssdp
22 >=net-libs/gupnp-0.18
23 >=dev-libs/glib-2.16:2
24 introspection? ( >=dev-libs/gobject-introspection-0.10 )
25 python? (
26 >=dev-libs/gobject-introspection-0.10
27 >=dev-python/pygobject-2.16:2[${PYTHON_USEDEP}]
28 )"
29 DEPEND="${RDEPEND}
30 dev-util/gtk-doc-am
31 sys-devel/gettext
32 virtual/pkgconfig
33 "
34
35 # The only existing test is broken
36 RESTRICT="test"
37
38 PATCHES=(
39 "${FILESDIR}"/${P}-underlinking.patch
40 "${FILESDIR}"/${PN}-0.1.11-disable_static_modules.patch
41 )
42
43 src_prepare() {
44 rm missing || die
45 sed -i 's/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/g' configure.ac || die
46
47 # Python bindings are built/installed manually.
48 if use python; then
49 sed -e "/PYTHON_SUBDIR =/s/ python//" -i Makefile.am Makefile.in || die
50 fi
51 autotools-utils_src_prepare
52 }
53
54 src_configure() {
55 local myeconfargs=(
56 --disable-static
57 --disable-gtk-doc
58 $(use_enable introspection)
59 $(use_enable python)
60 )
61 autotools-utils_src_configure
62 }
63
64 src_compile() {
65 autotools-utils_src_compile
66
67 if use python; then
68 python_copy_sources
69
70 building() {
71 cd "${BUILD_DIR}"/python || die
72 emake \
73 PYTHON_INCLUDES="-I$(python_get_includedir)" \
74 pyexecdir="$(python_get_sitedir)"
75 }
76 python_foreach_impl building
77 fi
78 }
79
80 src_install() {
81 autotools-utils_src_install
82
83 if use python; then
84 installation() {
85 cd "${BUILD_DIR}"/python || die
86 emake \
87 DESTDIR="${D}" \
88 pyexecdir="$(python_get_sitedir)" \
89 install
90 }
91 python_foreach_impl installation
92 fi
93 }

  ViewVC Help
Powered by ViewVC 1.1.20