diff options
| author | Palica <palica+gitlab@liguros.net> | 2020-06-23 22:35:08 +0200 |
|---|---|---|
| committer | Palica <palica+gitlab@liguros.net> | 2020-06-23 22:35:08 +0200 |
| commit | ecdac123787b96ce6649f0f91da12ea6458cc2b1 (patch) | |
| tree | b89c74d9e6fe6e8aebc4c77bcbeb4ab73214127d /dev-python/miniupnpc | |
| parent | 1be72aa41cf41dedadeecf59dca9f01de6381f5e (diff) | |
| download | baldeagleos-repo-ecdac123787b96ce6649f0f91da12ea6458cc2b1.tar.gz baldeagleos-repo-ecdac123787b96ce6649f0f91da12ea6458cc2b1.tar.xz baldeagleos-repo-ecdac123787b96ce6649f0f91da12ea6458cc2b1.zip | |
Updating liguros repo
Diffstat (limited to 'dev-python/miniupnpc')
| -rw-r--r-- | dev-python/miniupnpc/Manifest | 1 | ||||
| -rw-r--r-- | dev-python/miniupnpc/files/miniupnpc-2.0.20171102-shared-lib.patch | 41 | ||||
| -rw-r--r-- | dev-python/miniupnpc/metadata.xml | 9 | ||||
| -rw-r--r-- | dev-python/miniupnpc/miniupnpc-2.1.20191224.ebuild | 31 |
4 files changed, 82 insertions, 0 deletions
diff --git a/dev-python/miniupnpc/Manifest b/dev-python/miniupnpc/Manifest new file mode 100644 index 000000000000..955881a8af5a --- /dev/null +++ b/dev-python/miniupnpc/Manifest @@ -0,0 +1 @@ +DIST miniupnpc-2.1.20191224.tar.gz 94740 BLAKE2B 85c0b3eb678685bc7192dbee9440ec5f5be80cbac4d6a4e0a6473662c66f05ef512322cd535a142ffe16d3099a86f78ea70645a7eb2979c373e7a486aeab0cd5 SHA512 d362f914ce9177c1bc46f1f3ae59069c61c0c9c1b6ea7e78003d6b46445d3550835ffc541c2649b5fbc997d035357b461148edb3648135f33d0ce98b54961917 diff --git a/dev-python/miniupnpc/files/miniupnpc-2.0.20171102-shared-lib.patch b/dev-python/miniupnpc/files/miniupnpc-2.0.20171102-shared-lib.patch new file mode 100644 index 000000000000..f3245cb4b355 --- /dev/null +++ b/dev-python/miniupnpc/files/miniupnpc-2.0.20171102-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 = ['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=["miniupnpcmodule.c"], +- extra_objects=EXT) ++ 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..e076f7ae522d --- /dev/null +++ b/dev-python/miniupnpc/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer type="person"> + <email>mgorny@gentoo.org</email> + <name>Michał Górny</name> +</maintainer> + <origin>gentoo-staging</origin> +</pkgmetadata> diff --git a/dev-python/miniupnpc/miniupnpc-2.1.20191224.ebuild b/dev-python/miniupnpc/miniupnpc-2.1.20191224.ebuild new file mode 100644 index 000000000000..5e1d489b2e1e --- /dev/null +++ b/dev-python/miniupnpc/miniupnpc-2.1.20191224.ebuild @@ -0,0 +1,31 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6,7,8} pypy3 ) + +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} + dev-python/setuptools[${PYTHON_USEDEP}]" + +PATCHES=( + "${FILESDIR}"/miniupnpc-2.0.20171102-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())' |
