summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2011-08-09 17:41:19 +0000
committerMichał Górny <mgorny@gentoo.org>2011-08-09 17:41:19 +0000
commit527f35e2c90788c4001fc6de96ef1f271c2543c1 (patch)
tree82fccea1bf8f51dc241299d353b5d9cd05555a50 /dev-python
parentBased on 2.6.32.43 + genpatches-2.6.32-40 + grsecurity-2.2.2-2.6.32.43-201108... (diff)
downloadhistorical-527f35e2c90788c4001fc6de96ef1f271c2543c1.tar.gz
historical-527f35e2c90788c4001fc6de96ef1f271c2543c1.tar.bz2
historical-527f35e2c90788c4001fc6de96ef1f271c2543c1.zip
Split the Python module in net-libs/miniupnpc into separate dev-python/miniupnpc; link the Python module against shared libminiupnpc.
Package-Manager: portage-2.2.0_alpha50_p1/cvs/Linux x86_64
Diffstat (limited to 'dev-python')
-rw-r--r--dev-python/miniupnpc/ChangeLog12
-rw-r--r--dev-python/miniupnpc/Manifest17
-rw-r--r--dev-python/miniupnpc/files/0001-Link-Python-module-against-the-shared-library.patch24
-rw-r--r--dev-python/miniupnpc/metadata.xml17
-rw-r--r--dev-python/miniupnpc/miniupnpc-1.6.ebuild37
5 files changed, 107 insertions, 0 deletions
diff --git a/dev-python/miniupnpc/ChangeLog b/dev-python/miniupnpc/ChangeLog
new file mode 100644
index 000000000000..a41203928f7d
--- /dev/null
+++ b/dev-python/miniupnpc/ChangeLog
@@ -0,0 +1,12 @@
+# ChangeLog for dev-python/miniupnpc
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-python/miniupnpc/ChangeLog,v 1.1 2011/08/09 17:41:19 mgorny Exp $
+
+*miniupnpc-1.6 (09 Aug 2011)
+
+ 09 Aug 2011; Michał Górny <mgorny@gentoo.org> +miniupnpc-1.6.ebuild,
+ +files/0001-Link-Python-module-against-the-shared-library.patch,
+ +metadata.xml:
+ Split the Python module in net-libs/miniupnpc into separate
+ dev-python/miniupnpc; link the Python module against shared libminiupnpc.
+
diff --git a/dev-python/miniupnpc/Manifest b/dev-python/miniupnpc/Manifest
new file mode 100644
index 000000000000..f7a03854f41a
--- /dev/null
+++ b/dev-python/miniupnpc/Manifest
@@ -0,0 +1,17 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA256
+
+AUX 0001-Link-Python-module-against-the-shared-library.patch 707 RMD160 ef884e104524e220e58347a58684482680ca8607 SHA1 b708a5fa023325e4bcbf591286176c22d9625d5f SHA256 16a223d7dd5cd3507e11782934699540c687c2bed28d582cab177ab3f9b49e98
+DIST miniupnpc-1.6.tar.gz 66454 RMD160 d86b75b331a3fb5525c71708548f311977c0598f SHA1 ef8f2edb17f2e7c5b8dc67ee80a65c199d823e0a SHA256 bbd6b756e6af44b5a5b0f9b93eada3fb8922ed1d6451b7d6f184d0ae0c813994
+EBUILD miniupnpc-1.6.ebuild 954 RMD160 d09e16e8184e96a7ad712eae6f1e5fdf4b311d11 SHA1 8ca5e5cce7aa04e1eca32595addc5f505f215099 SHA256 8154db96dee294652d269750e820679efef375e8c017169a54d7f4e0f351aff5
+MISC ChangeLog 539 RMD160 6938d04a7afda367617b43b83c0e77a6e796bbb6 SHA1 b7e5a879d865a7e491edec53aababd4ae5559dff SHA256 51c3f3f1ba2a3ada2bb3d0c0263d11029678e8f753ccf02bacd891f95bc86512
+MISC metadata.xml 418 RMD160 57cd3ee3cec2a418323823d0c5ab8f3e56722dcb SHA1 6d59a27ff76532516274b82fa8e53f8145d37fdc SHA256 d20ee611ec1a7073b0727710cea00748d46a4934f91cd2da852c5bce286ba1be
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.18 (GNU/Linux)
+
+iJwEAQEIAAYFAk5BcaMACgkQfXuS5UK5QB0pdwQAqGhgLTlPjSh7MHngwbsPIcM/
+2t6a2gSH8b32eSI6pSesYVE2mvG9HefJnvT4KzYBQ3sUNps8qZjUwDgUg4qZb1PV
+HKvEVCIkhWfSEElPCKzxQlBu/DjteuwlcbTnlpmF0PjU1bNq42tQXfqIQULRfCYV
+1H5HpsoenjxurCD+3so=
+=kxjG
+-----END PGP SIGNATURE-----
diff --git a/dev-python/miniupnpc/files/0001-Link-Python-module-against-the-shared-library.patch b/dev-python/miniupnpc/files/0001-Link-Python-module-against-the-shared-library.patch
new file mode 100644
index 000000000000..d9e6c4317ed3
--- /dev/null
+++ b/dev-python/miniupnpc/files/0001-Link-Python-module-against-the-shared-library.patch
@@ -0,0 +1,24 @@
+From 34da047ae5b945a43430f59efe0efefdd8f1ba55 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org>
+Date: Wed, 3 Aug 2011 08:28:31 +0200
+Subject: [PATCH] Link Python module against the shared library.
+
+---
+ setup.py | 2 +-
+ 1 files changed, 1 insertions(+), 1 deletions(-)
+
+diff --git a/setup.py b/setup.py
+index ca31f96..f5aef19 100644
+--- a/setup.py
++++ b/setup.py
+@@ -10,6 +10,6 @@ from distutils.core import setup, Extension
+ setup(name="miniupnpc", version="1.5",
+ ext_modules=[
+ Extension(name="miniupnpc", sources=["miniupnpcmodule.c"],
+- extra_objects=["libminiupnpc.a"])
++ libraries=["miniupnpc"])
+ ])
+
+--
+1.7.6
+
diff --git a/dev-python/miniupnpc/metadata.xml b/dev-python/miniupnpc/metadata.xml
new file mode 100644
index 000000000000..e94b790709ee
--- /dev/null
+++ b/dev-python/miniupnpc/metadata.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>no-herd</herd>
+<maintainer>
+ <email>pva@gentoo.org</email>
+ <name>Peter Volkov</name>
+</maintainer>
+<maintainer>
+ <email>mgorny@gentoo.org</email>
+ <name>Michał Górny</name>
+</maintainer>
+<maintainer>
+ <email>nikoli@lavabit.com</email>
+ <name>Nikoli</name>
+</maintainer>
+</pkgmetadata>
diff --git a/dev-python/miniupnpc/miniupnpc-1.6.ebuild b/dev-python/miniupnpc/miniupnpc-1.6.ebuild
new file mode 100644
index 000000000000..7bfacd49241f
--- /dev/null
+++ b/dev-python/miniupnpc/miniupnpc-1.6.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-python/miniupnpc/miniupnpc-1.6.ebuild,v 1.1 2011/08/09 17:41:19 mgorny Exp $
+
+EAPI=3
+SUPPORT_PYTHON_ABIS=1
+PYTHON_DEPEND=2
+RESTRICT_PYTHON_ABIS="3.*"
+
+inherit base distutils
+
+DESCRIPTION="UPnP client library and a simple UPnP client"
+HOMEPAGE="http://miniupnp.free.fr/"
+SRC_URI="http://miniupnp.free.fr/files/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="|| ( >=net-libs/miniupnpc-1.6-r1
+ net-libs/miniupnpc[-python] )
+ !net-libs/miniupnpc[python]"
+DEPEND="${RDEPEND}"
+
+src_prepare() {
+ local PATCHES=(
+ "${FILESDIR}"/0001-Link-Python-module-against-the-shared-library.patch
+ )
+
+ base_src_prepare
+ distutils_src_prepare
+
+ # these will conflict with base miniupnpc ebuild
+ # and distutils.eclass is stupid enough to force installing them
+ rm -f Changelog.txt README || die
+}