diff options
author | truckman <truckman@FreeBSD.org> | 2015-04-06 05:17:22 +0800 |
---|---|---|
committer | truckman <truckman@FreeBSD.org> | 2015-04-06 05:17:22 +0800 |
commit | 3f74fc7b3c21d8311394338b6bba2172aa9d85a9 (patch) | |
tree | 5dc4b5e1c2f62d4865f100deae1391611446f362 | |
parent | a3d6a914e598da63670f7a416bf8c7125562bb99 (diff) | |
download | freebsd-ports-gnome-3f74fc7b3c21d8311394338b6bba2172aa9d85a9.tar.gz freebsd-ports-gnome-3f74fc7b3c21d8311394338b6bba2172aa9d85a9.tar.zst freebsd-ports-gnome-3f74fc7b3c21d8311394338b6bba2172aa9d85a9.zip |
Add missing PKGNAMEPREFIX.
Install examples.
Use ${PYTHON_SITELIBDIR} instead of hardwiring a specific python version.
Differential Revision: https://reviews.freebsd.org/D2227
Approved by: mat (mentor)
Sponsored by: Farsight Security, Inc.
-rw-r--r-- | net/py-pynmsg/Makefile | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/net/py-pynmsg/Makefile b/net/py-pynmsg/Makefile index 111c54865bfb..a236770770d4 100644 --- a/net/py-pynmsg/Makefile +++ b/net/py-pynmsg/Makefile @@ -2,8 +2,10 @@ PORTNAME= pynmsg PORTVERSION= 0.3.1 +PORTREVISION= 1 CATEGORIES= net python MASTER_SITES= FARSIGHT LOCAL/truckman/farsight +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= truckman@FreeBSD.org COMMENT= Python wrapper for net/nmsg @@ -14,12 +16,19 @@ LICENSE_FILE= ${WRKSRC}/COPYRIGHT LIB_DEPENDS= libnmsg.so:${PORTSDIR}/net/nmsg USE_PYTHON= distutils autoplist +USES= python shebangfix uniquefiles:dirs -CPPFLAGS+= -I${LOCALBASE}/include +python_CMD= ${PYTHON_CMD} +python_OLD_CMD= /usr/bin/env python +SHEBANG_FILES= examples/*.py + +PORTEXAMPLES= * -USES= python +CPPFLAGS+= -I${LOCALBASE}/include post-install: - ${STRIP_CMD} ${STAGEDIR}/${PREFIX}/lib/python2.7/site-packages/_nmsg.so + ${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/_nmsg.so + ${MKDIR} ${STAGEDIR}${EXAMPLESDIR} + (cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}) .include <bsd.port.mk> |