From 97b316f2e40bca7bf5e43ecc588ed47e1787b4b6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Micha=C5=82=20G=C3=B3rny?= Date: Thu, 1 Oct 2015 18:55:51 +0200 Subject: [PATCH] dev-python/miniupnpc: Version bump to match net-libs/miniupnpc Package-Manager: portage-2.2.20 --- dev-python/miniupnpc/Manifest | 1 + .../miniupnpc-1.9.20150917-shared-lib.patch | 24 ++++++++++++++++ .../miniupnpc/miniupnpc-1.9.20150917.ebuild | 28 +++++++++++++++++++ 3 files changed, 53 insertions(+) create mode 100644 dev-python/miniupnpc/files/miniupnpc-1.9.20150917-shared-lib.patch create mode 100644 dev-python/miniupnpc/miniupnpc-1.9.20150917.ebuild diff --git a/dev-python/miniupnpc/Manifest b/dev-python/miniupnpc/Manifest index 5cf930000730..047bb67b9a60 100644 --- a/dev-python/miniupnpc/Manifest +++ b/dev-python/miniupnpc/Manifest @@ -1 +1,2 @@ DIST miniupnpc-1.8.tar.gz 70624 SHA256 bc5f73c7b0056252c1888a80e6075787a1e1e9112b808f863a245483ff79859c SHA512 8eedac9ad473fc952ca8896fe534d6da6b1b234e8b6f35f721394d4c71aca84ed287ca6c4f0455b50d97a45e4cd34e27d99a6813386e0864781364aa607e13d4 WHIRLPOOL 5b76ccbb5ed7daa9bb0d481b424b7c31a5f6dc85c5c812ba10175a29aefc0d3924f3db2aa8c3529d1241be59d67d1d4c702d27aad2de8c8a07fecf3857d73169 +DIST miniupnpc-1.9.20150917.tar.gz 82609 SHA256 3087c32929c1e9db4947d6a184694e06ec604bca29449b75daec295a5d8f11da SHA512 1fe2613d19cbd16b6f6e9c8205e984548fb96d032a71a849f9b25486dc71b07ee270d2bfc324f218abe80c45f0b13b6af00e59cbf3a9e35b83ea5073bb897f65 WHIRLPOOL 60d0e9c94ddf8ef19106217158d01cc2f3edb854f34326c80c6ae694b65b80f1bc6810cc2b24a7b8525ef7c3982324c9859bdbdcb2e2e944747c371ba2015a6a diff --git a/dev-python/miniupnpc/files/miniupnpc-1.9.20150917-shared-lib.patch b/dev-python/miniupnpc/files/miniupnpc-1.9.20150917-shared-lib.patch new file mode 100644 index 000000000000..4765c6e79650 --- /dev/null +++ b/dev-python/miniupnpc/files/miniupnpc-1.9.20150917-shared-lib.patch @@ -0,0 +1,24 @@ +From cd8787999bf4c4b89601f6338ce765ea6229232c Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= +Date: Thu, 1 Oct 2015 18:49:26 +0200 +Subject: [PATCH] Use shared library when linking Python extensions + +--- + miniupnpc/setup.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/miniupnpc/setup.py b/miniupnpc/setup.py +index 049f670..2533ed4 100644 +--- a/miniupnpc/setup.py ++++ b/miniupnpc/setup.py +@@ -19,6 +19,6 @@ setup(name="miniupnpc", + description='miniUPnP client', + ext_modules=[ + Extension(name="miniupnpc", sources=["miniupnpcmodule.c"], +- extra_objects=["libminiupnpc.a"]) ++ libraries=["miniupnpc"]) + ]) + +-- +2.6.0 + diff --git a/dev-python/miniupnpc/miniupnpc-1.9.20150917.ebuild b/dev-python/miniupnpc/miniupnpc-1.9.20150917.ebuild new file mode 100644 index 000000000000..6e36f37601cc --- /dev/null +++ b/dev-python/miniupnpc/miniupnpc-1.9.20150917.ebuild @@ -0,0 +1,28 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +PYTHON_COMPAT=(python2_7 pypy) + +inherit distutils-r1 + +DESCRIPTION="Python bindings for UPnP client library" +HOMEPAGE="http://miniupnp.free.fr/" +SRC_URI="http://miniupnp.free.fr/files/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" +IUSE="" + +RDEPEND=">=net-libs/miniupnpc-${PV}:0=" +DEPEND="${RDEPEND}" + +PATCHES=( + "${FILESDIR}"/miniupnpc-1.9.20150917-shared-lib.patch +) + +# DOCS are installed by net-libs/miniupnpc. +DOCS=() -- 2.26.2