Date: Tue, 8 Jul 2014 03:39:37 +0000 (UTC) From: Steve Wills <swills@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r361163 - head/net/mosquitto Message-ID: <201407080339.s683dbWR089833@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: swills Date: Tue Jul 8 03:39:37 2014 New Revision: 361163 URL: http://svnweb.freebsd.org/changeset/ports/361163 QAT: https://qat.redports.org/buildarchive/r361163/ Log: net/mosquitto: make python support optional PR: 191366 Submitted by: joe@thrallingpenguin.com (maintainer) Modified: head/net/mosquitto/Makefile head/net/mosquitto/pkg-plist (contents, props changed) Modified: head/net/mosquitto/Makefile ============================================================================== --- head/net/mosquitto/Makefile Tue Jul 8 03:23:11 2014 (r361162) +++ head/net/mosquitto/Makefile Tue Jul 8 03:39:37 2014 (r361163) @@ -14,6 +14,11 @@ LICENSE= BSD3CLAUSE LIB_DEPENDS= libcares.so:${PORTSDIR}/dns/c-ares BUILD_DEPENDS= xsltproc:${PORTSDIR}/textproc/libxslt +OPTIONS_DEFAULT=PYTHON +OPTIONS_DEFINE= PYTHON + +PYTHON_DESC= Build python driver + USES= cmake USE_PYTHON= 2 NOCONFIGURE= yes @@ -24,16 +29,23 @@ USE_LDCONFIG= yes USERS= nobody -PLIST_SUB= PYTHON_VER=${PYTHON_VER} +.include <bsd.port.options.mk> + +.if ${PORT_OPTIONS:MPYTHON} +PLIST_SUB= PYTHON_VER=${PYTHON_VER} NOPYTHON="" +.else +PLIST_SUB= NOPYTHON="@comment " +.endif post-patch: ${MV} ${WRKSRC}/mosquitto.conf ${WRKSRC}/mosquitto.conf.example post-install: +.if ${PORT_OPTIONS:MPYTHON} cd ${WRKSRC}/lib/python ; \ ${PYTHON_CMD} ${WRKSRC}/lib/python/setup.py build ; \ ${PYTHON_CMD} ${WRKSRC}/lib/python/setup.py install --prefix=${PREFIX} --root=${STAGEDIR} - +.endif # Compress Man Pages ${GZIP_CMD} ${STAGEDIR}${PREFIX}/share/man/man8/mosquitto.8 ${GZIP_CMD} ${STAGEDIR}${PREFIX}/share/man/man7/mqtt.7 Modified: head/net/mosquitto/pkg-plist ============================================================================== --- head/net/mosquitto/pkg-plist Tue Jul 8 03:23:11 2014 (r361162) +++ head/net/mosquitto/pkg-plist Tue Jul 8 03:39:37 2014 (r361163) @@ -6,9 +6,9 @@ share/man/man3/libmosquitto.3.gz share/man/man1/mosquitto_sub.1.gz share/man/man1/mosquitto_pub.1.gz share/man/man1/mosquitto_passwd.1.gz -%%PYTHON_LIBDIR%%/site-packages/mosquitto.pyc -%%PYTHON_LIBDIR%%/site-packages/mosquitto.py -%%PYTHON_LIBDIR%%/site-packages/mosquitto-1.3.1-py%%PYTHON_VER%%.egg-info +%%NOPYTHON%%%%PYTHON_LIBDIR%%/site-packages/mosquitto.pyc +%%NOPYTHON%%%%PYTHON_LIBDIR%%/site-packages/mosquitto.py +%%NOPYTHON%%%%PYTHON_LIBDIR%%/site-packages/mosquitto-1.3.1-py%%PYTHON_VER%%.egg-info lib/libmosquittopp.so.1 lib/libmosquittopp.so lib/libmosquitto.so.1 @@ -35,5 +35,5 @@ etc/mosquitto/aclfile.example @dirrmtry share/man/man3 @dirrmtry share/man/man1 @dirrmtry share/man -@dirrmtry %%PYTHON_LIBDIR%%/site-packages -@dirrmtry %%PYTHON_LIBDIR%% +%%NOPYTHON%% @dirrmtry %%PYTHON_SITELIBDIR%% +%%NOPYTHON%% @dirrmtry %%PYTHON_LIBDIR%%
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201407080339.s683dbWR089833>