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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.14 - (show annotations) (download)
Sat May 5 02:54:30 2012 UTC (2 years, 6 months ago) by jdhore
Branch: MAIN
Changes since 1.13: +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.7.ebuild,v 1.13 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="python"
20
21 RDEPEND=">=net-libs/gupnp-0.13.2
22 !>=net-libs/gupnp-0.17
23 >=dev-libs/glib-2.16:2
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 pkg_setup() {
31 if use python; then
32 python_pkg_setup
33 fi
34 }
35
36 src_prepare() {
37 epatch "${FILESDIR}"/${P}-make-382.patch
38 epatch "${FILESDIR}"/${P}-disable_static_modules.patch
39
40 # Disable byte-compilation of Python modules.
41 echo "#!/bin/sh" > py-compile
42
43 # Python bindings are built/installed manually.
44 sed -e "/PYTHON_SUBDIR =/s/ python//" -i Makefile.am
45
46 eautoreconf
47 }
48
49 src_configure() {
50 econf \
51 --disable-dependency-tracking \
52 --disable-gtk-doc \
53 $(use_enable python) \
54 --with-html-dir=/usr/share/doc/${PF}/html
55 }
56
57 src_compile() {
58 default
59
60 if use python; then
61 python_copy_sources python
62
63 building() {
64 emake \
65 PYTHON_INCLUDES="-I$(python_get_includedir)" \
66 pyexecdir="$(python_get_sitedir)"
67 }
68 python_execute_function -s --source-dir python building
69 fi
70 }
71
72 src_install() {
73 emake DESTDIR="${D}" install || die
74
75 if use python; then
76 installation() {
77 emake \
78 DESTDIR="${D}" \
79 pyexecdir="$(python_get_sitedir)" \
80 install
81 }
82 python_execute_function -s --source-dir python installation
83
84 python_clean_installation_image
85 fi
86
87 dodoc AUTHORS NEWS README TODO || die
88 }
89
90 pkg_postinst() {
91 if use python; then
92 python_mod_optimize gupnp
93 fi
94 }
95
96 pkg_postrm() {
97 if use python; then
98 python_mod_cleanup gupnp
99 fi
100 }

  ViewVC Help
Powered by ViewVC 1.1.20