summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMathieu Arnold <mat@FreeBSD.org>2018-01-06 10:02:43 +0000
committerMathieu Arnold <mat@FreeBSD.org>2018-01-06 10:02:43 +0000
commitac3be951f8744a26b11f2135db71144ebff8d8a7 (patch)
tree91f1a78b3af2c21d6660993afe0a66dfe6187419
parent- Update calibre to 3.15.0 (diff)
Remove the use of submake, and use the parent's port shared library
instead. While there, remove an obsolete sed line that does not match anything. Sponsored by: Absolight
Notes
Notes: svn path=/head/; revision=458238
-rw-r--r--net/miniupnpc/files/patch-setup.py10
-rw-r--r--net/py-miniupnpc/Makefile10
2 files changed, 12 insertions, 8 deletions
diff --git a/net/miniupnpc/files/patch-setup.py b/net/miniupnpc/files/patch-setup.py
new file mode 100644
index 000000000000..fba42130e14c
--- /dev/null
+++ b/net/miniupnpc/files/patch-setup.py
@@ -0,0 +1,10 @@
+--- setup.py.orig 2018-01-06 09:33:40 UTC
++++ setup.py
+@@ -23,6 +23,6 @@ setup(name="miniupnpc",
+ description='miniUPnP client',
+ ext_modules=[
+ Extension(name="miniupnpc", sources=["miniupnpcmodule.c"],
+- extra_objects=["libminiupnpc.a"])
++ libraries=["miniupnpc"])
+ ])
+
diff --git a/net/py-miniupnpc/Makefile b/net/py-miniupnpc/Makefile
index 4682f8f33b63..9e9a1b9201c3 100644
--- a/net/py-miniupnpc/Makefile
+++ b/net/py-miniupnpc/Makefile
@@ -1,11 +1,12 @@
# $FreeBSD$
CATEGORIES= net python
+PORTREVISION= 1
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
COMMENT= Python module for miniupnpc
-BUILD_DEPENDS= ${NONEXISTENT}:net/miniupnpc:build
+LIB_DEPENDS= libminiupnpc.so:net/miniupnpc
MASTERDIR= ${.CURDIR}/../miniupnpc
@@ -14,13 +15,6 @@ USE_PYTHON= autoplist distutils
PLIST= ${.CURDIR}/pkg-plist
-post-patch:
- ${REINPLACE_CMD} 's/\(version\)="[^"]*"/\1="${PORTVERSION}"/' \
- ${WRKSRC}/setup.py
-
-pre-build:
- ${CP} $$(${SETENV} -u FLAVOR make -C ${MASTERDIR} -V WRKSRC)/libminiupnpc.a ${WRKSRC}
-
post-install:
${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/miniupnpc.so