diff options
author | ijliao <ijliao@FreeBSD.org> | 2004-08-04 11:32:14 +0800 |
---|---|---|
committer | ijliao <ijliao@FreeBSD.org> | 2004-08-04 11:32:14 +0800 |
commit | e15c694e4a2a369f72bba66fcca54128918bd47b (patch) | |
tree | 39a5660f9bf13881a5a019f3695f15ec33c3300f /graphics | |
parent | 311a8d2ec81b4e73331ca12acb1292c914b6a980 (diff) | |
download | freebsd-ports-gnome-e15c694e4a2a369f72bba66fcca54128918bd47b.tar.gz freebsd-ports-gnome-e15c694e4a2a369f72bba66fcca54128918bd47b.tar.zst freebsd-ports-gnome-e15c694e4a2a369f72bba66fcca54128918bd47b.zip |
add py-matplotlib 0.60.2
A plotting library uses a syntax familiar to matlab users
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/Makefile | 1 | ||||
-rw-r--r-- | graphics/py-matplotlib/Makefile | 53 | ||||
-rw-r--r-- | graphics/py-matplotlib/distinfo | 2 | ||||
-rw-r--r-- | graphics/py-matplotlib/files/patch-setup.py | 11 | ||||
-rw-r--r-- | graphics/py-matplotlib/files/patch-setupext.py | 19 | ||||
-rw-r--r-- | graphics/py-matplotlib/pkg-descr | 8 |
6 files changed, 94 insertions, 0 deletions
diff --git a/graphics/Makefile b/graphics/Makefile index a804b44ebd69..ce25df1a5378 100644 --- a/graphics/Makefile +++ b/graphics/Makefile @@ -365,6 +365,7 @@ SUBDIR += py-imaging SUBDIR += py-imaging-handbook SUBDIR += py-magick + SUBDIR += py-matplotlib SUBDIR += py-ming SUBDIR += py-opengl SUBDIR += py-paint diff --git a/graphics/py-matplotlib/Makefile b/graphics/py-matplotlib/Makefile new file mode 100644 index 000000000000..9887931906f0 --- /dev/null +++ b/graphics/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= graphics 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/graphics/py-matplotlib/distinfo b/graphics/py-matplotlib/distinfo new file mode 100644 index 000000000000..ce5e55ab3c32 --- /dev/null +++ b/graphics/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/graphics/py-matplotlib/files/patch-setup.py b/graphics/py-matplotlib/files/patch-setup.py new file mode 100644 index 000000000000..b594846178ec --- /dev/null +++ b/graphics/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/graphics/py-matplotlib/files/patch-setupext.py b/graphics/py-matplotlib/files/patch-setupext.py new file mode 100644 index 000000000000..9da36040aac7 --- /dev/null +++ b/graphics/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/graphics/py-matplotlib/pkg-descr b/graphics/py-matplotlib/pkg-descr new file mode 100644 index 000000000000..f639c0131b3d --- /dev/null +++ b/graphics/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/ |