diff options
author | ijliao <ijliao@FreeBSD.org> | 2004-08-04 11:33:57 +0800 |
---|---|---|
committer | ijliao <ijliao@FreeBSD.org> | 2004-08-04 11:33:57 +0800 |
commit | a14fd28fc3fca1b1ec9cedc8ecc8cdd1d41b55d5 (patch) | |
tree | dbeeeecea20b6849dca7797a3b2e8547af8d456e /math | |
parent | 58d0eb6e7f1a5d54af82280f381fd20077a91540 (diff) | |
download | freebsd-ports-gnome-a14fd28fc3fca1b1ec9cedc8ecc8cdd1d41b55d5.tar.gz freebsd-ports-gnome-a14fd28fc3fca1b1ec9cedc8ecc8cdd1d41b55d5.tar.zst freebsd-ports-gnome-a14fd28fc3fca1b1ec9cedc8ecc8cdd1d41b55d5.zip |
re-add py-matplotlib 0.60.2
A plotting library uses a syntax familiar to matlab users
Diffstat (limited to 'math')
-rw-r--r-- | math/Makefile | 1 | ||||
-rw-r--r-- | math/py-matplotlib/Makefile | 53 | ||||
-rw-r--r-- | math/py-matplotlib/distinfo | 2 | ||||
-rw-r--r-- | math/py-matplotlib/files/patch-setup.py | 11 | ||||
-rw-r--r-- | math/py-matplotlib/files/patch-setupext.py | 19 | ||||
-rw-r--r-- | math/py-matplotlib/pkg-descr | 8 |
6 files changed, 94 insertions, 0 deletions
diff --git a/math/Makefile b/math/Makefile index 977c35cbe2b1..589a77c0d9a1 100644 --- a/math/Makefile +++ b/math/Makefile @@ -174,6 +174,7 @@ SUBDIR += py-gato SUBDIR += py-gnuplot SUBDIR += py-gsl + SUBDIR += py-matplotlib SUBDIR += py-mpz SUBDIR += py-numarray SUBDIR += py-numeric 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/ |