From 96245819bf7a9997e8819989553b2f2e7f85ade9 Mon Sep 17 00:00:00 2001 From: yuri Date: Thu, 23 Aug 2018 22:10:11 +0000 Subject: science/nwchem: Fix the mistake in handling the config file --- science/nwchem/Makefile | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'science') 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,17 +34,13 @@ 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: ${INSTALL_DATA} ${WRKDIR}/nwchemrc ${STAGEDIR}${PREFIX}/etc/nwchemrc ${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} -- cgit