summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordrochner <drochner>2006-04-06 16:45:34 +0000
committerdrochner <drochner>2006-04-06 16:45:34 +0000
commitde570c88c1eabd0586eeb649a591944480d9fc2a (patch)
treeae944f597dc0fe499eba09b3a5d328e7a118e85a
parent21fb10e9290fb68b22712dd00e850a61b19ecde0 (diff)
downloadpkgsrc-de570c88c1eabd0586eeb649a591944480d9fc2a.tar.gz
add the gtk frontend for py-matplotlib-0.8.2 as separate pkg
-rw-r--r--graphics/py-matplotlib-gtk2/DESCR10
-rw-r--r--graphics/py-matplotlib-gtk2/Makefile25
-rw-r--r--graphics/py-matplotlib-gtk2/PLIST4
-rw-r--r--graphics/py-matplotlib-gtk2/distinfo7
-rw-r--r--graphics/py-matplotlib-gtk2/patches/patch-aa17
-rw-r--r--graphics/py-matplotlib-gtk2/patches/patch-ab98
6 files changed, 161 insertions, 0 deletions
diff --git a/graphics/py-matplotlib-gtk2/DESCR b/graphics/py-matplotlib-gtk2/DESCR
new file mode 100644
index 00000000000..bf04510a821
--- /dev/null
+++ b/graphics/py-matplotlib-gtk2/DESCR
@@ -0,0 +1,10 @@
+matplotlib is a pure python plotting library designed to bring
+publication quality plotting to python with a syntax familiar to
+matlab users. A lot progress towards this goal has been made since
+the first release of matplotlib, the library does produce high quality
+2D plots. All of the plotting commands can be accessed either via a
+functional interface familiar to matlab users or an object oriented
+interface familiar to python users, and several high resolution output
+formats are supported.
+
+Tutorial: http://matplotlib.sourceforge.net/tutorial.html
diff --git a/graphics/py-matplotlib-gtk2/Makefile b/graphics/py-matplotlib-gtk2/Makefile
new file mode 100644
index 00000000000..89d9a1f3e47
--- /dev/null
+++ b/graphics/py-matplotlib-gtk2/Makefile
@@ -0,0 +1,25 @@
+# $NetBSD: Makefile,v 1.1.1.1 2006/04/06 16:45:34 drochner Exp $
+#
+
+DISTNAME= matplotlib-0.87.2
+PKGNAME= ${PYPKGPREFIX}-matplotlib-gtk-0.87.2
+CATEGORIES= graphics python
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=matplotlib/}
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= http://matplotlib.sourceforge.net/
+COMMENT= GTK frontend for matplotlib
+
+USE_TOOLS+= pkg-config
+PY_PATCHPLIST= yes
+PYDISTUTILSPKG= yes
+
+.include "../../lang/python/extension.mk"
+.include "../../graphics/py-matplotlib/buildlink3.mk"
+.include "../../devel/zlib/buildlink3.mk"
+.include "../../graphics/freetype2/buildlink3.mk"
+.include "../../graphics/png/buildlink3.mk"
+.include "../../math/py-Numeric/buildlink3.mk"
+.include "../../math/py-numarray/buildlink3.mk"
+.include "../../x11/py-gtk2/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/graphics/py-matplotlib-gtk2/PLIST b/graphics/py-matplotlib-gtk2/PLIST
new file mode 100644
index 00000000000..d424fabc552
--- /dev/null
+++ b/graphics/py-matplotlib-gtk2/PLIST
@@ -0,0 +1,4 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2006/04/06 16:45:34 drochner Exp $
+${PYSITELIB}/matplotlib/backends/_gtkagg.so
+${PYSITELIB}/matplotlib/backends/_na_backend_gdk.so
+${PYSITELIB}/matplotlib/backends/_nc_backend_gdk.so
diff --git a/graphics/py-matplotlib-gtk2/distinfo b/graphics/py-matplotlib-gtk2/distinfo
new file mode 100644
index 00000000000..c1d3312d6cb
--- /dev/null
+++ b/graphics/py-matplotlib-gtk2/distinfo
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1.1.1 2006/04/06 16:45:34 drochner Exp $
+
+SHA1 (matplotlib-0.87.2.tar.gz) = 9d969da7cf8ecb545f8c3a9030645292f32e1cbb
+RMD160 (matplotlib-0.87.2.tar.gz) = 0c913a357e8cec819a5a3f0812ef7854f329fb5c
+Size (matplotlib-0.87.2.tar.gz) = 2655790 bytes
+SHA1 (patch-aa) = 905b7657ac229a968c50faeee774408fd764ebfc
+SHA1 (patch-ab) = 1b9632f54db3e9a04546b47814f6805a835830bd
diff --git a/graphics/py-matplotlib-gtk2/patches/patch-aa b/graphics/py-matplotlib-gtk2/patches/patch-aa
new file mode 100644
index 00000000000..fbc35662f82
--- /dev/null
+++ b/graphics/py-matplotlib-gtk2/patches/patch-aa
@@ -0,0 +1,17 @@
+$NetBSD: patch-aa,v 1.1.1.1 2006/04/06 16:45:34 drochner Exp $
+
+--- setupext.py.orig 2006-01-09 14:20:44.000000000 +0100
++++ setupext.py
+@@ -99,10 +99,8 @@ def temp_copy(_from, _to):
+ globals()["_cleanup_"+_to] = CleanUpFile(_to)
+
+ def add_base_flags(module):
+- incdirs = [os.path.join(p, 'include') for p in basedir[sys.platform]
+- if os.path.exists(p)]
+- libdirs = [os.path.join(p, 'lib') for p in basedir[sys.platform]
+- if os.path.exists(p)]
++ incdirs = os.path.join(os.environ['LOCALBASE'], 'include')
++ libdirs = os.path.join(os.environ['LOCALBASE'], 'lib')
+ module.include_dirs.extend(incdirs)
+ module.include_dirs.append('.')
+ module.library_dirs.extend(libdirs)
diff --git a/graphics/py-matplotlib-gtk2/patches/patch-ab b/graphics/py-matplotlib-gtk2/patches/patch-ab
new file mode 100644
index 00000000000..45b12a06a56
--- /dev/null
+++ b/graphics/py-matplotlib-gtk2/patches/patch-ab
@@ -0,0 +1,98 @@
+$NetBSD: patch-ab,v 1.1.1.1 2006/04/06 16:45:34 drochner Exp $
+
+--- setup.py.orig 2006-03-12 01:11:40.000000000 +0100
++++ setup.py
+@@ -21,23 +21,23 @@ rc = dict({'backend':'PS', 'numerix':'Nu
+ # numarray. You can build the image module with either Numeric or
+ # numarray or both. By default, matplotlib will build support for
+ # whatever array packages you have installed.
+-BUILD_IMAGE = 1
++BUILD_IMAGE = 0
+
+ # Build the antigrain geometry toolkit. Agg makes heavy use of
+ # templates, so it probably requires a fairly recent compiler to build
+ # it. It makes very nice antialiased output and also supports alpha
+ # blending
+-BUILD_AGG = 1
+-BUILD_GTKAGG = 'auto'
+-BUILD_GTK = 'auto'
++BUILD_AGG = 0
++BUILD_GTKAGG = 1
++BUILD_GTK = 1
+
+ # build TK GUI with Agg renderer ; requires Tkinter Python extension
+ # and Tk includes
+ # Use False or 0 if you don't want to build
+-BUILD_TKAGG = 'auto'
++BUILD_TKAGG = 0
+
+ # build wxPython GUI with Agg renderer ; requires wxPython package
+-BUILD_WXAGG = 'auto'
++BUILD_WXAGG = 0
+
+
+ # build a small extension to manage the focus on win32 platforms.
+@@ -137,7 +137,7 @@ rc['numerix'] = NUMERIX[-1]
+ ext_modules = []
+
+ # these are not optional
+-BUILD_FT2FONT = 1
++BUILD_FT2FONT = 0
+ BUILD_CONTOUR = 1
+
+ # jdh
+@@ -164,7 +164,7 @@ try: import datetime
+ except ImportError: havedate = False
+ else: havedate = True
+
+-if havedate: # dates require python23 datetime
++if 0: # dates require python23 datetime
+ # only install pytz and dateutil if the user hasn't got them
+ def add_pytz():
+ packages.append('pytz')
+@@ -190,9 +190,9 @@ if havedate: # dates require python23 da
+ except ImportError:
+ add_pytz()
+
+-build_swigagg(ext_modules, packages)
+-build_transforms(ext_modules, packages, NUMERIX)
+-build_enthought(ext_modules, packages)
++#build_swigagg(ext_modules, packages)
++#build_transforms(ext_modules, packages, NUMERIX)
++#build_enthought(ext_modules, packages)
+
+ if BUILD_GTK:
+ try:
+@@ -238,7 +238,7 @@ if BUILD_GTKAGG:
+ print 'pygtk present but import failed'
+
+ if BUILD_GTKAGG:
+- BUILD_AGG = 1
++ BUILD_AGG = 0
+ build_gtkagg(ext_modules, packages, NUMERIX)
+ rc['backend'] = 'GTKAgg'
+
+@@ -257,7 +257,7 @@ if BUILD_WINDOWING and sys.platform=='wi
+ if BUILD_IMAGE:
+ build_image(ext_modules, packages, NUMERIX)
+
+-if 1: # I don't think we need to make these optional
++if 0: # I don't think we need to make these optional
+ build_contour(ext_modules, packages, NUMERIX)
+
+ for mod in ext_modules:
+@@ -290,11 +290,11 @@ distrib = setup(name="matplotlib",
+ object oriented, there is a functional interface "pylab"
+ for people coming from Matlab.
+ """,
+- packages = packages,
++# packages = packages,
+ platforms='any',
+- py_modules = ['pylab'],
++# py_modules = ['pylab'],
+ ext_modules = ext_modules,
+- data_files = data_files,
++# data_files = data_files,
+ package_dir = {'': 'lib'},
+ cmdclass = {'install_data':smart_install_data},
+ **additional_params