diff options
author | avilla <avilla@FreeBSD.org> | 2012-02-05 01:39:12 +0800 |
---|---|---|
committer | avilla <avilla@FreeBSD.org> | 2012-02-05 01:39:12 +0800 |
commit | 2f325edbcc181b9951116d1954a74c1d01427ba0 (patch) | |
tree | 46432a897d93036a57700b0da1034bbf11890651 /comms | |
parent | e6b0ce66a254ec648527f78b345506212f84a48a (diff) | |
download | freebsd-ports-gnome-2f325edbcc181b9951116d1954a74c1d01427ba0.tar.gz freebsd-ports-gnome-2f325edbcc181b9951116d1954a74c1d01427ba0.tar.zst freebsd-ports-gnome-2f325edbcc181b9951116d1954a74c1d01427ba0.zip |
- Move Python scripts to DATADIR to avoid spamming Python directories
without depending on Python. [1]
- Remove hardcoded Python binary path from Python scripts.
- Bump PORTREVISION.
Requested by: pav [1]
Diffstat (limited to 'comms')
-rw-r--r-- | comms/usbmuxd/Makefile | 14 | ||||
-rw-r--r-- | comms/usbmuxd/pkg-plist | 7 |
2 files changed, 11 insertions, 10 deletions
diff --git a/comms/usbmuxd/Makefile b/comms/usbmuxd/Makefile index a2a607b59fe3..2302ae77b218 100644 --- a/comms/usbmuxd/Makefile +++ b/comms/usbmuxd/Makefile @@ -6,7 +6,7 @@ PORTNAME= usbmuxd PORTVERSION= 1.0.7 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= comms MASTER_SITES= http://marcansoft.com/uploads/${PORTNAME}/ @@ -15,8 +15,6 @@ COMMENT= A daemon for multiplexing connections over USB to an iPhone/iPod Touch LIB_DEPENDS= plist.1:${PORTSDIR}/devel/libplist -USE_PYTHON= yes -PYTHON_NO_DEPENDS= yes USE_BZIP2= yes USE_CMAKE= yes MAKE_JOBS_SAFE= yes @@ -34,10 +32,14 @@ pre-configure: ${REINPLACE_CMD} -e 's|$${LIB_SUFFIX}/pkgconfig|data/pkgconfig|' \ ${WRKSRC}/CMakeLists.txt +pre-install: + ${REINPLACE_CMD} -e '1 s|python|env python|' \ + ${WRKSRC}/python-client/*.py + post-install: - ${MKDIR} ${PYTHON_SITELIBDIR}/${PORTNAME} - ${INSTALL_DATA} ${WRKSRC}/python-client/*.py \ - ${PYTHON_SITELIBDIR}/${PORTNAME}/ + ${MKDIR} ${DATADIR} + ${INSTALL_SCRIPT} ${WRKSRC}/python-client/*.py \ + ${DATADIR}/ .ifndef(NOPORTDOCS) ${MKDIR} ${DOCSDIR} .for f in ${PORTDOCS} diff --git a/comms/usbmuxd/pkg-plist b/comms/usbmuxd/pkg-plist index 67fa67179041..3086a49b40a5 100644 --- a/comms/usbmuxd/pkg-plist +++ b/comms/usbmuxd/pkg-plist @@ -4,9 +4,8 @@ include/usbmuxd.h lib/libusbmuxd.so lib/libusbmuxd.so.1 lib/libusbmuxd.so.1.0.7 -%%PYTHON_SITELIBDIR%%/usbmuxd/tcprelay.py -%%PYTHON_SITELIBDIR%%/usbmuxd/usbmux.py libdata/pkgconfig/libusbmuxd.pc sbin/usbmuxd -@dirrm %%PYTHON_SITELIBDIR%%/usbmuxd -@dirrmtry %%PYTHON_SITELIBDIR%% +%%DATADIR%%/tcprelay.py +%%DATADIR%%/usbmux.py +@dirrm %%DATADIR%% |