diff options
author | joerg <joerg@pkgsrc.org> | 2017-06-29 20:02:02 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2017-06-29 20:02:02 +0000 |
commit | 07d1c465696cbdb6239614209979580feabc5d7d (patch) | |
tree | 019c1c79e023be6034c5aa1babbb27f1a254cea2 /print | |
parent | f9509c565f9b406f8a1c9051cd423326d1465417 (diff) | |
download | pkgsrc-07d1c465696cbdb6239614209979580feabc5d7d.tar.gz |
Deal with API breakage in py-Pillow. Bump revision.
Diffstat (limited to 'print')
-rw-r--r-- | print/py-pisa/Makefile | 4 | ||||
-rw-r--r-- | print/py-pisa/distinfo | 3 | ||||
-rw-r--r-- | print/py-pisa/patches/patch-sx_pisa3_pisa__reportlab.py | 16 |
3 files changed, 20 insertions, 3 deletions
diff --git a/print/py-pisa/Makefile b/print/py-pisa/Makefile index 9701761bd2b..10aab2cdfd6 100644 --- a/print/py-pisa/Makefile +++ b/print/py-pisa/Makefile @@ -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 --git a/print/py-pisa/distinfo b/print/py-pisa/distinfo index dfd6c6631b1..acc80567e5b 100644 --- a/print/py-pisa/distinfo +++ b/print/py-pisa/distinfo @@ -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 --git a/print/py-pisa/patches/patch-sx_pisa3_pisa__reportlab.py b/print/py-pisa/patches/patch-sx_pisa3_pisa__reportlab.py new file mode 100644 index 00000000000..19b1c45a411 --- /dev/null +++ b/print/py-pisa/patches/patch-sx_pisa3_pisa__reportlab.py @@ -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): |