From: "Michał Górny" <mgorny@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/miniupnpc/, dev-python/miniupnpc/files/
Date: Sun, 5 Nov 2017 12:20:12 +0000 (UTC) [thread overview]
Message-ID: <1509884376.fb9b9a5f715baa12afce456b6609880e53c5ff70.mgorny@gentoo> (raw)
commit: fb9b9a5f715baa12afce456b6609880e53c5ff70
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sun Nov 5 08:19:36 2017 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun Nov 5 12:19:36 2017 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fb9b9a5f
dev-python/miniupnpc: Bump to 2.0.20171102
dev-python/miniupnpc/Manifest | 1 +
.../files/miniupnpc-2.0.20171102-shared-lib.patch | 41 ++++++++++++++++++++++
dev-python/miniupnpc/miniupnpc-2.0.20171102.ebuild | 31 ++++++++++++++++
3 files changed, 73 insertions(+)
diff --git a/dev-python/miniupnpc/Manifest b/dev-python/miniupnpc/Manifest
index fb97ff414a4..b4a2b1139ec 100644
--- a/dev-python/miniupnpc/Manifest
+++ b/dev-python/miniupnpc/Manifest
@@ -2,3 +2,4 @@ DIST miniupnpc-1.8.tar.gz 70624 SHA256 bc5f73c7b0056252c1888a80e6075787a1e1e9112
DIST miniupnpc-1.9.20151008.tar.gz 83538 SHA256 e444ac3b587ce82709c4d0cfca1fe71f44f9fc433e9f946b12b9e1bfe667a633 SHA512 b13e6044184f47d0f9e78c4c97d2887ab763121b2b21c86652bf3ea1b05335cfbcfd91eecb8d1dcfb5530f2528e6cf3e9c49c742d5e771dba68a774d2c2ad4ca WHIRLPOOL 839b531eb6cae7ada0bbaa0c4230a1f6889f6a288a114262bf6e27aa27638800636127fea3066427fb030e8f449794681d2bffeb8e2d30876d8ef9e4a3ade3cc
DIST miniupnpc-2.0.20161216.tar.gz 85780 SHA256 01e14408d6fc628de9afabc4417b84adeaba4c0ec517e7b8e278cb2993dafd3e SHA512 ed1413fa6cd8eeb0d01e595e5470b255b1119a9bcf28da17765a4a3f0eb2b514409a9bfe9cd041274761b61441389c290754055ff07d599bb653a4efe47e920f WHIRLPOOL fde2dc16f5cfd6e7d066ec49646ac79b6d262988afe928d80aaf47f6b7f868a272ac46d3136c56ed8373e800d1538fe4dd6c34255080e2bd01cc0cb8b56e37fc
DIST miniupnpc-2.0.20170509.tar.gz 86055 SHA256 d3c368627f5cdfb66d3ebd64ca39ba54d6ff14a61966dbecb8dd296b7039f16a SHA512 71ec052ef6c8ad0d529e467ddae6eae19a93b9816174eeac753aa90e036cc2f00cf7e8d1cdb188ef8280849a988fe2995e37b63f8e2a361e021c1d1b306bff6f WHIRLPOOL 86c1a7a1d8800dbc0d1eccad66a5cb61a59af38989ca79c3b8df926ed12d9c7760d0b5d0e59d5d3190b45c7801a76c3e209f156836277992131c587b97c1a48c
+DIST miniupnpc-2.0.20171102.tar.gz 86363 SHA256 148517020581260c8a2fa532224870bc53e59004777affcaf27ef636a72825d4 SHA512 5af68a58bef587ea5cc405155b1aca4438de3b56d5fb7e11945edd79e5cbdbf44c708b7f1ad3c3fde6bf4710de69782acf30cfcce327c5a906f4eb8f76a6ba37 WHIRLPOOL 80a9d0e487ddb2ac69af8e738144e74985c5b5acf8c4b7736121e58dbd04eaa38d90853e375334d7f05011b6134536e776757737f549410a6291941b0e47bf1e
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 00000000000..f3245cb4b35
--- /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/miniupnpc-2.0.20171102.ebuild b/dev-python/miniupnpc/miniupnpc-2.0.20171102.ebuild
new file mode 100644
index 00000000000..c3659faf80f
--- /dev/null
+++ b/dev-python/miniupnpc/miniupnpc-2.0.20171102.ebuild
@@ -0,0 +1,31 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} pypy{,3} )
+
+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())'
next reply other threads:[~2017-11-05 12:20 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-11-05 12:20 Michał Górny [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-03-20 6:28 [gentoo-commits] repo/gentoo:master commit in: dev-python/miniupnpc/, dev-python/miniupnpc/files/ Michał Górny
2021-11-17 7:30 Michał Górny
2021-09-29 7:03 Michał Górny
2017-12-13 7:56 Michał Górny
2015-10-01 16:56 Michał Górny
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1509884376.fb9b9a5f715baa12afce456b6609880e53c5ff70.mgorny@gentoo \
--to=mgorny@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox