aboutsummaryrefslogtreecommitdiff
path: root/science/nwchem/Makefile
diff options
context:
space:
mode:
authorYuri Victorovich <yuri@FreeBSD.org>2018-08-23 22:10:11 +0000
committerYuri Victorovich <yuri@FreeBSD.org>2018-08-23 22:10:11 +0000
commit80337ceead4e91a5360b25c6c927cce876d3f5d5 (patch)
tree4c347b84b0edfce61edbe72a76d45a00b625b0fc /science/nwchem/Makefile
parent6f6234720bb132b69128afac1fed95c0b45ffb6c (diff)
downloadports-80337ceead4e91a5360b25c6c927cce876d3f5d5.tar.gz
ports-80337ceead4e91a5360b25c6c927cce876d3f5d5.zip
Notes
Diffstat (limited to 'science/nwchem/Makefile')
-rw-r--r--science/nwchem/Makefile7
1 files changed, 2 insertions, 5 deletions
diff --git a/science/nwchem/Makefile b/science/nwchem/Makefile
index ef34336fc10a..1ffca3d584fd 100644
--- a/science/nwchem/Makefile
+++ b/science/nwchem/Makefile
@@ -2,6 +2,7 @@
PORTNAME= nwchem
DISTVERSION= 6.8.1-release-94
+PORTREVISION= 1
DISTVERSIONSUFFIX= -g1a262862b
CATEGORIES= science
@@ -33,7 +34,7 @@ SUB_FILES= nwchemrc
WRKSRC_SUBDIR= src
BINARY_ALIAS= gcc=${CC}
-post-install:
+post-patch:
@${REINPLACE_CMD} 's|nwchrc="/etc/nwchemrc"|nwchrc="${PREFIX}/etc/nwchemrc"|' ${WRKSRC}/util/util_nwchemrc.F
do-install:
@@ -41,10 +42,6 @@ do-install:
${INSTALL_PROGRAM} ${WRKSRC}/../bin/LINUX64/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}.shadow
@(echo "#!/bin/sh"; \
echo ""; \
- echo "if ! [ -f ~/.nwchemrc ]; then"; \
- echo " cp ${PREFIX}/etc/nwchemrc ~/.nwchemrc"; \
- echo "fi"; \
- echo ""; \
echo "LD_PRELOAD=${PREFIX}/lib/gcc${GCC_DEFAULT}/libgcc_s.so ${PREFIX}/bin/${PORTNAME}.shadow \""$$"@\"" \
) > ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
@${CHMOD} +x ${STAGEDIR}${PREFIX}/bin/${PORTNAME}