Workaround the way mopac installs executables.

PR:		ports/171932
Reported by:	Jinsong Zhao <jszhao yeah net>
This commit is contained in:
Xin LI 2013-04-29 17:30:09 +00:00
parent 4e4178dab5
commit 59816216bc
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=316832
2 changed files with 4 additions and 1 deletions

View File

@ -7,7 +7,7 @@
PORTNAME= mopac
PORTVERSION= 7.${MOPAC_SUBVERSION}
PORTREVISION= 1
PORTREVISION= 2
PORTEPOCH= 1
CATEGORIES= biology
MASTER_SITES= SF/${PORTNAME}7/${PORTNAME}7/${PORTNAME}7-1.00
@ -34,10 +34,12 @@ post-patch:
@${REINPLACE_CMD} -e '/pkgconfig/s|$$(libdir)|$$(prefix)/libdata|g' \
${WRKSRC}/Makefile.am
@${REINPLACE_CMD} -e '/usage/s|run_||g' \
-e 's|./src/mopac7|${PREFIX}/libexec/mopac7|g' \
${WRKSRC}/run_${PORTNAME}7
post-install:
${INSTALL_SCRIPT} ${WRKSRC}/run_${PORTNAME}7 ${PREFIX}/bin/${PORTNAME}7
${INSTALL_PROGRAM} ${WRKSRC}/src/.libs/${PORTNAME}7 ${PREFIX}/libexec/${PORTNAME}7
.if !defined(NOPORTEXAMPLES)
@${MKDIR} ${EXAMPLESDIR}/test
${INSTALL_DATA} ${WRKSRC}/tests/*.dat ${EXAMPLESDIR}/test

View File

@ -5,6 +5,7 @@ lib/libmopac7.la
lib/libmopac7.so
lib/libmopac7.so.0
libdata/pkgconfig/libmopac7.pc
libexec/mopac7
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/test/1scf.dat
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/test/elements.dat
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/test/force.dat