From 46fb0d3e7e8d11d9397f36bcec33ec1b374d2591 Mon Sep 17 00:00:00 2001 From: Nicola Vitale Date: Sun, 24 Dec 2006 09:31:31 +0000 Subject: [PATCH] Map data for the py-basemap port. WWW: http://matplotlib.sourceforge.net/matplotlib.toolkits.basemap.basemap.html PR: ports/104315 Submitted by: mainland at apeiron.net Approved by: alexbl (mentor) --- math/Makefile | 1 + math/py-basemap-data/Makefile | 44 ++++++++++++++++++++++++++++++++++ math/py-basemap-data/distinfo | 3 +++ math/py-basemap-data/pkg-descr | 3 +++ 4 files changed, 51 insertions(+) create mode 100644 math/py-basemap-data/Makefile create mode 100644 math/py-basemap-data/distinfo create mode 100644 math/py-basemap-data/pkg-descr diff --git a/math/Makefile b/math/Makefile index a53db7d78055..bfbc6f8f177b 100644 --- a/math/Makefile +++ b/math/Makefile @@ -280,6 +280,7 @@ SUBDIR += proofgeneral SUBDIR += pspp SUBDIR += py-basemap + SUBDIR += py-basemap-data SUBDIR += py-fpconst SUBDIR += py-gato SUBDIR += py-gnuplot diff --git a/math/py-basemap-data/Makefile b/math/py-basemap-data/Makefile new file mode 100644 index 000000000000..15e9bb9dcd2b --- /dev/null +++ b/math/py-basemap-data/Makefile @@ -0,0 +1,44 @@ +# ex:ts=8 +# Ports collection makefile for: py-basemap-data +# Date created: April 21, 2006 +# Whom: mainland@apeiron.net +# +# $FreeBSD$ +# + +PORTNAME= basemap-data +PORTVERSION= 0.9 +CATEGORIES= math python +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} +MASTER_SITE_SUBDIR= matplotlib +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= mainland@apeiron.net +COMMENT= Map data for py-basemap + +USE_PYTHON= 2.2+ +USE_PYDISTUTILS= yes + +DATADIR= ${PREFIX}/share/py-${PORTNAME} + +MAKE_ENV= BASEMAP_DATA_PATH=${DATADIR} + +PLISTDIR= ${DATADIR}/*_[hi].txt + + +.include + +.if ${PYTHON_REL} >= 250 +PLISTDIR+= ${PYTHON_SITELIBDIR}/basemap_data-0.9-py2.5.egg-info +.endif + +post-install: +.for dir in ${PLISTDIR} + @${FIND} ${dir} ! -type d | \ + ${SED} 's,^${PREFIX}/,,' >> ${TMPPLIST} + @${FIND} ${dir} -type d | ${SORT} -r | \ + ${SED} 's,^${PREFIX}/,@dirrm ,' >> ${TMPPLIST} +.endfor + @${ECHO} "@dirrm ${DATADIR:S,${PREFIX}/,,}" >> ${TMPPLIST} + +.include diff --git a/math/py-basemap-data/distinfo b/math/py-basemap-data/distinfo new file mode 100644 index 000000000000..ec7bc579691c --- /dev/null +++ b/math/py-basemap-data/distinfo @@ -0,0 +1,3 @@ +MD5 (basemap-data-0.9.tar.gz) = 5c4baf8f3de54193d64ab31c363a0e89 +SHA256 (basemap-data-0.9.tar.gz) = 6f64baf508ac48ff6776e394e17dbca3ed826c9cad30ad6cfd6bfa26ae582d77 +SIZE (basemap-data-0.9.tar.gz) = 24995626 diff --git a/math/py-basemap-data/pkg-descr b/math/py-basemap-data/pkg-descr new file mode 100644 index 000000000000..6a288a9cc321 --- /dev/null +++ b/math/py-basemap-data/pkg-descr @@ -0,0 +1,3 @@ +Map data for the py-basemap port. + +WWW: http://matplotlib.sourceforge.net/matplotlib.toolkits.basemap.basemap.html