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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Sun Nov 25 17:22:08 2012 UTC (16 months, 3 weeks ago) by eva
Branch: MAIN
Changes since 1.2: +2 -4 lines
Switch back code from 0.2.1 and 0.2.2 ebuilds, what a mess did I do...

(Portage version: 2.2.0_alpha142/cvs/Linux x86_64, signed Manifest commit with key C6085806)

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.2.ebuild,v 1.2 2012/11/25 17:18:30 eva Exp $
4
5 EAPI="5"
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 gnome.org python
11
12 DESCRIPTION="This is a 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/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 "
26 DEPEND="${RDEPEND}
27 dev-util/gtk-doc-am
28 sys-devel/gettext
29 virtual/pkgconfig
30 "
31
32 # The only existing test is broken
33 RESTRICT="test"
34
35 pkg_setup() {
36 if use python; then
37 python_pkg_setup
38 fi
39 }
40
41 src_prepare() {
42 epatch "${FILESDIR}"/${PN}-0.1.11-disable_static_modules.patch
43 eautoreconf
44
45 # Python bindings are built/installed manually.
46 if use python; then
47 sed -e "/PYTHON_SUBDIR =/s/ python//" -i Makefile.am Makefile.in || die
48 python_clean_py-compile_files -q
49 fi
50 }
51
52 src_configure() {
53 econf \
54 --disable-static \
55 --disable-gtk-doc \
56 $(use_enable introspection) \
57 $(use_enable python)
58 }
59
60 src_compile() {
61 default
62
63 if use python; then
64 python_copy_sources python
65
66 building() {
67 emake \
68 PYTHON_INCLUDES="-I$(python_get_includedir)" \
69 pyexecdir="$(python_get_sitedir)"
70 }
71 python_execute_function -s --source-dir python building
72 fi
73 }
74
75 src_install() {
76 DOCS="AUTHORS NEWS README TODO"
77
78 default
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 prune_libtool_files
93 }
94
95 pkg_postinst() {
96 if use python; then
97 python_mod_optimize gupnp
98 fi
99 }
100
101 pkg_postrm() {
102 if use python; then
103 python_mod_cleanup gupnp
104 fi
105 }

  ViewVC Help
Powered by ViewVC 1.1.20