diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-11-26 13:14:43 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-11-26 13:14:43 +0000 |
commit | 7de40ae3e1ba40671bc9aac9ebbf3f42952a036b (patch) | |
tree | 1bca877e82a542b8d0809d9de07a59ae67941c07 /dev-python/python-miniupnpc | |
parent | fd3ff6e6efb0d3cf8b899956e7b48df4e2ac9615 (diff) |
gentoo auto-resync : 26:11:2022 - 13:14:42
Diffstat (limited to 'dev-python/python-miniupnpc')
-rw-r--r-- | dev-python/python-miniupnpc/Manifest | 5 | ||||
-rw-r--r-- | dev-python/python-miniupnpc/files/miniupnpc-2.2.3-shared-lib.patch | 41 | ||||
-rw-r--r-- | dev-python/python-miniupnpc/metadata.xml | 12 | ||||
-rw-r--r-- | dev-python/python-miniupnpc/python-miniupnpc-2.2.4.ebuild | 51 |
4 files changed, 109 insertions, 0 deletions
diff --git a/dev-python/python-miniupnpc/Manifest b/dev-python/python-miniupnpc/Manifest new file mode 100644 index 000000000000..b9fb3eaabbd0 --- /dev/null +++ b/dev-python/python-miniupnpc/Manifest @@ -0,0 +1,5 @@ +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 +EBUILD python-miniupnpc-2.2.4.ebuild 1078 BLAKE2B d9e64ca302ca07938f678af5bdf39f9506454f44b745d40b891231d2d56b28664a46509561e2b8e5bbf819ff2eeca8d7742e4b7397c53e2094e8dc798acf7066 SHA512 115a79e298732bd8ed9cb45a0471ba46333e07d16ce75b8e825049a8eea1cba16776492b8864377dda1aa688bbc43b1b95ebee9c4a819b352b3fcf61f32e4cd1 +MISC metadata.xml 377 BLAKE2B ea6ed68d8dc3db74e7f2c667a78a74538e5ad3540b1c1cd05c51309188d468a63cc0672f46a35f1815d7317c70481c414f832bddfc0e8b29a960f9e68faeaeeb SHA512 eeb47bbf1e29648cc00c7fa2adfa3faed52a888e943d7fe34e5fb20dbdb1e323fe6d9f102af5737fc73b70d0f596274ad7a8c54904c8b6a9d6af4973aa69a481 diff --git a/dev-python/python-miniupnpc/files/miniupnpc-2.2.3-shared-lib.patch b/dev-python/python-miniupnpc/files/miniupnpc-2.2.3-shared-lib.patch new file mode 100644 index 000000000000..6fbb17e60e9f --- /dev/null +++ b/dev-python/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/python-miniupnpc/metadata.xml b/dev-python/python-miniupnpc/metadata.xml new file mode 100644 index 000000000000..304bb292a330 --- /dev/null +++ b/dev-python/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/python-miniupnpc/python-miniupnpc-2.2.4.ebuild b/dev-python/python-miniupnpc/python-miniupnpc-2.2.4.ebuild new file mode 100644 index 000000000000..583e2339bb5b --- /dev/null +++ b/dev-python/python-miniupnpc/python-miniupnpc-2.2.4.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{8..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())' |