summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordrochner <drochner@pkgsrc.org>2014-01-21 19:22:08 +0000
committerdrochner <drochner@pkgsrc.org>2014-01-21 19:22:08 +0000
commitd508f579f014a1de4147cad784c7c1748c956c00 (patch)
tree04c34959a03879da3e9926e67004e40530320930
parentf67d4e4c4d8fcb46af285d8090f92fdee749d938 (diff)
downloadpkgsrc-d508f579f014a1de4147cad784c7c1748c956c00.tar.gz
re-add py-matplotlib-tk -- it works for me
-rw-r--r--graphics/py-matplotlib-tk/DESCR10
-rw-r--r--graphics/py-matplotlib-tk/Makefile44
-rw-r--r--graphics/py-matplotlib-tk/PLIST2
-rw-r--r--graphics/py-matplotlib-tk/distinfo6
-rw-r--r--graphics/py-matplotlib-tk/patches/patch-ab13
5 files changed, 75 insertions, 0 deletions
diff --git a/graphics/py-matplotlib-tk/DESCR b/graphics/py-matplotlib-tk/DESCR
new file mode 100644
index 00000000000..bf04510a821
--- /dev/null
+++ b/graphics/py-matplotlib-tk/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-tk/Makefile b/graphics/py-matplotlib-tk/Makefile
new file mode 100644
index 00000000000..0842f0f9df1
--- /dev/null
+++ b/graphics/py-matplotlib-tk/Makefile
@@ -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
+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 --git a/graphics/py-matplotlib-tk/PLIST b/graphics/py-matplotlib-tk/PLIST
new file mode 100644
index 00000000000..3d8d0fd318b
--- /dev/null
+++ b/graphics/py-matplotlib-tk/PLIST
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.3 2014/01/21 19:22:08 drochner Exp $
+${PYSITELIB}/matplotlib/backends/_tkagg.so
diff --git a/graphics/py-matplotlib-tk/distinfo b/graphics/py-matplotlib-tk/distinfo
new file mode 100644
index 00000000000..039dd3d1016
--- /dev/null
+++ b/graphics/py-matplotlib-tk/distinfo
@@ -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 --git a/graphics/py-matplotlib-tk/patches/patch-ab b/graphics/py-matplotlib-tk/patches/patch-ab
new file mode 100644
index 00000000000..5533d5a7f4b
--- /dev/null
+++ b/graphics/py-matplotlib-tk/patches/patch-ab
@@ -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())