summaryrefslogtreecommitdiff
path: root/geography
diff options
context:
space:
mode:
authorgdt <gdt@pkgsrc.org>2015-09-09 23:40:08 +0000
committergdt <gdt@pkgsrc.org>2015-09-09 23:40:08 +0000
commit7e367f4ddce8ccbc3f96e81bac9dc0753e0b4329 (patch)
treee65644f33e995c70522c86e17a030b67dd6b5b43 /geography
parent4093fe3212eb5c23fc2049a5915bb859d06dd90c (diff)
downloadpkgsrc-7e367f4ddce8ccbc3f96e81bac9dc0753e0b4329.tar.gz
Add kludge to build given proj-provided projects.h.
Update HOMEPAGE. proj used to not install projects.h. This package has a private copy wtih extra macros for Id strings, and using the proj-provided projects.h via <> fails. Work around this by removing projects.h from the bl3 tree.
Diffstat (limited to 'geography')
-rw-r--r--geography/py-proj/Makefile13
1 files changed, 10 insertions, 3 deletions
diff --git a/geography/py-proj/Makefile b/geography/py-proj/Makefile
index b951775ee50..7b655c162b6 100644
--- a/geography/py-proj/Makefile
+++ b/geography/py-proj/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.16 2015/03/19 16:16:58 gdt Exp $
+# $NetBSD: Makefile,v 1.17 2015/09/09 23:40:08 gdt Exp $
VERSION= 1.9.4
PKGNAMEBASE= pyproj
@@ -6,12 +6,12 @@ DISTNAME= v${VERSION}rel
DIST_SUBDIR= pyproj
EGG_NAME= ${PKGNAMEBASE}-${VERSION}
PKGNAME= ${PYPKGPREFIX}-${PKGNAMEBASE:S/pyproj/proj/}-${VERSION}
+PKGREVISION= 1
CATEGORIES= geography
MASTER_SITES= ${MASTER_SITE_GITHUB:=jswhit/pyproj/archive/}
MAINTAINER= gdt@NetBSD.org
-HOMEPAGE= http://jswhit.github.io/pyproj/
-# https://github.com/jswhit/pyproj
+HOMEPAGE= https://jswhit.github.io/pyproj/
COMMENT= Python wrapper for proj
LICENSE= mit
@@ -19,6 +19,13 @@ WRKSRC= ${WRKDIR}/${PKGNAMEBASE}-${VERSION}rel
INSTALLATION_DIRS= share/doc/${PKGNAME_NOREV}
+# Horrible kludge: the package has a private copy of projects.h, which
+# proj used to not install, and the private copy has RCSID-type macros
+# which are needed. Until this is fixed upstream, avoid the
+# proj-provided projects.h.
+pre-build:
+ rm ${WRKDIR}/.buildlink/include/projects.h
+
post-install:
${INSTALL} ${WRKSRC}/README.md ${DESTDIR}${PREFIX}/share/doc/${PKGNAME_NOREV}