diff options
author | Michał Górny <mgorny@gentoo.org> | 2023-06-12 13:14:57 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2023-06-12 13:37:43 +0200 |
commit | 5a7c44451fba1bb80ddf5c17e7be3af925b0ae0e (patch) | |
tree | 579fe3a1b4c994da8a90e2b87fd855197a9de24e /dev-python/miniupnpc | |
parent | dev-python/jsonschema-spec: Bump to 0.1.6 (diff) | |
download | gentoo-5a7c44451fba1bb80ddf5c17e7be3af925b0ae0e.tar.gz gentoo-5a7c44451fba1bb80ddf5c17e7be3af925b0ae0e.tar.bz2 gentoo-5a7c44451fba1bb80ddf5c17e7be3af925b0ae0e.zip |
Rename dev-python/{python-miniupnpc → miniupnpc}
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/miniupnpc')
-rw-r--r-- | dev-python/miniupnpc/Manifest | 2 | ||||
-rw-r--r-- | dev-python/miniupnpc/files/miniupnpc-2.2.3-shared-lib.patch | 41 | ||||
-rw-r--r-- | dev-python/miniupnpc/metadata.xml | 12 | ||||
-rw-r--r-- | dev-python/miniupnpc/miniupnpc-2.2.4.ebuild | 52 |
4 files changed, 107 insertions, 0 deletions
diff --git a/dev-python/miniupnpc/Manifest b/dev-python/miniupnpc/Manifest new file mode 100644 index 000000000000..6f8bb1688fd0 --- /dev/null +++ b/dev-python/miniupnpc/Manifest @@ -0,0 +1,2 @@ +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 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())' |