From: Michał Górny Date: Wed, 13 Dec 2017 09:19:33 +0000 (+0100) Subject: dev-python/miniupnpc: Revert "Drop old" X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=be49dc3e8bfa23ec73bf04c23d4ac1bfaa6ff015;p=gentoo.git dev-python/miniupnpc: Revert "Drop old" This reverts commit b1fdf3baddb71714f189a30b7fb6fb9e446b4003. --- diff --git a/dev-python/miniupnpc/Manifest b/dev-python/miniupnpc/Manifest index 0b877e58a687..73dfab0496ab 100644 --- a/dev-python/miniupnpc/Manifest +++ b/dev-python/miniupnpc/Manifest @@ -1,2 +1,3 @@ +DIST miniupnpc-2.0.20170509.tar.gz 86055 BLAKE2B 7da640c4baac58aa26965a670877953b4c2d27aff08b604366bad6913b30c152d52120099f37c6250eeed97396ff412a4dd6000179070a82eebd3c052596b0d0 SHA512 71ec052ef6c8ad0d529e467ddae6eae19a93b9816174eeac753aa90e036cc2f00cf7e8d1cdb188ef8280849a988fe2995e37b63f8e2a361e021c1d1b306bff6f DIST miniupnpc-2.0.20171102.tar.gz 86363 BLAKE2B 755cc85bbac7f7c9b480612c12c46c09eaa7089dc9f458027805ffb4836631efafbead4bbb5e5313d1267e3110bc4b24c726c34250da3afd1ab0f1f96d53a654 SHA512 5af68a58bef587ea5cc405155b1aca4438de3b56d5fb7e11945edd79e5cbdbf44c708b7f1ad3c3fde6bf4710de69782acf30cfcce327c5a906f4eb8f76a6ba37 DIST miniupnpc-2.0.20171212.tar.gz 86607 BLAKE2B fce582c4125192f74f6ffb174295020af1c9b574b2094f5565a5e49641820a2d9cef719de59cb94bfd207182505237c22cf58425e1a7b47f5dfe2eb84c07d3c5 SHA512 d25708f4e2ef7311878ba6d17cb506f4bfe5c9cc6b7a79e4168f143ca9da8b96beb018c42dd735f0b23806668eba2308b7de26d1b506d91c23f79c7ed77399a0 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..086c0926651b --- /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/setup.py ++++ b/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-2.0.20170509.ebuild b/dev-python/miniupnpc/miniupnpc-2.0.20170509.ebuild new file mode 100644 index 000000000000..d1cda6440d24 --- /dev/null +++ b/dev-python/miniupnpc/miniupnpc-2.0.20170509.ebuild @@ -0,0 +1,30 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} pypy{,3} ) + +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=() + +# Example test command: +# python -c 'import miniupnpc; u = miniupnpc.UPnP(); u.discover(); u.selectigd(); print(u.externalipaddress())'