diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-06-12 14:20:03 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-06-12 14:20:03 +0100 |
commit | 522b6bf7e1f6133c288b94a77fc5e3d8eef2c179 (patch) | |
tree | c6624f4b91276a0312ca31ebfa276732608dddba /dev-python/miniupnpc/files | |
parent | 4d0ca679fbcb59301ffc7af98794c411c5061a0b (diff) |
gentoo auto-resync : 12:06:2023 - 14:20:02
Diffstat (limited to 'dev-python/miniupnpc/files')
-rw-r--r-- | dev-python/miniupnpc/files/miniupnpc-2.2.3-shared-lib.patch | 41 |
1 files changed, 41 insertions, 0 deletions
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 + |