aboutsummaryrefslogtreecommitdiff
path: root/math/py-basemap
diff options
context:
space:
mode:
authorAlejandro Pulver <alepulver@FreeBSD.org>2006-10-31 03:03:42 +0000
committerAlejandro Pulver <alepulver@FreeBSD.org>2006-10-31 03:03:42 +0000
commit981420fb43bfedddd64342ab613cdfb85f60eefc (patch)
tree120ad62556db8ade49a2d668d200189da79f0bf0 /math/py-basemap
parent64f2a45295f5cba6a9bb816b4b8f4c62a14da35d (diff)
downloadports-981420fb43bfedddd64342ab613cdfb85f60eefc.tar.gz
ports-981420fb43bfedddd64342ab613cdfb85f60eefc.zip
Notes
Diffstat (limited to 'math/py-basemap')
-rw-r--r--math/py-basemap/Makefile59
-rw-r--r--math/py-basemap/distinfo3
-rw-r--r--math/py-basemap/files/patch-lib__matplotlib__toolkits__basemap__basemap.py11
-rw-r--r--math/py-basemap/pkg-descr3
4 files changed, 76 insertions, 0 deletions
diff --git a/math/py-basemap/Makefile b/math/py-basemap/Makefile
new file mode 100644
index 000000000000..e609b07c5f8a
--- /dev/null
+++ b/math/py-basemap/Makefile
@@ -0,0 +1,59 @@
+# ex:ts=8
+# Ports collection makefile for: py-basemap
+# Date created: April 21, 2006
+# Whom: mainland@apeiron.net
+#
+# $FreeBSD$
+#
+
+PORTNAME= basemap
+PORTVERSION= 0.9.2
+CATEGORIES= math python
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
+MASTER_SITE_SUBDIR= matplotlib
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= mainland@apeiron.net
+COMMENT= Plots data on map projections (with continental and political boundaries)
+
+RUN_DEPENDS= ${PYTHON_SITELIBDIR}/matplotlib/:${PORTSDIR}/math/py-matplotlib
+
+USE_PYTHON= 2.2+
+USE_PYDISTUTILS= yes
+
+DATADIR= ${PREFIX}/share/py-${PORTNAME}-data
+EXAMPLESDIR= ${PREFIX}/share/examples/py-${PORTNAME}
+
+MAKE_ENV= BASEMAP_DATA_PATH=${DATADIR}
+
+PLISTDIR= ${PYTHON_SITELIBDIR}/matplotlib/toolkits/basemap \
+ ${PYTHON_SITELIBDIR}/shapelib \
+ ${PYTHON_SITELIBDIR}/dbflib \
+ ${PYTHON_SITELIBDIR}/dbflibc.so \
+ ${PYTHON_SITELIBDIR}/shptree.so \
+ ${PYTHON_SITELIBDIR}/shapelibc.so \
+ ${PYTHON_SITELIBDIR}/pyproj.so \
+ ${PYTHON_SITELIBDIR}/basemap-0.9.2-py2.5.egg-info \
+ ${DATADIR}
+.if !defined(NOPORTDOCS)
+PLISTDIR+= ${EXAMPLESDIR}
+.endif
+
+.include <bsd.port.pre.mk>
+post-patch:
+ @${GREP} -lR "share/basemap" ${WRKSRC} | ${XARGS} ${REINPLACE_CMD} \
+ -e "s,share/basemap,share/py-basemap-data,g"
+
+post-install:
+.if !defined(NOPORTDOCS)
+ @${MKDIR} ${EXAMPLESDIR}
+ ${CP} -R ${WRKSRC}/examples/ ${EXAMPLESDIR}
+.endif
+.for dir in ${PLISTDIR}
+ @${FIND} ${dir} ! -type d | \
+ ${SED} 's,^${PREFIX}/,,' >> ${TMPPLIST}
+ @${FIND} ${dir} -type d | ${SORT} -r | \
+ ${SED} 's,^${PREFIX}/,@dirrm ,' >> ${TMPPLIST}
+.endfor
+
+.include <bsd.port.post.mk>
diff --git a/math/py-basemap/distinfo b/math/py-basemap/distinfo
new file mode 100644
index 000000000000..ee2fb388cc7f
--- /dev/null
+++ b/math/py-basemap/distinfo
@@ -0,0 +1,3 @@
+MD5 (basemap-0.9.2.tar.gz) = 1b2f7f654c007ca5cd98fcd18b85df61
+SHA256 (basemap-0.9.2.tar.gz) = 602c73cda3f657b49f7cabc5a60bd203a42f8cb7694c3e4fbcb6dc27389fbf0c
+SIZE (basemap-0.9.2.tar.gz) = 7348431
diff --git a/math/py-basemap/files/patch-lib__matplotlib__toolkits__basemap__basemap.py b/math/py-basemap/files/patch-lib__matplotlib__toolkits__basemap__basemap.py
new file mode 100644
index 000000000000..c10d7d53dd71
--- /dev/null
+++ b/math/py-basemap/files/patch-lib__matplotlib__toolkits__basemap__basemap.py
@@ -0,0 +1,11 @@
+--- lib/matplotlib/toolkits/basemap/basemap.py.orig Wed Oct 11 12:46:53 2006
++++ lib/matplotlib/toolkits/basemap/basemap.py Wed Oct 11 12:47:16 2006
+@@ -22,7 +22,7 @@
+ # BASEMAP_DATA_PATH env var not set.
+ _datadir = os.environ.get('BASEMAP_DATA_PATH')
+ if not _datadir:
+- _datadir = os.path.join(sys.prefix,'share','basemap')
++ _datadir = os.path.join(sys.prefix,'share','py-basemap-data')
+
+ __version__ = '0.9.2'
+ __revision__ = '20060831'
diff --git a/math/py-basemap/pkg-descr b/math/py-basemap/pkg-descr
new file mode 100644
index 000000000000..9b89f1476f8e
--- /dev/null
+++ b/math/py-basemap/pkg-descr
@@ -0,0 +1,3 @@
+Plots data on map projections (with continental and political boundaries).
+
+WWW: http://matplotlib.sourceforge.net/matplotlib.toolkits.basemap.basemap.html