diff options
Diffstat (limited to 'net/py-miniupnpc')
-rw-r--r-- | net/py-miniupnpc/Makefile | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/net/py-miniupnpc/Makefile b/net/py-miniupnpc/Makefile index 9f2b837d81a6..68198f9c8d51 100644 --- a/net/py-miniupnpc/Makefile +++ b/net/py-miniupnpc/Makefile @@ -9,8 +9,8 @@ BUILD_DEPENDS= ${NONEXISTENT}:${PORTSDIR}/net/miniupnpc:build MASTERDIR= ${.CURDIR}/../miniupnpc -USE_PYTHON= yes -USE_PYDISTUTILS=yes +USES= python +USE_PYTHON= distutils WRKDIR= ${WRKDIRPREFIX}${MASTERDIR}/work PLIST= ${.CURDIR}/pkg-plist @@ -20,7 +20,10 @@ PLIST= ${.CURDIR}/pkg-plist .endif post-patch: - @${REINPLACE_CMD} 's/\(version\)="[^"]*"/\1="${PORTVERSION}"/' \ + ${REINPLACE_CMD} 's/\(version\)="[^"]*"/\1="${PORTVERSION}"/' \ ${WRKSRC}/setup.py +post-install: + ${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/miniupnpc.so + .include "${MASTERDIR}/Makefile" |