aboutsummaryrefslogtreecommitdiffstats
path: root/biology/garlic
diff options
context:
space:
mode:
authormarino <marino@FreeBSD.org>2014-07-17 18:13:06 +0800
committermarino <marino@FreeBSD.org>2014-07-17 18:13:06 +0800
commit34932b501663232a3e5ef9a1da5597872603955d (patch)
treea1f35f5d25f43abfc39918602c9c298030e62360 /biology/garlic
parent85c2b8d1b15aa03a3acd7c68973773665a0a56a8 (diff)
downloadfreebsd-ports-graphics-34932b501663232a3e5ef9a1da5597872603955d.tar.gz
freebsd-ports-graphics-34932b501663232a3e5ef9a1da5597872603955d.tar.zst
freebsd-ports-graphics-34932b501663232a3e5ef9a1da5597872603955d.zip
biology/garlic: Stage properly to unbreak
The main problem was the WRKDIR is not within STAGEDIR. Fix this while moving all the directory creation steps into one. While here set TAR to use switches as outlined in its man page. Also, the permission setting in stagedir is not necessary, so it's simply been removed.
Diffstat (limited to 'biology/garlic')
-rw-r--r--biology/garlic/Makefile12
1 files changed, 5 insertions, 7 deletions
diff --git a/biology/garlic/Makefile b/biology/garlic/Makefile
index 3e987d01a3b..ad588d46c7c 100644
--- a/biology/garlic/Makefile
+++ b/biology/garlic/Makefile
@@ -3,6 +3,7 @@
PORTNAME= garlic
PORTVERSION= 1.6
+PORTREVISION= 1
CATEGORIES= biology
MASTER_SITES= http://www.zucic.org/sources/garlic-${PORTVERSION}/
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}
@@ -36,19 +37,16 @@ post-patch:
s|%%CFLAGS%%|${CFLAGS}|g' ${WRKSRC}/Makefile
do-install:
- ${MKDIR} ${STAGEDIR}${DATADIR}
+ @${MKDIR} ${STAGEDIR}${DATADIR} ${STAGEDIR}${EXAMPLESDIR} \
+ ${STAGEDIR}${DOCSDIR} ${WRKDIR}/doc
${INSTALL_PROGRAM} ${WRKSRC}/garlic ${STAGEDIR}${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/.garlicrc ${STAGEDIR}${DATADIR}
${INSTALL_DATA} ${WRKSRC}/residues.pdb ${STAGEDIR}${DATADIR}
- @${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/*.pdb ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/*.script ${STAGEDIR}${EXAMPLESDIR}
- @${MKDIR} ${STAGEDIR}${DOCSDIR}
- @${MKDIR} ${STAGEDIR}${WRKDIR}/doc
- (cd ${WRKDIR}/doc ; ${TAR} xfz ${DISTDIR}/${DISTNAME}-doc${EXTRACT_SUFX} )
+ (cd ${WRKDIR}/doc ; \
+ ${TAR} -xzf ${DISTDIR}/${DISTNAME}-doc${EXTRACT_SUFX} )
${TAR} -C ${WRKDIR}/doc/${DISTNAME} -cf - . | \
${TAR} -C ${STAGEDIR}${DOCSDIR} -xf -
- ${FIND} ${STAGEDIR}${DOCSDIR} | ${XARGS} ${CHOWN} ${SHAREOWN}:${SHAREGRP}
- ${FIND} ${STAGEDIR}${DOCSDIR} -type f | ${XARGS} ${CHMOD} ${SHAREMODE}
.include <bsd.port.mk>