1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00

net/mosquitto: make python support optional

PR:		191366
Submitted by:	joe@thrallingpenguin.com (maintainer)
This commit is contained in:
Steve Wills 2014-07-08 03:39:37 +00:00
parent e9fb9c69f3
commit 4f8e91b39c
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=361163
2 changed files with 19 additions and 7 deletions

View File

@ -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

View File

@ -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%%