Date: Sun, 5 Apr 2015 21:17:23 +0000 (UTC) From: Don Lewis <truckman@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r383361 - head/net/py-pynmsg Message-ID: <201504052117.t35LHNN4063577@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: truckman Date: Sun Apr 5 21:17:22 2015 New Revision: 383361 URL: https://svnweb.freebsd.org/changeset/ports/383361 Log: 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. Modified: head/net/py-pynmsg/Makefile Modified: head/net/py-pynmsg/Makefile ============================================================================== --- head/net/py-pynmsg/Makefile Sun Apr 5 21:15:52 2015 (r383360) +++ head/net/py-pynmsg/Makefile Sun Apr 5 21:17:22 2015 (r383361) @@ -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>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201504052117.t35LHNN4063577>