From owner-svn-ports-head@FreeBSD.ORG Tue Jul 8 03:39:38 2014 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 7D5BA898; Tue, 8 Jul 2014 03:39:38 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 505EA23A5; Tue, 8 Jul 2014 03:39:38 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s683dcqs089835; Tue, 8 Jul 2014 03:39:38 GMT (envelope-from swills@svn.freebsd.org) Received: (from swills@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s683dbWR089833; Tue, 8 Jul 2014 03:39:37 GMT (envelope-from swills@svn.freebsd.org) Message-Id: <201407080339.s683dbWR089833@svn.freebsd.org> From: Steve Wills Date: Tue, 8 Jul 2014 03:39:37 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r361163 - head/net/mosquitto X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Jul 2014 03:39:38 -0000 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 + +.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%%