- Do not use tar with --strip-components to install example files, since

this option is still broken on 6.3-STABLE
- While at it, use DIST_SUBDIR and improve Makefile a little bit

Reported by:	PH via erwin
This commit is contained in:
Pietro Cerutti
2008-12-11 18:14:15 +00:00
parent de3bd6724f
commit 58bf980d22
2 changed files with 19 additions and 17 deletions

View File

@@ -13,6 +13,7 @@ DISTFILES= cfortran.h \
cfortran.html \
cfortran.doc \
cfortran.examples.tar.gz
DIST_SUBDIR= ${PORTNAME}
EXTRACT_ONLY= # none
MAINTAINER= gahr@FreeBSD.org
@@ -23,19 +24,20 @@ WRKSRC= ${WRKDIR}
post-extract:
.for dfile in ${DISTFILES}
${CP} ${DISTDIR}/${dfile} ${WRKDIR}
${CP} ${_DISTDIR}/${dfile} ${WRKSRC}
.endfor
(cd ${WRKSRC} && ${TAR} -xf cfortran.examples.tar.gz)
do-install:
${INSTALL_DATA} ${WRKDIR}/cfortran.h ${PREFIX}/include
${INSTALL_DATA} ${WRKSRC}/cfortran.h ${PREFIX}/include
.if !defined(NOPORTDOCS)
${INSTALL} -d ${DOCSDIR}
${INSTALL_DATA} ${WRKDIR}/cfortran.html ${DOCSDIR}
${INSTALL_DATA} ${WRKDIR}/cfortran.doc ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/cfortran.html ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/cfortran.doc ${DOCSDIR}
.endif
.if !defined(NOPORTEXAMPLES)
${INSTALL} -d ${EXAMPLESDIR}
${TAR} --strip-components 1 -xf ${WRKDIR}/cfortran.examples.tar.gz -C ${EXAMPLESDIR}
(cd ${WRKSRC}/eg && ${COPYTREE_SHARE} \* ${EXAMPLESDIR})
.endif
.include <bsd.port.mk>

View File

@@ -1,12 +1,12 @@
MD5 (cfortran.h) = 9584ad8f63c417c13109f53034d3fb79
SHA256 (cfortran.h) = 6006fe2714e698a879198e8d8fe93c4e7f76248b8cc5310bead4f37701ac9340
SIZE (cfortran.h) = 126566
MD5 (cfortran.html) = 3ca264b614878723f5ba7e83b8f2b6c8
SHA256 (cfortran.html) = e5b92848931197524e9e9c775915e04eb65612d7554d395041d65d8cd8fb7e6a
SIZE (cfortran.html) = 108812
MD5 (cfortran.doc) = 15fcd35aaf742c6cc192a9dda1458c36
SHA256 (cfortran.doc) = f5c307cd176ef9aa4b1264ba571755c04fcac2573fa110c8e5f1b68f322817c9
SIZE (cfortran.doc) = 94082
MD5 (cfortran.examples.tar.gz) = d346b3ffa8fe3220de01690e769b1af7
SHA256 (cfortran.examples.tar.gz) = e7799551cf92e20b6dceb50248ef36aafed519ca564ffe2c7fbe43c39ce46f57
SIZE (cfortran.examples.tar.gz) = 16435
MD5 (cfortran/cfortran.h) = 9584ad8f63c417c13109f53034d3fb79
SHA256 (cfortran/cfortran.h) = 6006fe2714e698a879198e8d8fe93c4e7f76248b8cc5310bead4f37701ac9340
SIZE (cfortran/cfortran.h) = 126566
MD5 (cfortran/cfortran.html) = 3ca264b614878723f5ba7e83b8f2b6c8
SHA256 (cfortran/cfortran.html) = e5b92848931197524e9e9c775915e04eb65612d7554d395041d65d8cd8fb7e6a
SIZE (cfortran/cfortran.html) = 108812
MD5 (cfortran/cfortran.doc) = 15fcd35aaf742c6cc192a9dda1458c36
SHA256 (cfortran/cfortran.doc) = f5c307cd176ef9aa4b1264ba571755c04fcac2573fa110c8e5f1b68f322817c9
SIZE (cfortran/cfortran.doc) = 94082
MD5 (cfortran/cfortran.examples.tar.gz) = d346b3ffa8fe3220de01690e769b1af7
SHA256 (cfortran/cfortran.examples.tar.gz) = e7799551cf92e20b6dceb50248ef36aafed519ca564ffe2c7fbe43c39ce46f57
SIZE (cfortran/cfortran.examples.tar.gz) = 16435