pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/graphics/py-matplotlib-gtk2 add the gtk frontend for p...
details: https://anonhg.NetBSD.org/pkgsrc/rev/aef2d831d241
branches: trunk
changeset: 510914:aef2d831d241
user: drochner <drochner%pkgsrc.org@localhost>
date: Thu Apr 06 16:45:34 2006 +0000
description:
add the gtk frontend for py-matplotlib-0.8.2 as separate pkg
diffstat:
graphics/py-matplotlib-gtk2/DESCR | 10 ++
graphics/py-matplotlib-gtk2/Makefile | 25 +++++++
graphics/py-matplotlib-gtk2/PLIST | 4 +
graphics/py-matplotlib-gtk2/distinfo | 7 ++
graphics/py-matplotlib-gtk2/patches/patch-aa | 17 ++++
graphics/py-matplotlib-gtk2/patches/patch-ab | 98 ++++++++++++++++++++++++++++
6 files changed, 161 insertions(+), 0 deletions(-)
diffs (185 lines):
diff -r 3efd2fdf1d12 -r aef2d831d241 graphics/py-matplotlib-gtk2/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/py-matplotlib-gtk2/DESCR Thu Apr 06 16:45:34 2006 +0000
@@ -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 -r 3efd2fdf1d12 -r aef2d831d241 graphics/py-matplotlib-gtk2/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/py-matplotlib-gtk2/Makefile Thu Apr 06 16:45:34 2006 +0000
@@ -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@localhost
+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 -r 3efd2fdf1d12 -r aef2d831d241 graphics/py-matplotlib-gtk2/PLIST
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/py-matplotlib-gtk2/PLIST Thu Apr 06 16:45:34 2006 +0000
@@ -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 -r 3efd2fdf1d12 -r aef2d831d241 graphics/py-matplotlib-gtk2/distinfo
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/py-matplotlib-gtk2/distinfo Thu Apr 06 16:45:34 2006 +0000
@@ -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 -r 3efd2fdf1d12 -r aef2d831d241 graphics/py-matplotlib-gtk2/patches/patch-aa
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/py-matplotlib-gtk2/patches/patch-aa Thu Apr 06 16:45:34 2006 +0000
@@ -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 -r 3efd2fdf1d12 -r aef2d831d241 graphics/py-matplotlib-gtk2/patches/patch-ab
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/py-matplotlib-gtk2/patches/patch-ab Thu Apr 06 16:45:34 2006 +0000
@@ -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
Home |
Main Index |
Thread Index |
Old Index