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 re-add py-matplotlib-tk -- i...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/28a88a6343a0
branches:  trunk
changeset: 629472:28a88a6343a0
user:      drochner <drochner%pkgsrc.org@localhost>
date:      Tue Jan 21 19:22:08 2014 +0000

description:
re-add py-matplotlib-tk -- it works for me

diffstat:

 graphics/py-matplotlib-tk/DESCR            |  10 ++++++
 graphics/py-matplotlib-tk/Makefile         |  44 ++++++++++++++++++++++++++++++
 graphics/py-matplotlib-tk/PLIST            |   2 +
 graphics/py-matplotlib-tk/distinfo         |   6 ++++
 graphics/py-matplotlib-tk/patches/patch-ab |  13 ++++++++
 5 files changed, 75 insertions(+), 0 deletions(-)

diffs (95 lines):

diff -r 7813ae99e973 -r 28a88a6343a0 graphics/py-matplotlib-tk/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/py-matplotlib-tk/DESCR   Tue Jan 21 19:22:08 2014 +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 7813ae99e973 -r 28a88a6343a0 graphics/py-matplotlib-tk/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/py-matplotlib-tk/Makefile        Tue Jan 21 19:22:08 2014 +0000
@@ -0,0 +1,44 @@
+# $NetBSD: Makefile,v 1.24 2014/01/21 19:22:08 drochner Exp $
+#
+
+DISTNAME=              matplotlib-1.3.1
+PKGNAME=               ${PYPKGPREFIX}-matplotlib-tk-1.3.1
+CATEGORIES=            graphics python
+MASTER_SITES=          https://github.com/downloads/matplotlib/matplotlib/
+FETCH_USING=           curl
+
+MAINTAINER=            pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=              http://matplotlib.sourceforge.net/
+COMMENT=               Tk frontend for matplotlib
+
+DEPENDS+=              ${PYPKGPREFIX}-Tk-[0-9]*:../../x11/py-Tk
+
+USE_TOOLS+=            pkg-config
+PY_PATCHPLIST=         yes
+PYDISTUTILSPKG=                yes
+USE_LANGUAGES=         c c++
+
+post-patch:
+       ( ${ECHO} "[directories]"; \
+       ${ECHO} "basedirlist=/usr"; \
+       ${ECHO} "[provide_packages]"; \
+       ${ECHO} "pytz = False"; \
+       ${ECHO} "dateutil = False"; \
+       ${ECHO} "[gui_support]"; \
+       ${ECHO} "gtk = False"; \
+       ${ECHO} "gtkagg = False"; \
+       ${ECHO} "tkagg = True"; \
+       ${ECHO} "wxagg = False"; \
+       ${ECHO} "macosx = False" ) > ${WRKSRC}/setup.cfg
+
+post-install:
+       ${RM} -r ${DESTDIR}/${PREFIX}/${PYSITELIB}/${EGG_NAME}-py${PYVERSSUFFIX}.egg-info
+
+.include "../../lang/python/egg.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 7813ae99e973 -r 28a88a6343a0 graphics/py-matplotlib-tk/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/py-matplotlib-tk/PLIST   Tue Jan 21 19:22:08 2014 +0000
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.3 2014/01/21 19:22:08 drochner Exp $
+${PYSITELIB}/matplotlib/backends/_tkagg.so
diff -r 7813ae99e973 -r 28a88a6343a0 graphics/py-matplotlib-tk/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/py-matplotlib-tk/distinfo        Tue Jan 21 19:22:08 2014 +0000
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.13 2014/01/21 19:22:08 drochner Exp $
+
+SHA1 (matplotlib-1.3.1.tar.gz) = 8578afc86424392591c0ee03f7613ffa9b6f68ee
+RMD160 (matplotlib-1.3.1.tar.gz) = 7c2647ae1d6aafdc1c32e47183239c7da0d91956
+Size (matplotlib-1.3.1.tar.gz) = 42163182 bytes
+SHA1 (patch-ab) = 26968f4ab2885cdc52eb5a6126ab28d7d2315e55
diff -r 7813ae99e973 -r 28a88a6343a0 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        Tue Jan 21 19:22:08 2014 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-ab,v 1.9 2014/01/21 19:22:08 drochner Exp $
+
+--- setup.py.orig      2013-10-10 12:42:48.000000000 +0000
++++ setup.py
+@@ -139,7 +139,7 @@ if __name__ == '__main__':
+ 
+     required_failed = []
+     good_packages = []
+-    for package in mpl_packages:
++    for package in [setupext.Numpy(),setupext.CXX(),setupext.LibAgg(),setupext.BackendTkAgg()]:
+         if isinstance(package, str):
+             print_raw('')
+             print_raw(package.upper())



Home | Main Index | Thread Index | Old Index