summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Schweizer <genstef@gentoo.org>2006-06-05 22:16:06 +0000
committerStefan Schweizer <genstef@gentoo.org>2006-06-05 22:16:06 +0000
commitf61439ffe3da2079f1249458e5eb1a4c7c7c1c9c (patch)
tree5120d4efd0117f03aee4fc08d6ea7cf35cd0cce4 /app-text/pdftk
parentNew cdrtools can write as user again. (diff)
downloadgentoo-2-f61439ffe3da2079f1249458e5eb1a4c7c7c1c9c.tar.gz
gentoo-2-f61439ffe3da2079f1249458e5eb1a4c7c7c1c9c.tar.bz2
gentoo-2-f61439ffe3da2079f1249458e5eb1a4c7c7c1c9c.zip
Add user_pw only support, thanks to Georg Sauthoff <g_sauthoff@web.de> in bug 127891 and remove old ebuilds
(Portage version: 2.1_rc4-r2)
Diffstat (limited to 'app-text/pdftk')
-rw-r--r--app-text/pdftk/ChangeLog8
-rw-r--r--app-text/pdftk/files/pdftk-1.12-user-pw.patch12
-rw-r--r--app-text/pdftk/pdftk-1.12.ebuild5
3 files changed, 22 insertions, 3 deletions
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 <genstef@gentoo.org>
+ +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 <g_sauthoff@web.de> in
+ bug 127891 and remove old ebuilds
19 Mar 2006; Martin Ehmsen <ehmsen@gentoo.org>
+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() {