summaryrefslogtreecommitdiff
path: root/dev-python/miniupnpc
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2021-10-01 20:54:53 +0100
committerV3n3RiX <venerix@redcorelinux.org>2021-10-01 20:54:53 +0100
commit391b5b359a346aff490103da7dddc85047f83830 (patch)
tree29eea460a0bd7e1ff21d43b9d6df9af4d8a175e1 /dev-python/miniupnpc
parentc719fdcee603a5a706a45d10cb598762d56a727d (diff)
gentoo resync : 01.10.2021
Diffstat (limited to 'dev-python/miniupnpc')
-rw-r--r--dev-python/miniupnpc/Manifest4
-rw-r--r--dev-python/miniupnpc/files/miniupnpc-2.2.3-shared-lib.patch41
-rw-r--r--dev-python/miniupnpc/miniupnpc-2.2.3.ebuild34
3 files changed, 79 insertions, 0 deletions
diff --git a/dev-python/miniupnpc/Manifest b/dev-python/miniupnpc/Manifest
index 45855c5f4fd2..cdffe550ec31 100644
--- a/dev-python/miniupnpc/Manifest
+++ b/dev-python/miniupnpc/Manifest
@@ -1,8 +1,12 @@
AUX miniupnpc-2.0.20171102-shared-lib.patch 1220 BLAKE2B 97fa99582f7992587e5f13e7569b7d6709cef8cc627d984c6a3ddef3265a6d069e3ae4a371e35804982ff9e5cd41b795a69576223b3a4ec8c591032f2f2f99f4 SHA512 bb099cee440b318ac12f68d810e2a7848df0150ecce01ba05e8f60cdff8fa0efb61ddc958586ffecf1bd9b0c15ea41954a6170e59028a24eb5a225e8fffdea33
+AUX miniupnpc-2.2.3-shared-lib.patch 1297 BLAKE2B 006825495896e2c614611abfb51453da937f15412b905c4d237dbaa90de4a9dc40a91677efa34653d6a5357a2a4fa71126b99e3a1e3de363872a5136b9450d3d SHA512 1daeb1efde47ba18684ec99b60ba47dd99575754817a1479190d9ec698246bb7f50365e73179c08c5cae8b57a4652b09cd3d3aea6293164994ee33e14d61f4ac
DIST miniupnpc-2.2.1.tar.gz 99595 BLAKE2B 07736eb15a985096178273c4578bb3f0cbf32a04632196e9c216d10751a6a5b1269af5fe2cbd447d85145746a7a8ce750ce13f674f5d8f9e4f6921b9d58204bf SHA512 62fc0098890980028199dd16e87b13ce23e78b2cc996433799792dc2a4fa9b5e230139593bde5c721f649c14fcee2e4d8a0558976c5506c21ff26deff6c7c907
DIST miniupnpc-2.2.1.tar.gz.sig 543 BLAKE2B 19da35662cf75d47de9cd16d3d8f767119e3dc04370801bf8893a17cd0af47072456b75bc3415b587371972a7c5c36623665391bbf4b9c655d1da3c0e5b8beb7 SHA512 8b5d41556c66e6330673a63eb3be2397cb057c37f648d950e8dfa0bb00e646f343cfbcbd11a6547198d4fa6b1ca2a82b46724e284ce76e96d96ad6b3b5b41c3f
DIST miniupnpc-2.2.2.tar.gz 100008 BLAKE2B 76bd18ad455be91a2b7680f59f59828a592077f3694ea5ed0f42222370d9e3d0e328dac1a6d530abcf28586384369d7c858c32fc3105f79cacad762ac5bc70fc SHA512 d322ae2a99faf01bee52f50a40d4bc2150c67a2f7e15b6078fe92faf2aecfe7ce10bd98cef3d94a77f6f7d1f7d8451cf4cdbf6fe11c9e7c1854ee066300b0116
DIST miniupnpc-2.2.2.tar.gz.sig 543 BLAKE2B e1089a0c3d937cb4e52b511ed0cc7b43a686a6c08df5ce5e008f1f5ec892b6a4f9f1c45ad4eb252c2aa57fd932a5c5dd4300adfdcee145f27cae51469f244179 SHA512 525f4b5c60ca1375df8a05cfffec3cf8e99ae070510621de2871926b6e84faec28cceb4feb983380e12b7271880872083ea4f4080c74572697476bb7ae795cf7
+DIST miniupnpc-2.2.3.tar.gz 101360 BLAKE2B d2a7f64d56be524c5c4aadfecd40da4e1ad040fd7eab64be5b5716cb06047e86e3ed6a9c17f697fd3210af0fb0a6ae032b6ef0a5c1f0d96a2e185db97b0d06e8 SHA512 8b9555d336d5dfe8017a16727f964cddacb3f2bf3528fe3dd2416480da5763b24e1740345e470f2123c170d79d88444e41dbbce4536e6069590925e4805bc5ee
+DIST miniupnpc-2.2.3.tar.gz.sig 543 BLAKE2B d10bcb765e0d7a1eb68dc6269080b71535fced443e801a09677872bc498c866a02f22d851db963fb126331f28d2314542507713f514560d9d6eca2262287dc8b SHA512 636ad425b430629ee91b2755b543e9754aa88e243972f47839a2ad958757a12ff598f962e9328e5ad0fa3e0b2f895854c9cb3ca099048e7c132c8ce27806986e
EBUILD miniupnpc-2.2.1.ebuild 905 BLAKE2B b062db8e22fac0c6a8f8f9f5785860bdb8fc8102902828c41144d140643e98466f966223fe5c8c2ec58be0143a0e9203d5d1f983c497408287325e76d738efb8 SHA512 4fceee78ba6e8bd03f6a27c83ddc4ec877112fb4e66ecd88f22839641e30bd46551c454600edb9e90cd0402361e5de4844249969fbf46b4f6cd96ff321b7e0f8
EBUILD miniupnpc-2.2.2.ebuild 905 BLAKE2B b062db8e22fac0c6a8f8f9f5785860bdb8fc8102902828c41144d140643e98466f966223fe5c8c2ec58be0143a0e9203d5d1f983c497408287325e76d738efb8 SHA512 4fceee78ba6e8bd03f6a27c83ddc4ec877112fb4e66ecd88f22839641e30bd46551c454600edb9e90cd0402361e5de4844249969fbf46b4f6cd96ff321b7e0f8
+EBUILD miniupnpc-2.2.3.ebuild 903 BLAKE2B 35ba634549aeac4dc665715d18cefcd1d77c5855909e583d4924621af98f0c6e0becc3285410f06f34723dd8b4acc57b35e4d6b66b3a7292909f7f1ec954d768 SHA512 21017a01191e3c0f8a198dce8a5ffbd22e1427ddcde6e9afbdc279f6bdf936e2a9bbecee9c8597a5121cfc931b22d34307dd2ee821375dd05d1f75737170002c
MISC metadata.xml 320 BLAKE2B ad0563e313308b3f4e7449b7010821c45c720f90fa9dbcb72ddd82707281ccff98d0c9ed60083d3b3e6c650a2d4f57c83fc0194758e1fdbe7ea73fa0fd6f850a SHA512 72ea7bf08fc1d4a32c473d8e62a368e9e79b52814a4d40a3f0be85bc208e2a057895c8db55196c232564e4a496b5e2b19a1206e967450b715f059219e13c53f7
diff --git a/dev-python/miniupnpc/files/miniupnpc-2.2.3-shared-lib.patch b/dev-python/miniupnpc/files/miniupnpc-2.2.3-shared-lib.patch
new file mode 100644
index 000000000000..6fbb17e60e9f
--- /dev/null
+++ b/dev-python/miniupnpc/files/miniupnpc-2.2.3-shared-lib.patch
@@ -0,0 +1,41 @@
+From 7a61313dda299b16c4af3260ae5c11ce5945ed97 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org>
+Date: Sun, 5 Nov 2017 09:24:00 +0100
+Subject: [PATCH] Link against the shared library
+
+---
+ setup.py | 10 +---------
+ 1 file changed, 1 insertion(+), 9 deletions(-)
+
+diff --git a/setup.py b/setup.py
+index b84146f..73b05b7 100644
+--- a/setup.py
++++ b/setup.py
+@@ -13,13 +13,6 @@ from setuptools.command import build_ext
+ import subprocess
+ import os
+
+-EXT = ['build/libminiupnpc.a']
+-
+-class make_then_build_ext(build_ext.build_ext):
+- def run(self):
+- subprocess.check_call([os.environ.get('MAKE', 'make')] + EXT)
+- build_ext.build_ext.run(self)
+-
+ setup(name="miniupnpc",
+ version=open('VERSION').read().strip(),
+ author='Thomas BERNARD',
+@@ -27,9 +20,8 @@ setup(name="miniupnpc",
+ license=open('LICENSE').read(),
+ url='http://miniupnp.free.fr/',
+ description='miniUPnP client',
+- cmdclass={'build_ext': make_then_build_ext},
+ ext_modules=[
+ Extension(name="miniupnpc", sources=["src/miniupnpcmodule.c"],
+- include_dirs=['include'], extra_objects=EXT)
++ include_dirs=['/usr/include/miniupnpc'], libraries=['miniupnpc'])
+ ])
+
+--
+2.15.0.rc2
+
diff --git a/dev-python/miniupnpc/miniupnpc-2.2.3.ebuild b/dev-python/miniupnpc/miniupnpc-2.2.3.ebuild
new file mode 100644
index 000000000000..1c9a9048f4ad
--- /dev/null
+++ b/dev-python/miniupnpc/miniupnpc-2.2.3.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{8..10} pypy3 )
+
+inherit distutils-r1 verify-sig
+
+DESCRIPTION="Python bindings for UPnP client library"
+HOMEPAGE="http://miniupnp.free.fr/"
+SRC_URI="http://miniupnp.free.fr/files/${P}.tar.gz
+ verify-sig? ( http://miniupnp.free.fr/files/${P}.tar.gz.sig )"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
+IUSE=""
+
+RDEPEND=">=net-libs/miniupnpc-${PV}:0="
+DEPEND="${RDEPEND}"
+BDEPEND="verify-sig? ( app-crypt/openpgp-keys-miniupnp )"
+
+VERIFY_SIG_OPENPGP_KEY_PATH=${BROOT}/usr/share/openpgp-keys/miniupnp.asc
+
+PATCHES=(
+ "${FILESDIR}"/miniupnpc-2.2.3-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())'