FreeBSD Bugzilla – Attachment 144472 Details for
Bug 191366
[PATCH]net/mosquitto Add `PYTHON_LIB' option.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Allow python to be optional.
mosquitto-python-optional-patch.diff (text/plain), 1.85 KB, created by
joe
on 2014-07-07 03:08:59 UTC
(
hide
)
Description:
Allow python to be optional.
Filename:
MIME Type:
Creator:
joe
Created:
2014-07-07 03:08:59 UTC
Size:
1.85 KB
patch
obsolete
>diff --git a/net/mosquitto/Makefile b/net/mosquitto/Makefile >index c40c938..423fdb4 100644 >--- a/net/mosquitto/Makefile >+++ b/net/mosquitto/Makefile >@@ -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 >diff --git a/net/mosquitto/pkg-plist b/net/mosquitto/pkg-plist >index 58a2d60..27f712b 100644 >--- a/net/mosquitto/pkg-plist >+++ b/net/mosquitto/pkg-plist >@@ -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
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 191366
: 144472