Version bump. Add introspection support.
authorGilles Dartiguelongue <eva@gentoo.org>
Thu, 15 Sep 2011 20:44:06 +0000 (20:44 +0000)
committerGilles Dartiguelongue <eva@gentoo.org>
Thu, 15 Sep 2011 20:44:06 +0000 (20:44 +0000)
Package-Manager: portage-2.2.0_alpha54/cvs/Linux x86_64

net-libs/gupnp-igd/ChangeLog
net-libs/gupnp-igd/Manifest
net-libs/gupnp-igd/gupnp-igd-0.1.10.ebuild [new file with mode: 0644]
net-libs/gupnp-igd/metadata.xml

index 7182a879ec55d4a99e1dae169b7e1b200673d870..1fd6d0ad57fa6aca41c2b0e0dfd254905852a3f8 100644 (file)
@@ -1,6 +1,12 @@
 # ChangeLog for net-libs/gupnp-igd
 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-libs/gupnp-igd/ChangeLog,v 1.27 2011/02/26 20:02:53 arfrever Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-libs/gupnp-igd/ChangeLog,v 1.28 2011/09/15 20:44:06 eva Exp $
+
+*gupnp-igd-0.1.10 (15 Sep 2011)
+
+  15 Sep 2011; Gilles Dartiguelongue <eva@gentoo.org> +gupnp-igd-0.1.10.ebuild,
+  metadata.xml:
+  Version bump. Add introspection support.
 
   26 Feb 2011; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
   gupnp-igd-0.1.7.ebuild, +files/gupnp-igd-0.1.7-disable_static_modules.patch:
index e00855ca0b4989cab802fd2adc68eeb8a494f7d1..620c4ed3e807a76ab5e09c22249fcb634b06e0ca 100644 (file)
@@ -1,6 +1,18 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
 AUX gupnp-igd-0.1.7-disable_static_modules.patch 457 RMD160 cc57563be70a8b4d8a2f7e90476ba003652a46fb SHA1 02a1b78d1c457d41e55dca08188c02c74fc7c259 SHA256 184545204d88d6ec9c4901011a7a19524a1b208a359d8980da089e3d6c1d88b5
 AUX gupnp-igd-0.1.7-make-382.patch 253 RMD160 3258498b77547446b470b09c3aab06ae334fc490 SHA1 df5d7280ea3f619241370176c95b5a23c90106ff SHA256 af45a38f78eb01543526733394707e180162edc6a8d1c737080c29d8da7e18fc
+DIST gupnp-igd-0.1.10.tar.gz 375513 RMD160 4b0c55c0dd18b24b2ee31261327daeb77416a5cc SHA1 01d8ae9affb79736adf3d5495956d796fa046e40 SHA256 51e363f167a128af35be2a19b33bb1e7915c6c47861ef8f029614eb2c8f45bdb
 DIST gupnp-igd-0.1.7.tar.gz 362614 RMD160 7176e7bc65b513b41c191366f728c9819a22f8ef SHA1 b37d44af7172af3e4d0c7f331519bba7e31f752b SHA256 c1d80ed20081992fabe70331f02efe9435bbfcc79287676121a855fea6561bf6
+EBUILD gupnp-igd-0.1.10.ebuild 2284 RMD160 221a66187785a4198dc1c07965f9f567f986e6e7 SHA1 8ed570f5f903095a479ecc5c34a72200f27f1ef4 SHA256 e36f3e833e5d45d6faf14b42e7194296eb2aa40e4302cc627334b18c9c935799
 EBUILD gupnp-igd-0.1.7.ebuild 2073 RMD160 8485f38ff854ff9f947fcd74fb5c9a9bb80e7292 SHA1 c07a375bbf0514699fa17131aa1d6dc97660079f SHA256 a10499e37004b4b35827475ac7f53df8268fc26a09ed8a85f5ee2ed5f22cc15a
-MISC ChangeLog 3771 RMD160 1e8be3c98e52b843fb084431c2640a37b5516702 SHA1 6ca8a929a58709316f7bffefe58fd16102efdc2d SHA256 ce541fb92d0b5785629ed6a3cd4cdae10430962cf327e383f3ce88b28487ec18
-MISC metadata.xml 161 RMD160 419e26d02ec2be8f627f0b1b25aeb1698a713ee9 SHA1 dd595b6a10af8706aa3470451dcae25df3c21522 SHA256 7319e52af87b7cdfc644d720749750d9b182db438b40d6dd0ebc60c4e6c51eba
+MISC ChangeLog 3939 RMD160 33564ab056fa5d8d544da9ea81cf5841d9636449 SHA1 815e7dc2d31ce4f9f88b51b00b60293822a692ae SHA256 0d98e008dcd03b9ad951d45954e6e70d57f57b76b336653a5e40fc6476957547
+MISC metadata.xml 279 RMD160 cf038058c4223eacf6329f8abd32bf19b3398d6e SHA1 f1a40803a1daaf878947e05875d52f793e59f283 SHA256 f304c1ad20af47cdf82492cd9770c57e8dc923d588e4bab669ed9f3dcad51b84
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.18 (GNU/Linux)
+
+iEYEARECAAYFAk5yY6YACgkQ1fmVwcYIWAaCwQCeI/LatHh16e1rvdGut9ce2t9S
+3UkAoOz/gz1pJJEHULSS6Z0R4pX26o6L
+=1nTg
+-----END PGP SIGNATURE-----
diff --git a/net-libs/gupnp-igd/gupnp-igd-0.1.10.ebuild b/net-libs/gupnp-igd/gupnp-igd-0.1.10.ebuild
new file mode 100644 (file)
index 0000000..1822aa5
--- /dev/null
@@ -0,0 +1,104 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-libs/gupnp-igd/gupnp-igd-0.1.10.ebuild,v 1.1 2011/09/15 20:44:06 eva Exp $
+
+EAPI="3"
+PYTHON_DEPEND="python? 2:2.5"
+SUPPORT_PYTHON_ABIS="1"
+RESTRICT_PYTHON_ABIS="2.4 3.* *-jython"
+
+inherit autotools eutils python
+
+DESCRIPTION="This is a library to handle UPnP IGD port mapping for GUPnP."
+HOMEPAGE="http://gupnp.org"
+SRC_URI="http://www.gupnp.org/sites/all/files/sources/${P}.tar.gz"
+
+LICENSE="LGPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
+IUSE="+introspection python"
+
+RDEPEND=">=net-libs/gupnp-0.13.2
+       >=dev-libs/glib-2.16:2
+       introspection? ( >=dev-libs/gobject-introspection-0.10 )
+       python? ( >=dev-python/pygobject-2.16 )"
+DEPEND="${RDEPEND}
+       dev-util/pkgconfig
+       sys-devel/gettext
+       dev-util/gtk-doc-am"
+
+# The only existing test is broken
+RESTRICT="test"
+
+pkg_setup() {
+       if use python; then
+               python_pkg_setup
+       fi
+}
+
+src_prepare() {
+       epatch "${FILESDIR}"/${PN}-0.1.7-disable_static_modules.patch
+
+       # Disable byte-compilation of Python modules.
+       echo "#!/bin/sh" > py-compile
+
+       # Python bindings are built/installed manually.
+       sed -e "/PYTHON_SUBDIR =/s/ python//" -i Makefile.am
+
+       eautoreconf
+}
+
+src_configure() {
+       econf \
+               --disable-dependency-tracking \
+               --disable-gtk-doc \
+               $(use_enable introspection) \
+               $(use_enable python)
+}
+
+src_compile() {
+       # introspection is built in the same directory and libtool does not handle
+       # well dependency like this
+       MAKEOPTS="${MAKEOPTS} -j1" default
+
+       if use python; then
+               python_copy_sources python
+
+               building() {
+                       emake \
+                               PYTHON_INCLUDES="-I$(python_get_includedir)" \
+                               pyexecdir="$(python_get_sitedir)"
+               }
+               python_execute_function -s --source-dir python building
+       fi
+}
+
+src_install() {
+       emake DESTDIR="${D}" install || die
+
+       if use python; then
+               installation() {
+                       emake \
+                               DESTDIR="${D}" \
+                               pyexecdir="$(python_get_sitedir)" \
+                               install
+               }
+               python_execute_function -s --source-dir python installation
+
+               python_clean_installation_image
+       fi
+
+       dodoc AUTHORS NEWS README TODO || die
+}
+
+pkg_postinst() {
+       if use python; then
+               python_mod_optimize gupnp
+       fi
+}
+
+pkg_postrm() {
+       if use python; then
+               python_mod_cleanup gupnp
+       fi
+}
index 7289824cb87611a08dc03295744e15c95e1c8a72..bcf095d100357ce0c05cbe6ed6cf3f3a0334dc64 100644 (file)
@@ -2,4 +2,8 @@
 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
 <pkgmetadata>
        <herd>net-p2p</herd>
+       <use>
+               <flag name="introspection">Use <pkg>dev-libs/gobject-introspection</pkg> for
+                       introspection</flag>
+       </use>
 </pkgmetadata>