summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony G. Basile <blueness@gentoo.org>2011-08-07 02:51:55 +0000
committerAnthony G. Basile <blueness@gentoo.org>2011-08-07 02:51:55 +0000
commitc5a261a020a8b37da449255243b0d7fc55e60b3f (patch)
tree774e83a6f164c9ee787e085392e3fd1c57bac515 /dev-python/libnatpmp
parentBased on 2.6.39.4 + genpatches-2.6.39-5 + grsecurity-2.2.2-2.6.39.4-201108052113 (diff)
downloadgentoo-2-c5a261a020a8b37da449255243b0d7fc55e60b3f.tar.gz
gentoo-2-c5a261a020a8b37da449255243b0d7fc55e60b3f.tar.bz2
gentoo-2-c5a261a020a8b37da449255243b0d7fc55e60b3f.zip
Initial commit
(Portage version: 2.1.10.3/cvs/Linux x86_64)
Diffstat (limited to 'dev-python/libnatpmp')
-rw-r--r--dev-python/libnatpmp/ChangeLog9
-rw-r--r--dev-python/libnatpmp/files/link-against-system-lib.patch12
-rw-r--r--dev-python/libnatpmp/libnatpmp-20110715.ebuild29
-rw-r--r--dev-python/libnatpmp/metadata.xml9
4 files changed, 59 insertions, 0 deletions
diff --git a/dev-python/libnatpmp/ChangeLog b/dev-python/libnatpmp/ChangeLog
new file mode 100644
index 000000000000..3fc71aa78b06
--- /dev/null
+++ b/dev-python/libnatpmp/ChangeLog
@@ -0,0 +1,9 @@
+
+
+*libnatpmp-20110715 (07 Aug 2011)
+
+ 07 Aug 2011; Anthony G. Basile <blueness@gentoo.org>
+ +libnatpmp-20110715.ebuild, +files/link-against-system-lib.patch,
+ +metadata.xml:
+ Initial commit
+
diff --git a/dev-python/libnatpmp/files/link-against-system-lib.patch b/dev-python/libnatpmp/files/link-against-system-lib.patch
new file mode 100644
index 000000000000..cdb64a9ce12b
--- /dev/null
+++ b/dev-python/libnatpmp/files/link-against-system-lib.patch
@@ -0,0 +1,12 @@
+diff -Naur libnatpmp-20110715.orig//setup.py libnatpmp-20110715/setup.py
+--- libnatpmp-20110715.orig//setup.py 2009-06-04 17:37:06.000000000 -0400
++++ libnatpmp-20110715/setup.py 2011-08-03 06:55:11.000000000 -0400
+@@ -8,7 +8,7 @@
+ setup(name="libnatpmp", version="1.0",
+ ext_modules=[
+ Extension(name="libnatpmp", sources=["libnatpmpmodule.c"],
+- extra_objects=["libnatpmp.a"],
++ libraries=["natpmp"],
+ define_macros=[('ENABLE_STRNATPMPERR', None)]
+ )]
+ )
diff --git a/dev-python/libnatpmp/libnatpmp-20110715.ebuild b/dev-python/libnatpmp/libnatpmp-20110715.ebuild
new file mode 100644
index 000000000000..44362d1d5d72
--- /dev/null
+++ b/dev-python/libnatpmp/libnatpmp-20110715.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-python/libnatpmp/libnatpmp-20110715.ebuild,v 1.1 2011/08/07 02:51:55 blueness Exp $
+
+EAPI=3
+PYTHON_DEPEND=2
+RESTRICT_PYTHON_ABIS="3.*"
+
+inherit eutils distutils
+
+DESCRIPTION="Python module for libnatpmp, an alternative protocol to UPnP IGD."
+HOMEPAGE="http://miniupnp.free.fr/libnatpmp.html"
+SRC_URI="http://miniupnp.free.fr/files/download.php?file=${P}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="net-libs/libnatpmp"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ epatch "${FILESDIR}"/link-against-system-lib.patch
+ distutils_src_prepare
+
+ #These are installed by net-libs/libnatpmp
+ rm -f Changelog.txt README || die
+}
diff --git a/dev-python/libnatpmp/metadata.xml b/dev-python/libnatpmp/metadata.xml
new file mode 100644
index 000000000000..52e5c5874f0a
--- /dev/null
+++ b/dev-python/libnatpmp/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>no-herd</herd>
+ <maintainer>
+ <email>blueness@gentoo.org</email>
+ <name>Anthony G. Basile</name>
+ </maintainer>
+</pkgmetadata>