summaryrefslogtreecommitdiff
path: root/graphics/py-pycha
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2020-03-11 20:17:12 +0000
committerwiz <wiz@pkgsrc.org>2020-03-11 20:17:12 +0000
commit2f9493efc3ad504e7ed9b4123f9125d053c2525e (patch)
treed834d8223fdb08c6a72e2c699ae3ebab7497ce85 /graphics/py-pycha
parent5dd8d78158667688a332a73e7f96497f11a93053 (diff)
downloadpkgsrc-2f9493efc3ad504e7ed9b4123f9125d053c2525e.tar.gz
py-pycha: update to 0.8.1.
0.8.1 (2019-11-17) --------------------- - Forgot to update Changelog for 0.8.0 0.8.0 (2019-11-17) --------------------- - Add support for Python 3 by encukou - Add support for Tox, Pyflakes, Coverage and Buildbucket pipelines - Remove support for Buildout
Diffstat (limited to 'graphics/py-pycha')
-rw-r--r--graphics/py-pycha/ALTERNATIVES1
-rw-r--r--graphics/py-pycha/Makefile12
-rw-r--r--graphics/py-pycha/PLIST20
-rw-r--r--graphics/py-pycha/distinfo11
-rw-r--r--graphics/py-pycha/patches/patch-chavier_gui.py37
5 files changed, 62 insertions, 19 deletions
diff --git a/graphics/py-pycha/ALTERNATIVES b/graphics/py-pycha/ALTERNATIVES
new file mode 100644
index 00000000000..e787d268399
--- /dev/null
+++ b/graphics/py-pycha/ALTERNATIVES
@@ -0,0 +1 @@
+bin/chavier @PREFIX@/bin/chavier-@PYVERSSUFFIX@
diff --git a/graphics/py-pycha/Makefile b/graphics/py-pycha/Makefile
index 965643ea0ae..20a35a8ae22 100644
--- a/graphics/py-pycha/Makefile
+++ b/graphics/py-pycha/Makefile
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.19 2019/11/02 22:38:03 rillig Exp $
+# $NetBSD: Makefile,v 1.20 2020/03/11 20:17:12 wiz Exp $
-DISTNAME= pycha-0.7.0
+DISTNAME= pycha-0.8.1
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
CATEGORIES= graphics python
MASTER_SITES= ${MASTER_SITE_PYPI:=p/pycha/}
@@ -10,13 +10,13 @@ HOMEPAGE= https://bitbucket.org/lgs/pycha/
COMMENT= Library for making charts with Python
LICENSE= gnu-lgpl-v3
-DEPENDS+= ${PYPKGPREFIX}-gtk2-[0-9]*:../../x11/py-gtk2
-DEPENDS+= ${PYPKGPREFIX}-cairo-[0-9]*:../../graphics/py-cairo
+DEPENDS+= ${PYPKGPREFIX}-cairocffi-[0-9]*:../../graphics/py-cairocffi
+DEPENDS+= ${PYPKGPREFIX}-six-[0-9]*:../../lang/py-six
USE_LANGUAGES= #none
-PYTHON_SELF_CONFLICT= yes
-PYTHON_VERSIONS_ACCEPTED= 27 # py-gtk2
+post-install:
+ ${MV} ${DESTDIR}${PREFIX}/bin/chavier ${DESTDIR}${PREFIX}/bin/chavier-${PYVERSSUFFIX} || ${TRUE}
.include "../../lang/python/egg.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/graphics/py-pycha/PLIST b/graphics/py-pycha/PLIST
index 70c205327a3..5a5a8e12744 100644
--- a/graphics/py-pycha/PLIST
+++ b/graphics/py-pycha/PLIST
@@ -1,5 +1,12 @@
-@comment $NetBSD: PLIST,v 1.2 2014/06/25 07:35:11 richard Exp $
-bin/chavier
+@comment $NetBSD: PLIST,v 1.3 2020/03/11 20:17:12 wiz Exp $
+bin/chavier-${PYVERSSUFFIX}
+${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
+${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
+${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
+${PYSITELIB}/${EGG_INFODIR}/entry_points.txt
+${PYSITELIB}/${EGG_INFODIR}/requires.txt
+${PYSITELIB}/${EGG_INFODIR}/top_level.txt
+${PYSITELIB}/${EGG_INFODIR}/zip-safe
${PYSITELIB}/chavier/__init__.py
${PYSITELIB}/chavier/__init__.pyc
${PYSITELIB}/chavier/__init__.pyo
@@ -12,12 +19,6 @@ ${PYSITELIB}/chavier/dialogs.pyo
${PYSITELIB}/chavier/gui.py
${PYSITELIB}/chavier/gui.pyc
${PYSITELIB}/chavier/gui.pyo
-${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
-${PYSITELIB}/${EGG_INFODIR}/entry_points.txt
-${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
-${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
-${PYSITELIB}/${EGG_INFODIR}/top_level.txt
-${PYSITELIB}/${EGG_INFODIR}/zip-safe
${PYSITELIB}/pycha/__init__.py
${PYSITELIB}/pycha/__init__.pyc
${PYSITELIB}/pycha/__init__.pyo
@@ -30,6 +31,9 @@ ${PYSITELIB}/pycha/chart.pyo
${PYSITELIB}/pycha/color.py
${PYSITELIB}/pycha/color.pyc
${PYSITELIB}/pycha/color.pyo
+${PYSITELIB}/pycha/compat.py
+${PYSITELIB}/pycha/compat.pyc
+${PYSITELIB}/pycha/compat.pyo
${PYSITELIB}/pycha/line.py
${PYSITELIB}/pycha/line.pyc
${PYSITELIB}/pycha/line.pyo
diff --git a/graphics/py-pycha/distinfo b/graphics/py-pycha/distinfo
index 24115064401..9560f4b98bf 100644
--- a/graphics/py-pycha/distinfo
+++ b/graphics/py-pycha/distinfo
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.4 2015/11/03 21:34:17 agc Exp $
+$NetBSD: distinfo,v 1.5 2020/03/11 20:17:12 wiz Exp $
-SHA1 (pycha-0.7.0.tar.gz) = a03b5d2a8ac35e21d8db3d3c2135e1b3245757ef
-RMD160 (pycha-0.7.0.tar.gz) = fb79e48bfcc8871f6b527f9a11df0a2ad860f481
-SHA512 (pycha-0.7.0.tar.gz) = 98b53651b7c4a8390cded41eed87113635c8f81ec8ec34455ba530ca69bac3b7140273111f13eba1080510b459ec546571813081ac2ba215fc924a3c1069c8f6
-Size (pycha-0.7.0.tar.gz) = 41570 bytes
+SHA1 (pycha-0.8.1.tar.gz) = 1126f3515469444b52d7b70b184412fd20e3a11c
+RMD160 (pycha-0.8.1.tar.gz) = 99e3883f6529c029ef37267fcd3f2fe5c4e85c8c
+SHA512 (pycha-0.8.1.tar.gz) = d4d173004c9c0ac7db73631c6ac380c6fdef54a3d245dde9ebc32c9fa6f3cd27b486d10e725ee45598605324b63809687ba41de5cb4fbe591bc5cb09241f6be5
+Size (pycha-0.8.1.tar.gz) = 43399 bytes
SHA1 (patch-chavier_app.py) = 11f3e5d310772fc8bf5c8eba48a5e9b9acdbcc1f
+SHA1 (patch-chavier_gui.py) = 838bee4214c8940c39e59efffce5d196a89ce3a8
diff --git a/graphics/py-pycha/patches/patch-chavier_gui.py b/graphics/py-pycha/patches/patch-chavier_gui.py
new file mode 100644
index 00000000000..78621a8e862
--- /dev/null
+++ b/graphics/py-pycha/patches/patch-chavier_gui.py
@@ -0,0 +1,37 @@
+$NetBSD: patch-chavier_gui.py,v 1.1 2020/03/11 20:17:12 wiz Exp $
+
+Convert to python3 syntax.
+
+--- chavier/gui.py.orig 2011-08-08 19:23:18.000000000 +0000
++++ chavier/gui.py
+@@ -523,18 +523,18 @@ class GUI(object):
+
+ alloc = self.drawing_area.get_allocation()
+
+- print 'CHART STATE'
+- print '-' * 70
+- print 'surface: %d x %d' % (alloc.width, alloc.height)
+- print 'area :', self.chart.area
+- print
+- print 'minxval:', self.chart.minxval
+- print 'maxxval:', self.chart.maxxval
+- print 'xrange :', self.chart.xrange
+- print
+- print 'minyval:', self.chart.minyval
+- print 'maxyval:', self.chart.maxyval
+- print 'yrange :', self.chart.yrange
++ print('CHART STATE')
++ print('-' * 70)
++ print('surface: %d x %d' % (alloc.width, alloc.height))
++ print('area :', self.chart.area)
++ prin()
++ print('minxval:', self.chart.minxval)
++ print('maxxval:', self.chart.maxxval)
++ print('xrange :', self.chart.xrange)
++ print()
++ print('minyval:', self.chart.minyval)
++ print('maxyval:', self.chart.maxyval)
++ print('yrange :', self.chart.yrange)
+
+ def about(self, action=None):
+ dialog = AboutDialog(self.main_window)