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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.9 - (show annotations) (download)
Sat Dec 1 17:59:08 2012 UTC (20 months, 3 weeks ago) by armin76
Branch: MAIN
Changes since 1.8: +2 -2 lines
alpha/ia64/sparc stable wrt #434300

(Portage version: 2.1.11.31/cvs/Linux ia64, signed Manifest commit with key F6AD3240)

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.2.1.ebuild,v 1.8 2012/11/25 17:22:08 eva 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.18
22 >=dev-libs/glib-2.16:2
23 introspection? ( >=dev-libs/gobject-introspection-0.10 )
24 python? ( >=dev-python/pygobject-2.16:2 )"
25 DEPEND="${RDEPEND}
26 virtual/pkgconfig
27 sys-devel/gettext
28 dev-util/gtk-doc-am"
29
30 # The only existing test is broken
31 RESTRICT="test"
32
33 pkg_setup() {
34 if use python; then
35 python_pkg_setup
36 fi
37 }
38
39 src_prepare() {
40 epatch "${FILESDIR}"/${PN}-0.1.11-disable_static_modules.patch
41
42 # Disable byte-compilation of Python modules.
43 echo "#!/bin/sh" > py-compile
44
45 # Python bindings are built/installed manually.
46 sed -e "/PYTHON_SUBDIR =/s/ python//" -i Makefile.am
47
48 eautoreconf
49 }
50
51 src_configure() {
52 econf \
53 --disable-dependency-tracking \
54 --disable-static \
55 --disable-gtk-doc \
56 $(use_enable introspection) \
57 $(use_enable python)
58 }
59
60 src_compile() {
61 # introspection is built in the same directory and libtool does not handle
62 # well dependency like this
63 MAKEOPTS="${MAKEOPTS} -j1" default
64
65 if use python; then
66 python_copy_sources python
67
68 building() {
69 emake \
70 PYTHON_INCLUDES="-I$(python_get_includedir)" \
71 pyexecdir="$(python_get_sitedir)"
72 }
73 python_execute_function -s --source-dir python building
74 fi
75 }
76
77 src_install() {
78 emake DESTDIR="${D}" install || die
79
80 if use python; then
81 installation() {
82 emake \
83 DESTDIR="${D}" \
84 pyexecdir="$(python_get_sitedir)" \
85 install
86 }
87 python_execute_function -s --source-dir python installation
88
89 python_clean_installation_image
90 fi
91
92 dodoc AUTHORS NEWS README TODO || die
93 find "${D}" -name "*.la" -delete
94 }
95
96 pkg_postinst() {
97 if use python; then
98 python_mod_optimize gupnp
99 fi
100 }
101
102 pkg_postrm() {
103 if use python; then
104 python_mod_cleanup gupnp
105 fi
106 }

  ViewVC Help
Powered by ViewVC 1.1.20