mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 17:59:20 -04:00
- Fix python paths
PR: 213717 Submitted by: yuri@rawbw.com (maintainer) MFH: 2017Q1
This commit is contained in:
parent
910849a493
commit
d54e22724d
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=432835
2 changed files with 3 additions and 3 deletions
|
@ -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 \
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue