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

Contents of /net-libs/gupnp-igd/gupnp-igd-0.1.11.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Sat May 5 02:54:30 2012 UTC (2 years, 2 months ago) by jdhore
Branch: MAIN
Changes since 1.3: +2 -2 lines
dev-util/pkgconfig -> virtual/pkgconfig

(Portage version: 2.2.0_alpha101/cvs/Linux i686)

1 # Copyright 1999-2012 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.1.11.ebuild,v 1.3 2012/01/07 03:39:24 tester Exp $
4
5 EAPI="3"
6 PYTHON_DEPEND="python? 2:2.5"
7 SUPPORT_PYTHON_ABIS="1"
8 RESTRICT_PYTHON_ABIS="2.4 3.* *-jython"
9
10 inherit autotools eutils python
11
12 DESCRIPTION="This is a library to handle UPnP IGD port mapping for GUPnP."
13 HOMEPAGE="http://gupnp.org"
14 SRC_URI="http://www.gupnp.org/sites/all/files/sources/${P}.tar.gz"
15
16 LICENSE="LGPL-2"
17 SLOT="0"
18 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
19 IUSE="+introspection python"
20
21 RDEPEND=">=net-libs/gupnp-0.13.2
22 !>=net-libs/gupnp-0.17
23 >=dev-libs/glib-2.16:2
24 introspection? ( >=dev-libs/gobject-introspection-0.10 )
25 python? ( >=dev-python/pygobject-2.16:2 )"
26 DEPEND="${RDEPEND}
27 virtual/pkgconfig
28 sys-devel/gettext
29 dev-util/gtk-doc-am"
30
31 # The only existing test is broken
32 RESTRICT="test"
33
34 pkg_setup() {
35 if use python; then
36 python_pkg_setup
37 fi
38 }
39
40 src_prepare() {
41 epatch "${FILESDIR}"/${PN}-0.1.11-disable_static_modules.patch
42
43 # Disable byte-compilation of Python modules.
44 echo "#!/bin/sh" > py-compile
45
46 # Python bindings are built/installed manually.
47 sed -e "/PYTHON_SUBDIR =/s/ python//" -i Makefile.am
48
49 eautoreconf
50 }
51
52 src_configure() {
53 econf \
54 --disable-dependency-tracking \
55 --disable-static \
56 --disable-gtk-doc \
57 $(use_enable introspection) \
58 $(use_enable python)
59 }
60
61 src_compile() {
62 # introspection is built in the same directory and libtool does not handle
63 # well dependency like this
64 MAKEOPTS="${MAKEOPTS} -j1" default
65
66 if use python; then
67 python_copy_sources python
68
69 building() {
70 emake \
71 PYTHON_INCLUDES="-I$(python_get_includedir)" \
72 pyexecdir="$(python_get_sitedir)"
73 }
74 python_execute_function -s --source-dir python building
75 fi
76 }
77
78 src_install() {
79 emake DESTDIR="${D}" install || die
80
81 if use python; then
82 installation() {
83 emake \
84 DESTDIR="${D}" \
85 pyexecdir="$(python_get_sitedir)" \
86 install
87 }
88 python_execute_function -s --source-dir python installation
89
90 python_clean_installation_image
91 fi
92
93 dodoc AUTHORS NEWS README TODO || die
94 find "${D}" -name "*.la" -delete
95 }
96
97 pkg_postinst() {
98 if use python; then
99 python_mod_optimize gupnp
100 fi
101 }
102
103 pkg_postrm() {
104 if use python; then
105 python_mod_cleanup gupnp
106 fi
107 }

  ViewVC Help
Powered by ViewVC 1.1.20