summaryrefslogtreecommitdiff
path: root/math/py-matplotlib
diff options
context:
space:
mode:
Diffstat (limited to 'math/py-matplotlib')
-rw-r--r--math/py-matplotlib/Makefile53
-rw-r--r--math/py-matplotlib/distinfo2
-rw-r--r--math/py-matplotlib/files/patch-setup.py11
-rw-r--r--math/py-matplotlib/files/patch-setupext.py19
-rw-r--r--math/py-matplotlib/pkg-descr8
5 files changed, 93 insertions, 0 deletions
diff --git a/math/py-matplotlib/Makefile b/math/py-matplotlib/Makefile
new file mode 100644
index 000000000000..bd9f41d033d1
--- /dev/null
+++ b/math/py-matplotlib/Makefile
@@ -0,0 +1,53 @@
+# ex:ts=8
+# Ports collection makefile for: py-matplotlib
+# Date created: Aug 4, 2004
+# Whom: ijliao
+#
+# $FreeBSD$
+#
+
+PORTNAME= matplotlib
+PORTVERSION= 0.60.2
+CATEGORIES= math python
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
+MASTER_SITE_SUBDIR= ${PORTNAME}
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= ports@FreeBSD.org
+COMMENT= A plotting library uses a syntax familiar to matlab users
+
+BUILD_DEPENDS= ${PYNUMERIC} \
+ ${PYTHON_SITELIBDIR}/_tkinter.so:${PORTSDIR}/x11-toolkits/py-tkinter \
+ ${LOCALBASE}/lib/libagg.a:${PORTSDIR}/graphics/agg
+LIB_DEPENDS= freetype.9:${PORTSDIR}/print/freetype2
+RUN_DEPENDS= ${PYNUMERIC} \
+ ${PYTHON_SITELIBDIR}/_tkinter.so:${PORTSDIR}/x11-toolkits/py-tkinter
+
+USE_PYTHON= 2.2+
+USE_PYDISTUTILS= yes
+USE_GNOME= gtk20 pygtk2
+CFLAGS+= -I${X11BASE}/include
+
+DATADIR= ${PREFIX}/share/py-${PORTNAME}
+EXAMPLESDIR= ${PREFIX}/share/examples/py-${PORTNAME}
+
+PLISTDIR= ${PYTHON_SITELIBDIR}/${PORTNAME} ${DATADIR}
+.if !defined(NOPORTDOCS)
+PLISTDIR+= ${EXAMPLESDIR}
+.endif
+
+.include <bsd.port.pre.mk>
+
+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-matplotlib/distinfo b/math/py-matplotlib/distinfo
new file mode 100644
index 000000000000..ce5e55ab3c32
--- /dev/null
+++ b/math/py-matplotlib/distinfo
@@ -0,0 +1,2 @@
+MD5 (matplotlib-0.60.2.tar.gz) = e4d28311bd5457039a8ff7d26028c6d5
+SIZE (matplotlib-0.60.2.tar.gz) = 1533161
diff --git a/math/py-matplotlib/files/patch-setup.py b/math/py-matplotlib/files/patch-setup.py
new file mode 100644
index 000000000000..b594846178ec
--- /dev/null
+++ b/math/py-matplotlib/files/patch-setup.py
@@ -0,0 +1,11 @@
+--- setup.py.orig Wed Aug 4 11:22:03 2004
++++ setup.py Wed Aug 4 11:22:48 2004
+@@ -66,7 +66,7 @@
+ data.extend(glob.glob('images/*.ppm'))
+ data.append('.matplotlibrc')
+
+-data_files=[('share/matplotlib', data),]
++data_files=[('share/py-matplotlib', data),]
+
+ cxx = glob.glob('CXX/*.cxx')
+ cxx.extend(glob.glob('CXX/*.c'))
diff --git a/math/py-matplotlib/files/patch-setupext.py b/math/py-matplotlib/files/patch-setupext.py
new file mode 100644
index 000000000000..9da36040aac7
--- /dev/null
+++ b/math/py-matplotlib/files/patch-setupext.py
@@ -0,0 +1,19 @@
+--- setupext.py.orig Fri Jul 9 19:51:16 2004
++++ setupext.py Wed Aug 4 10:57:03 2004
+@@ -37,6 +37,7 @@
+ 'linux' : ['/usr/local', '/usr',],
+ 'darwin' : [os.getenv('MPLIB_BASE') or '/usr/local', '/usr', '/sw'],
+ 'freebsd4' : [os.getenv('MBLIB_BASE') or '/usr/local', '/usr'],
++ 'freebsd5' : [os.getenv('MBLIB_BASE') or '/usr/local', '/usr'],
+ 'sunos5' : [os.getenv('MPLIB_BASE') or '/usr/local',],
+ }
+
+@@ -220,7 +221,7 @@
+ else:
+ module.include_dirs.extend([o.tcl_inc, o.tk_inc])
+ module.library_dirs.extend([o.tcl_lib, o.tk_lib])
+- module.libraries.extend(['tk'+o.tkv, 'tcl'+o.tkv])
++ module.libraries.extend(['tk84', 'tcl84'])
+
+
+ def add_windowing_flags(module):
diff --git a/math/py-matplotlib/pkg-descr b/math/py-matplotlib/pkg-descr
new file mode 100644
index 000000000000..f639c0131b3d
--- /dev/null
+++ b/math/py-matplotlib/pkg-descr
@@ -0,0 +1,8 @@
+matplotlib is a python 2D plotting library which produces publication quality
+figures using in a variety of hardcopy formats (PNG, JPG, PS, SVG) and
+interactive GUI environments (WX, GTK, Tkinter) across platforms. matplotlib
+can be used in python scripts, interactively from the python shell (ala matlab
+or mathematica), in web application servers generating dynamic charts, or
+embedded in GTK, Tk or WX applications; see backends.
+
+WWW: http://matplotlib.sourceforge.net/