pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/print/py-PDF2 py-PDF2-1.26.0nb1: Preserve annoations w...
details: https://anonhg.NetBSD.org/pkgsrc/rev/a54b5409f08b
branches: trunk
changeset: 398760:a54b5409f08b
user: joerg <joerg%pkgsrc.org@localhost>
date: Mon Jul 29 20:40:19 2019 +0000
description:
py-PDF2-1.26.0nb1: Preserve annoations while merging pages
diffstat:
print/py-PDF2/Makefile | 3 ++-
print/py-PDF2/distinfo | 3 ++-
print/py-PDF2/patches/patch-PyPDF2_pdf.py | 13 +++++++++++++
3 files changed, 17 insertions(+), 2 deletions(-)
diffs (43 lines):
diff -r 1708031d462d -r a54b5409f08b print/py-PDF2/Makefile
--- a/print/py-PDF2/Makefile Mon Jul 29 20:39:39 2019 +0000
+++ b/print/py-PDF2/Makefile Mon Jul 29 20:40:19 2019 +0000
@@ -1,8 +1,9 @@
-# $NetBSD: Makefile,v 1.5 2016/09/02 14:29:55 mef Exp $
+# $NetBSD: Makefile,v 1.6 2019/07/29 20:40:19 joerg Exp $
VERSION= 1.26.0
DISTNAME= PyPDF2-${VERSION}
PKGNAME= ${PYPKGPREFIX}-${DISTNAME:S/Py//}
+PKGREVISION= 1
CATEGORIES= print python
MASTER_SITES= ${MASTER_SITE_GITHUB:=mstamy2/}
GITHUB_PROJECT= PyPDF2
diff -r 1708031d462d -r a54b5409f08b print/py-PDF2/distinfo
--- a/print/py-PDF2/distinfo Mon Jul 29 20:39:39 2019 +0000
+++ b/print/py-PDF2/distinfo Mon Jul 29 20:40:19 2019 +0000
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.5 2016/09/02 14:29:55 mef Exp $
+$NetBSD: distinfo,v 1.6 2019/07/29 20:40:19 joerg Exp $
SHA1 (PyPDF2-1.26.0.tar.gz) = 29859e086b6e78459feb660ba24f3b22773e11c1
RMD160 (PyPDF2-1.26.0.tar.gz) = e372225e2cb72a0247c28dba18d8b99f73e0d826
SHA512 (PyPDF2-1.26.0.tar.gz) = fe29c1e24be765c43fed47185dc69cfe959d36c693f6ac9fed9a33c48035c651eed8f2f6eb674697f923b769fcfdd275624b128ab99992477bfc0e854b90fa5c
Size (PyPDF2-1.26.0.tar.gz) = 199539 bytes
+SHA1 (patch-PyPDF2_pdf.py) = e0f80e59de5163ff82c2fbda08560767065ea958
diff -r 1708031d462d -r a54b5409f08b print/py-PDF2/patches/patch-PyPDF2_pdf.py
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/print/py-PDF2/patches/patch-PyPDF2_pdf.py Mon Jul 29 20:40:19 2019 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-PyPDF2_pdf.py,v 1.1 2019/07/29 20:40:19 joerg Exp $
+
+--- PyPDF2/pdf.py.orig 2019-07-29 19:44:01.901056460 +0000
++++ PyPDF2/pdf.py
+@@ -2256,7 +2256,7 @@ class PageObject(DictionaryObject):
+ for ref in annots:
+ newAnnots.append(ref)
+
+- for res in "/ExtGState", "/Font", "/XObject", "/ColorSpace", "/Pattern", "/Shading", "/Properties":
++ for res in "/ExtGState", "/Font", "/XObject", "/ColorSpace", "/Pattern", "/Shading", "/Properties", "/Annots":
+ new, newrename = PageObject._mergeResources(originalResources, page2Resources, res)
+ if new:
+ newResources[NameObject(res)] = new
Home |
Main Index |
Thread Index |
Old Index