svn commit: r432835 - in head/net-p2p/bitmessage: . files
Dmitry Marakasov
amdmi3 at FreeBSD.org
Mon Jan 30 11:35:19 UTC 2017
Author: amdmi3
Date: Mon Jan 30 11:35:18 2017
New Revision: 432835
URL: https://svnweb.freebsd.org/changeset/ports/432835
Log:
- Fix python paths
PR: 213717
Submitted by: yuri at rawbw.com (maintainer)
MFH: 2017Q1
Modified:
head/net-p2p/bitmessage/Makefile
head/net-p2p/bitmessage/files/patch-Makefile
Modified: head/net-p2p/bitmessage/Makefile
==============================================================================
--- head/net-p2p/bitmessage/Makefile Mon Jan 30 11:23:56 2017 (r432834)
+++ head/net-p2p/bitmessage/Makefile Mon Jan 30 11:35:18 2017 (r432835)
@@ -3,6 +3,7 @@
PORTNAME= bitmessage
PORTVERSION= 0.6.1
+PORTREVISION= 1
DISTVERSIONPREFIX= v
CATEGORIES= net-p2p
@@ -32,12 +33,11 @@ OPTIONS_SUB= yes
REINPLACE_ARGS= -i ''
post-patch:
- @${REINPLACE_CMD} -e 's|python2|${PYTHON_CMD}| ; s|share/man|man|' \
+ @${REINPLACE_CMD} -e 's|@PYTHON@|${PYTHON_CMD}|' \
${WRKSRC}/Makefile
@${REINPLACE_CMD} -e "s|\((CCFLAGS)\)|\1 -I${OPENSSLINC} |g" \
-e "s|\(-lcrypto\)|-L${OPENSSLLIB} \1|g" \
${WRKSRC}/src/bitmsghash/Makefile
- @${REINPLACE_CMD} -e 's|python2|${PYTHON_CMD}| ; s|share/man|man|' ${WRKSRC}/Makefile ${WRKSRC}/src/depends.py
@${REINPLACE_CMD} -e 's|^#!.*$$|#!${PYTHON_CMD}|' \
${WRKSRC}/compiletest.py ${WRKSRC}/src/bitmessagecli.py ${WRKSRC}/src/bitmessagemain.py \
${WRKSRC}/src/depends.py \
Modified: head/net-p2p/bitmessage/files/patch-Makefile
==============================================================================
--- head/net-p2p/bitmessage/files/patch-Makefile Mon Jan 30 11:23:56 2017 (r432834)
+++ head/net-p2p/bitmessage/files/patch-Makefile Mon Jan 30 11:35:18 2017 (r432835)
@@ -26,7 +26,7 @@
+ echo ' echo "BitMessage directory not found"' >> ${DESTDIR}${PREFIX}/bin/${APP}
+ echo ' exit 1' >> ${DESTDIR}${PREFIX}/bin/${APP}
echo 'fi' >> ${DESTDIR}${PREFIX}/bin/${APP}
-+ echo 'exec /usr/local/bin/python2.7 bitmessagemain.py' >> ${DESTDIR}${PREFIX}/bin/${APP}
++ echo 'exec @PYTHON@ bitmessagemain.py' >> ${DESTDIR}${PREFIX}/bin/${APP}
chmod +x ${DESTDIR}${PREFIX}/bin/${APP}
uninstall:
- rm -f ${PREFIX}/share/man/man1/${APP}.1.gz
More information about the svn-ports-all
mailing list