pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/print/py-pisa Deal with API breakage in py-Pillow. Bum...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/02b2ca3dfee3
branches:  trunk
changeset: 364575:02b2ca3dfee3
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Thu Jun 29 20:02:02 2017 +0000

description:
Deal with API breakage in py-Pillow. Bump revision.

diffstat:

 print/py-pisa/Makefile                                  |   4 ++--
 print/py-pisa/distinfo                                  |   3 ++-
 print/py-pisa/patches/patch-sx_pisa3_pisa__reportlab.py |  16 ++++++++++++++++
 3 files changed, 20 insertions(+), 3 deletions(-)

diffs (48 lines):

diff -r bd541a7be3c7 -r 02b2ca3dfee3 print/py-pisa/Makefile
--- a/print/py-pisa/Makefile    Thu Jun 29 19:54:40 2017 +0000
+++ b/print/py-pisa/Makefile    Thu Jun 29 20:02:02 2017 +0000
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.17 2017/01/01 14:43:54 wiz Exp $
+# $NetBSD: Makefile,v 1.18 2017/06/29 20:02:02 joerg Exp $
 
 DISTNAME=      pisa-3.0.33
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
-PKGREVISION=   1
+PKGREVISION=   2
 CATEGORIES=    textproc print www python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=p/pisa/}
 
diff -r bd541a7be3c7 -r 02b2ca3dfee3 print/py-pisa/distinfo
--- a/print/py-pisa/distinfo    Thu Jun 29 19:54:40 2017 +0000
+++ b/print/py-pisa/distinfo    Thu Jun 29 20:02:02 2017 +0000
@@ -1,8 +1,9 @@
-$NetBSD: distinfo,v 1.8 2016/11/11 12:47:52 joerg Exp $
+$NetBSD: distinfo,v 1.9 2017/06/29 20:02:02 joerg Exp $
 
 SHA1 (pisa-3.0.33.tar.gz) = 3d7e644b96b7c8f98bfd5823a163c3badd662209
 RMD160 (pisa-3.0.33.tar.gz) = 1479865d1f0b14f4a37c74fc8aae7e72e9d0efac
 SHA512 (pisa-3.0.33.tar.gz) = 5d11d717734ca30876697ce25c77f381a560f4b266b2dbd9f2445ac9b39e2750cc3ff31603d9a1cba6ed51a047fca38ac95a2a4dddf88b238aa5c0d6f810a975
 Size (pisa-3.0.33.tar.gz) = 4500555 bytes
 SHA1 (patch-aa) = 39354cac1592787d43622c04ef776f13b39450ca
+SHA1 (patch-sx_pisa3_pisa__reportlab.py) = 0eb4a042b151d94ee8d3d12fc00b28fee4b31e48
 SHA1 (patch-sx_pisa3_pisa__util.py) = 130f9ac339239b71fc6a4920c0cadcccdbc1a913
diff -r bd541a7be3c7 -r 02b2ca3dfee3 print/py-pisa/patches/patch-sx_pisa3_pisa__reportlab.py
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/print/py-pisa/patches/patch-sx_pisa3_pisa__reportlab.py   Thu Jun 29 20:02:02 2017 +0000
@@ -0,0 +1,16 @@
+$NetBSD: patch-sx_pisa3_pisa__reportlab.py,v 1.1 2017/06/29 20:02:02 joerg Exp $
+
+--- sx/pisa3/pisa_reportlab.py.orig    2017-06-29 13:03:23.461320659 +0000
++++ sx/pisa3/pisa_reportlab.py
+@@ -327,7 +327,10 @@ class PmlImageReader(object):
+                 elif mode not in ('L', 'RGB', 'CMYK'):
+                     im = im.convert('RGB')
+                     self.mode = 'RGB'
+-                self._data = im.tostring()        
++                if hasattr(im, "tobytes"):
++                    self._data = im.tobytes()
++                else:
++                    self._data = im.tostring()
+         return self._data
+ 
+     def getImageData(self):



Home | Main Index | Thread Index | Old Index