pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/graphics/py-matplotlib-tk Import py-matplotlib-tk vers...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/dae1a94c5821
branches:  trunk
changeset: 558827:dae1a94c5821
user:      he <he%pkgsrc.org@localhost>
date:      Thu May 14 13:54:13 2009 +0000

description:
Import py-matplotlib-tk version 0.98.0.

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.

This package contains the Tk driver for matplotlib.

Tutorial: http://matplotlib.sourceforge.net/tutorial.html

diffstat:

 graphics/py-matplotlib-tk/DESCR            |  12 +++++
 graphics/py-matplotlib-tk/Makefile         |  29 ++++++++++++
 graphics/py-matplotlib-tk/PLIST            |   2 +
 graphics/py-matplotlib-tk/distinfo         |   7 +++
 graphics/py-matplotlib-tk/patches/patch-aa |  49 +++++++++++++++++++++
 graphics/py-matplotlib-tk/patches/patch-ab |  68 ++++++++++++++++++++++++++++++
 6 files changed, 167 insertions(+), 0 deletions(-)

diffs (191 lines):

diff -r a8d733d5f8c1 -r dae1a94c5821 graphics/py-matplotlib-tk/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/py-matplotlib-tk/DESCR   Thu May 14 13:54:13 2009 +0000
@@ -0,0 +1,12 @@
+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.
+
+This package contains the Tk driver for matplotlib.
+
+Tutorial: http://matplotlib.sourceforge.net/tutorial.html
diff -r a8d733d5f8c1 -r dae1a94c5821 graphics/py-matplotlib-tk/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/py-matplotlib-tk/Makefile        Thu May 14 13:54:13 2009 +0000
@@ -0,0 +1,29 @@
+# $NetBSD: Makefile,v 1.1.1.1 2009/05/14 13:54:13 he Exp $
+#
+
+DISTNAME=              matplotlib-0.98.0
+PKGNAME=               ${PYPKGPREFIX}-matplotlib-tk-0.98.0
+CATEGORIES=            graphics python
+MASTER_SITES=          ${MASTER_SITE_SOURCEFORGE:=matplotlib/}
+
+MAINTAINER=            pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=              http://matplotlib.sourceforge.net/
+COMMENT=               Tk frontend for matplotlib
+
+PKG_DESTDIR_SUPPORT=   user-destdir
+
+USE_TOOLS+=            pkg-config
+PY_PATCHPLIST=         yes
+PYDISTUTILSPKG=                yes
+USE_LANGUAGES=         c c++
+
+PYTHON_VERSIONS_ACCEPTED=      25 24
+
+.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-numpy/buildlink3.mk"
+.include "../../x11/tk/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r a8d733d5f8c1 -r dae1a94c5821 graphics/py-matplotlib-tk/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/py-matplotlib-tk/PLIST   Thu May 14 13:54:13 2009 +0000
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2009/05/14 13:54:13 he Exp $
+${PYSITELIB}/matplotlib/backends/_tkagg.so
diff -r a8d733d5f8c1 -r dae1a94c5821 graphics/py-matplotlib-tk/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/py-matplotlib-tk/distinfo        Thu May 14 13:54:13 2009 +0000
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1.1.1 2009/05/14 13:54:13 he Exp $
+
+SHA1 (matplotlib-0.98.0.tar.gz) = ce19f2fc7b1d66329e904171b04a2334bcc8400f
+RMD160 (matplotlib-0.98.0.tar.gz) = 59d429bb63ebc0fb755bd0a72e890e95a7c5d65c
+Size (matplotlib-0.98.0.tar.gz) = 4219634 bytes
+SHA1 (patch-aa) = fbbc7b57943f8ce4252d154fe1be01e09838027c
+SHA1 (patch-ab) = a3ef38a41421ffd5b6ab0b24f91b848b2e67441c
diff -r a8d733d5f8c1 -r dae1a94c5821 graphics/py-matplotlib-tk/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/py-matplotlib-tk/patches/patch-aa        Thu May 14 13:54:13 2009 +0000
@@ -0,0 +1,49 @@
+$NetBSD: patch-aa,v 1.1.1.1 2009/05/14 13:54:13 he Exp $
+
+Only turn on building of the Tk part.
+
+--- setupext.py.orig   2008-05-30 10:47:10.000000000 +1200
++++ setupext.py
+@@ -103,17 +103,17 @@ numpy_inc_dirs = []
+ # matplotlib build options, which can be altered using setup.cfg
+ options = {'display_status': True,
+            'verbose': False,
+-           'provide_pytz': 'auto',
+-           'provide_dateutil': 'auto',
+-           'provide_configobj': 'auto',
+-           'provide_traits': 'auto',
+-           'build_agg': True,
+-           'build_gtk': 'auto',
+-           'build_gtkagg': 'auto',
+-           'build_tkagg': 'auto',
+-           'build_wxagg': 'auto',
+-           'build_image': True,
+-           'build_windowing': True,
++           'provide_pytz': False,
++           'provide_dateutil': False,
++           'provide_configobj': False,
++           'provide_traits': False,
++           'build_agg': False,
++           'build_gtk': False,
++           'build_gtkagg': False,
++           'build_tkagg': True,
++           'build_wxagg': False,
++           'build_image': False,
++           'build_windowing': False,
+            'backend': None,
+            'numerix': None}
+ 
+@@ -321,11 +321,8 @@ def check_for_libpng():
+     return True
+ 
+ def add_base_flags(module):
+-    incdirs = filter(os.path.exists,
+-                     [os.path.join(p, 'include') for p in basedir[sys.platform] ])
+-    libdirs = filter(os.path.exists,
+-                     [os.path.join(p, 'lib')     for p in basedir[sys.platform] ]+
+-                     [os.path.join(p, 'lib64')     for p in basedir[sys.platform] ] )
++    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('.')
diff -r a8d733d5f8c1 -r dae1a94c5821 graphics/py-matplotlib-tk/patches/patch-ab
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/py-matplotlib-tk/patches/patch-ab        Thu May 14 13:54:13 2009 +0000
@@ -0,0 +1,68 @@
+$NetBSD: patch-ab,v 1.1.1.1 2009/05/14 13:54:13 he Exp $
+
+Ensure we skip installation of the non-Tk stuff, installed
+by py-matplotlib itself.
+
+--- setup.py.orig      2008-05-30 10:47:09.000000000 +1200
++++ setup.py
+@@ -92,11 +92,11 @@ if not check_for_numpy():
+ if not check_for_freetype():
+     sys.exit(1)
+ 
+-build_ft2font(ext_modules, packages)
+-build_ttconv(ext_modules, packages)
+-build_contour(ext_modules, packages)
+-build_nxutils(ext_modules, packages)
+-build_path(ext_modules, packages)
++#build_ft2font(ext_modules, packages)
++#build_ttconv(ext_modules, packages)
++#build_contour(ext_modules, packages)
++#build_nxutils(ext_modules, packages)
++#build_path(ext_modules, packages)
+ 
+ print_raw("")
+ print_raw("OPTIONAL BACKEND DEPENDENCIES")
+@@ -133,13 +133,13 @@ if options['build_wxagg']:
+             print_message("WxAgg extension not required for wxPython >= 2.8")
+         rc['backend'] = 'WXAgg'
+ 
+-hasgtk = check_for_gtk()
++hasgtk = 1   # check_for_gtk()
+ if options['build_gtk']:
+     if hasgtk or (options['build_gtk'] is True):
+         build_gdk(ext_modules, packages)
+ if options['build_gtkagg']:
+     if hasgtk or (options['build_gtkagg'] is True):
+-        options['build_agg'] = 1
++        options['build_agg'] = 0
+         build_gtkagg(ext_modules, packages)
+         rc['backend'] = 'GTKAgg'
+ 
+@@ -197,9 +197,9 @@ check_for_pdftops()
+ # TODO: comment out for mpl release:
+ print_raw("")
+ print_raw("EXPERIMENTAL CONFIG PACKAGE DEPENDENCIES")
+-packages.append('matplotlib.config')
+-if check_provide_configobj(): py_modules.append('configobj')
+-if check_provide_traits(): build_traits(ext_modules, packages)
++#packages.append('matplotlib.config')
++#if check_provide_configobj(): py_modules.append('configobj')
++#if check_provide_traits(): build_traits(ext_modules, packages)
+ 
+ print_raw("")
+ print_raw("[Edit setup.cfg to suppress the above messages]")
+@@ -238,11 +238,11 @@ distrib = setup(name="matplotlib",
+       interfaces and hardcopy output formats.  There is a 'pylab' mode
+       which emulates matlab graphics
+       """,
+-      packages = packages,
++#      packages = packages,
+       platforms='any',
+-      py_modules = py_modules,
++#      py_modules = py_modules,
+       ext_modules = ext_modules,
+       package_dir = {'': 'lib'},
+-      package_data = package_data,
++#      package_data = package_data,
+       **additional_params
+       )



Home | Main Index | Thread Index | Old Index