summaryrefslogtreecommitdiff
path: root/dev-python/miniupnpc
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-06-12 14:20:03 +0100
committerV3n3RiX <venerix@koprulu.sector>2023-06-12 14:20:03 +0100
commit522b6bf7e1f6133c288b94a77fc5e3d8eef2c179 (patch)
treec6624f4b91276a0312ca31ebfa276732608dddba /dev-python/miniupnpc
parent4d0ca679fbcb59301ffc7af98794c411c5061a0b (diff)
gentoo auto-resync : 12:06:2023 - 14:20:02
Diffstat (limited to 'dev-python/miniupnpc')
-rw-r--r--dev-python/miniupnpc/Manifest8
-rw-r--r--dev-python/miniupnpc/files/miniupnpc-2.2.3-shared-lib.patch41
-rw-r--r--dev-python/miniupnpc/metadata.xml12
-rw-r--r--dev-python/miniupnpc/miniupnpc-2.2.4.ebuild52
-rw-r--r--dev-python/miniupnpc/miniupnpc-2.2.5.ebuild52
5 files changed, 165 insertions, 0 deletions
diff --git a/dev-python/miniupnpc/Manifest b/dev-python/miniupnpc/Manifest
new file mode 100644
index 000000000000..3f55d8dabab1
--- /dev/null
+++ b/dev-python/miniupnpc/Manifest
@@ -0,0 +1,8 @@
+AUX miniupnpc-2.2.3-shared-lib.patch 1297 BLAKE2B 006825495896e2c614611abfb51453da937f15412b905c4d237dbaa90de4a9dc40a91677efa34653d6a5357a2a4fa71126b99e3a1e3de363872a5136b9450d3d SHA512 1daeb1efde47ba18684ec99b60ba47dd99575754817a1479190d9ec698246bb7f50365e73179c08c5cae8b57a4652b09cd3d3aea6293164994ee33e14d61f4ac
+DIST miniupnpc-2.2.4.tar.gz 102932 BLAKE2B ebfea3fe978280825b7beefb8fe799685a72b0a74c589f5f55c7fde3d8c0d4bbb3d50fa0ff3aed554fa1e24ada0a1ab578328373f0295020415998fe35cde0a0 SHA512 f6515bda86405114016474fef6332c0c09a56b9293cf4391113f549444bab67e7d031af7b94dacff5e7c96d6508527204498c00fb67d6067685ef606b2152595
+DIST miniupnpc-2.2.4.tar.gz.sig 543 BLAKE2B 14a1a1979e2d248bb721c66db3e28c1d6f970477e94235bdfa77763d5f9d4c0da42b23d026e861f48cc34a17e009bf8c57aacc648435ec9e31c3c4b6c3347ffb SHA512 476d1a6cfc519f82461bf4d516f73d40cc3ef27886da68d2e805a24d9c4609c53566e258bd2b622e7716f43c81c14bc0f01b189d23b46b87afc3c76d4e6fa23e
+DIST miniupnpc-2.2.5.tar.gz 103654 BLAKE2B 9cd3fee7bb4934610d57340d29ef61bbca8a94e230a0d35a26cfe4eec347f6807f7d5ab6edb38354ec82aa11bb7a83869169b3c322931f96a1e3a4dd6eec123c SHA512 32d362c43cf5c9f6c1546d85c2dd780f9701f3137bc78471b3670c4c0862b7fc4f081e6cb6fd14e5c0d3ec0602714756959491688998335c8a7b324e6c53aa2f
+DIST miniupnpc-2.2.5.tar.gz.sig 543 BLAKE2B ea7b5c254684f52485bc18ad4820c41e7c70a4eb5e552cb5f9d937a4927c9655a4fb959d32930299f1f863d4dbb5894ce76d693ce5a9996a44180038a02a0d5a SHA512 b23d35610d41c9dfc5af78de5329e9c28976685435bdff041759ab6e9f54154e7a082bcd313c682141fda8ba1e1c3b246e49109ad9a5323f003528d0ba71f880
+EBUILD miniupnpc-2.2.4.ebuild 1094 BLAKE2B 06a229257e5e46fa796d5dcd7b760e1d3c2dcb82529da961fc97f607d700bb8caa3d6fb1e6044ad199edd32bf55aa3febaef843e195a8735920bb9e6b7053cde SHA512 50a5374b314d6e9c0ff6a61b40c3159da378740a1c19d3186abeeb51a84cb8efd2e8ec3b1895594cce5f50dc5eaf15f53478b5af08a90f51da66ffac75debc56
+EBUILD miniupnpc-2.2.5.ebuild 1099 BLAKE2B fd8daf389bc62b527a5f14e181e12bb71dcae0d2e49db395f4d808667a8c1f6c83e9bd6a75ee2cdccd8f95790b1747df299eac3ddec124a30d6c9dba20ae4b32 SHA512 b4b9fb5545ae28ba501b163af8addc2a917119b9d3e1546f19711093724b1980ee8ba917e855ffd9457e92977b7125e2ce0d7e5426c9fd994457e1f8b32ce545
+MISC metadata.xml 377 BLAKE2B ea6ed68d8dc3db74e7f2c667a78a74538e5ad3540b1c1cd05c51309188d468a63cc0672f46a35f1815d7317c70481c414f832bddfc0e8b29a960f9e68faeaeeb SHA512 eeb47bbf1e29648cc00c7fa2adfa3faed52a888e943d7fe34e5fb20dbdb1e323fe6d9f102af5737fc73b70d0f596274ad7a8c54904c8b6a9d6af4973aa69a481
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/metadata.xml b/dev-python/miniupnpc/metadata.xml
new file mode 100644
index 000000000000..304bb292a330
--- /dev/null
+++ b/dev-python/miniupnpc/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>mgorny@gentoo.org</email>
+ <name>Michał Górny</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">miniupnp/miniupnp</remote-id>
+ <remote-id type="pypi">miniupnpc</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-python/miniupnpc/miniupnpc-2.2.4.ebuild b/dev-python/miniupnpc/miniupnpc-2.2.4.ebuild
new file mode 100644
index 000000000000..1af72ce9fa9b
--- /dev/null
+++ b/dev-python/miniupnpc/miniupnpc-2.2.4.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_EXT=1
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{9..11} pypy3 )
+
+inherit distutils-r1 verify-sig
+
+MY_P=${P/python-}
+DESCRIPTION="Python bindings for UPnP client library"
+HOMEPAGE="
+ http://miniupnp.free.fr/
+ https://miniupnp.tuxfamily.org/
+ https://github.com/miniupnp/miniupnp/
+"
+SRC_URI="
+ https://miniupnp.tuxfamily.org/files/${MY_P}.tar.gz
+ verify-sig? (
+ https://miniupnp.tuxfamily.org/files/${MY_P}.tar.gz.sig
+ )
+"
+S=${WORKDIR}/${MY_P}
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="amd64 ppc ppc64 x86"
+IUSE=""
+
+DEPEND="
+ >=net-libs/miniupnpc-${PV}:0=
+"
+RDEPEND="
+ ${DEPEND}
+"
+BDEPEND="
+ verify-sig? ( sec-keys/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())'
diff --git a/dev-python/miniupnpc/miniupnpc-2.2.5.ebuild b/dev-python/miniupnpc/miniupnpc-2.2.5.ebuild
new file mode 100644
index 000000000000..6dfeb0416354
--- /dev/null
+++ b/dev-python/miniupnpc/miniupnpc-2.2.5.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_EXT=1
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{10..12} pypy3 )
+
+inherit distutils-r1 verify-sig
+
+MY_P=${P/python-}
+DESCRIPTION="Python bindings for UPnP client library"
+HOMEPAGE="
+ http://miniupnp.free.fr/
+ https://miniupnp.tuxfamily.org/
+ https://github.com/miniupnp/miniupnp/
+"
+SRC_URI="
+ https://miniupnp.tuxfamily.org/files/${MY_P}.tar.gz
+ verify-sig? (
+ https://miniupnp.tuxfamily.org/files/${MY_P}.tar.gz.sig
+ )
+"
+S=${WORKDIR}/${MY_P}
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
+IUSE=""
+
+DEPEND="
+ >=net-libs/miniupnpc-${PV}:0=
+"
+RDEPEND="
+ ${DEPEND}
+"
+BDEPEND="
+ verify-sig? ( sec-keys/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())'