aboutsummaryrefslogtreecommitdiffstats
path: root/lang
diff options
context:
space:
mode:
authorgahr <gahr@FreeBSD.org>2008-12-12 02:14:15 +0800
committergahr <gahr@FreeBSD.org>2008-12-12 02:14:15 +0800
commitcc8a34ddb2b1c3d7e5c591ba5dc52ecb30986d57 (patch)
tree48a6ef9b31a15d9e7261ce30961be79fb94cdca2 /lang
parent7984537f40c5555a88c005d9fa6a31f63a48c73d (diff)
downloadfreebsd-ports-gnome-cc8a34ddb2b1c3d7e5c591ba5dc52ecb30986d57.tar.gz
freebsd-ports-gnome-cc8a34ddb2b1c3d7e5c591ba5dc52ecb30986d57.tar.zst
freebsd-ports-gnome-cc8a34ddb2b1c3d7e5c591ba5dc52ecb30986d57.zip
- 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
Diffstat (limited to 'lang')
-rw-r--r--lang/cfortran/Makefile12
-rw-r--r--lang/cfortran/distinfo24
2 files changed, 19 insertions, 17 deletions
diff --git a/lang/cfortran/Makefile b/lang/cfortran/Makefile
index 1c2d170a783a..d2ed6ca41b84 100644
--- a/lang/cfortran/Makefile
+++ b/lang/cfortran/Makefile
@@ -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>
diff --git a/lang/cfortran/distinfo b/lang/cfortran/distinfo
index 68fbf5f777e7..cbcb28913803 100644
--- a/lang/cfortran/distinfo
+++ b/lang/cfortran/distinfo
@@ -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