summaryrefslogtreecommitdiff
path: root/geography/proj
diff options
context:
space:
mode:
authorgdt <gdt@pkgsrc.org>2019-02-20 17:42:00 +0000
committergdt <gdt@pkgsrc.org>2019-02-20 17:42:00 +0000
commit270b7ae3d8b8264a86353665cf797ccbcf680b8d (patch)
tree75a9fd0fd81376bb050bee382954811767403bb6 /geography/proj
parentc5a9cff3dc2ef1cb8bbf4028f2d6ed79149592b1 (diff)
downloadpkgsrc-270b7ae3d8b8264a86353665cf797ccbcf680b8d.tar.gz
geography/proj: Change method for handling of datumgrids
Stop having an explicit list of files, and just rearrange them en masse. Simplifies maintenance -- no change to binary package.
Diffstat (limited to 'geography/proj')
-rw-r--r--geography/proj/Makefile18
1 files changed, 5 insertions, 13 deletions
diff --git a/geography/proj/Makefile b/geography/proj/Makefile
index ab4093792f9..1e24f8902dc 100644
--- a/geography/proj/Makefile
+++ b/geography/proj/Makefile
@@ -1,11 +1,12 @@
-# $NetBSD: Makefile,v 1.13 2019/02/20 17:33:59 gdt Exp $
+# $NetBSD: Makefile,v 1.14 2019/02/20 17:42:00 gdt Exp $
VERSION_BASE= 5.2.0
VERSION_RC=
VERSION= ${VERSION_BASE}${VERSION_RC}
PKGREVISION= 1
# proj RCs have names like 5.1.0RC1 but unpack to 5.1.0
-WRKSRC= ${WRKDIR}/proj-${VERSION_BASE}
+WRKFINAL= proj-${VERSION_BASE}
+WRKSRC= ${WRKDIR}/${WRKFINAL}
DISTNAME= proj-${VERSION}
CATEGORIES= geography
MASTER_SITES= https://download.osgeo.org/proj/
@@ -29,18 +30,9 @@ GNU_CONFIGURE= yes
TEST_TARGET= check
# \todo Ideally, the files would be unpacked directly in nad.
-# The file lists are grouped in the same way as the datumgrid files
-# appear in DISTFILES.
-DATUMGRID_FILES= \
- BETA2007.gsb FL MD README.DATUMGRID TN WI WO alaska conus \
- egm96_15.gtx hawaii ntf_r93.gsb ntv1_can.dat null \
- nzgd2kgrid0005.gsb prvi stgeorge stlrnc stpaul \
- \
- vertconc.gtx vertconw.gtx gvr2016.gtx vertcone.gtx gvr2000.gtx \
- GL README.NORTHAMERICA
-
+# Assume that all of the stray files in ${WRKDIR} came from datumgrids.
post-extract:
- cd ${WRKDIR} && ${LN} ${DATUMGRID_FILES} ${WRKSRC}/nad
+ cd ${WRKDIR} && for f in *; do if [ $$f != ${WRKFINAL} ]; then mv $$f ${WRKFINAL}/nad; fi; done
.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"