diff options
author | Michał Górny <mgorny@gentoo.org> | 2011-08-09 17:41:19 +0000 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2011-08-09 17:41:19 +0000 |
commit | 3bdf81f879374fb2e1798f48f2cd868741d2659e (patch) | |
tree | dcd3d38a9da42cc023add385dc2430279d2bc4a1 /dev-python/miniupnpc | |
parent | Based on 2.6.32.43 + genpatches-2.6.32-40 + grsecurity-2.2.2-2.6.32.43-201108... (diff) | |
download | gentoo-2-3bdf81f879374fb2e1798f48f2cd868741d2659e.tar.gz gentoo-2-3bdf81f879374fb2e1798f48f2cd868741d2659e.tar.bz2 gentoo-2-3bdf81f879374fb2e1798f48f2cd868741d2659e.zip |
Split the Python module in net-libs/miniupnpc into separate dev-python/miniupnpc; link the Python module against shared libminiupnpc.
(Portage version: 2.2.0_alpha50_p1/cvs/Linux x86_64)
Diffstat (limited to 'dev-python/miniupnpc')
-rw-r--r-- | dev-python/miniupnpc/ChangeLog | 12 | ||||
-rw-r--r-- | dev-python/miniupnpc/files/0001-Link-Python-module-against-the-shared-library.patch | 24 | ||||
-rw-r--r-- | dev-python/miniupnpc/metadata.xml | 17 | ||||
-rw-r--r-- | dev-python/miniupnpc/miniupnpc-1.6.ebuild | 37 |
4 files changed, 90 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/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 +} |