aboutsummaryrefslogtreecommitdiffstats
path: root/science
diff options
context:
space:
mode:
authoryuri <yuri@FreeBSD.org>2018-08-24 06:10:11 +0800
committeryuri <yuri@FreeBSD.org>2018-08-24 06:10:11 +0800
commit96245819bf7a9997e8819989553b2f2e7f85ade9 (patch)
tree4c347b84b0edfce61edbe72a76d45a00b625b0fc /science
parent55717d2c2cd0d687b9793e15b805e6b8847062a0 (diff)
downloadfreebsd-ports-gnome-96245819bf7a9997e8819989553b2f2e7f85ade9.tar.gz
freebsd-ports-gnome-96245819bf7a9997e8819989553b2f2e7f85ade9.tar.zst
freebsd-ports-gnome-96245819bf7a9997e8819989553b2f2e7f85ade9.zip
science/nwchem: Fix the mistake in handling the config file
Diffstat (limited to 'science')
-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}