From 24366f000f2a15610f4ed49736f6c5a573782825 Mon Sep 17 00:00:00 2001 From: Stefan Schweizer Date: Mon, 5 Jun 2006 22:16:06 +0000 Subject: [PATCH] Add user_pw only support, thanks to Georg Sauthoff in bug 127891 and remove old ebuilds Package-Manager: portage-2.1_rc4-r2 --- app-text/pdftk/ChangeLog | 8 +++++++- app-text/pdftk/files/pdftk-1.12-user-pw.patch | 12 ++++++++++++ app-text/pdftk/pdftk-1.12.ebuild | 5 +++-- 3 files changed, 22 insertions(+), 3 deletions(-) create mode 100644 app-text/pdftk/files/pdftk-1.12-user-pw.patch diff --git a/app-text/pdftk/ChangeLog b/app-text/pdftk/ChangeLog index 2430fe128dea..36837e0b1c2f 100644 --- a/app-text/pdftk/ChangeLog +++ b/app-text/pdftk/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for app-text/pdftk # Copyright 2000-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-text/pdftk/ChangeLog,v 1.17 2006/03/19 23:11:42 ehmsen Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-text/pdftk/ChangeLog,v 1.18 2006/06/05 22:16:06 genstef Exp $ + + 05 Jun 2006; Stefan Schweizer + +files/pdftk-1.12-user-pw.patch, -pdftk-0.94.1.ebuild, -pdftk-1.00.ebuild, + pdftk-1.12.ebuild: + Add user_pw only support, thanks to Georg Sauthoff in + bug 127891 and remove old ebuilds 19 Mar 2006; Martin Ehmsen +files/pdftk-1.12-gcc-4-compilation.patch, pdftk-1.12.ebuild: diff --git a/app-text/pdftk/files/pdftk-1.12-user-pw.patch b/app-text/pdftk/files/pdftk-1.12-user-pw.patch new file mode 100644 index 000000000000..58fee35c4fa2 --- /dev/null +++ b/app-text/pdftk/files/pdftk-1.12-user-pw.patch @@ -0,0 +1,12 @@ +diff -ur -x '*.o' -x '*.a' -x '*.class' -x tags -x '*.h' -x pdftk pdftk-1.12.orig/java_libs/com/lowagie/text/pdf/PdfReader.java pdftk-1.12/java_libs/com/lowagie/text/pdf/PdfReader.java +--- pdftk-1.12.orig/java_libs/com/lowagie/text/pdf/PdfReader.java 2004-10-23 02:22:44.000000000 +0200 ++++ pdftk-1.12/java_libs/com/lowagie/text/pdf/PdfReader.java 2006-03-28 21:15:37.000000000 +0200 +@@ -107,7 +107,7 @@ + protected char pdfVersion; + protected PdfEncryption decrypt; + protected byte password[] = null; //added by ujihara for decryption +- protected boolean passwordIsOwner= false; // added by ssteward ++ protected boolean passwordIsOwner= true; + protected ArrayList strings = new ArrayList(); + protected boolean sharedStreams = true; + protected boolean consolidateNamedDestinations = false; diff --git a/app-text/pdftk/pdftk-1.12.ebuild b/app-text/pdftk/pdftk-1.12.ebuild index d5ee4d0ca52c..a8d2f45e2d4a 100644 --- a/app-text/pdftk/pdftk-1.12.ebuild +++ b/app-text/pdftk/pdftk-1.12.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-text/pdftk/pdftk-1.12.ebuild,v 1.8 2006/03/19 23:11:42 ehmsen Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-text/pdftk/pdftk-1.12.ebuild,v 1.9 2006/06/05 22:16:06 genstef Exp $ inherit eutils @@ -10,7 +10,7 @@ SRC_URI="http://www.pdfhacks.com/pdftk/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="x86 amd64 ppc" -IUSE="" +IUSE="nodrm" DEPEND="virtual/libc >=sys-devel/gcc-3.3" S=${WORKDIR}/${P}/${PN} @@ -31,6 +31,7 @@ src_unpack() { < ${T}/Makefile.Generic.orig > ${S}/Makefile.Generic # Fix gcc-4 compilation, bug #126735. epatch "${FILESDIR}/${P}-gcc-4-compilation.patch" || die + use nodrm && epatch "${FILESDIR}"/${P}-user-pw.patch } src_compile() { -- 2.26.2