summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCraig Inches <craig.inches@xayto.net>2015-12-03 00:53:24 +0800
committerPatrice Clement <monsieurp@gentoo.org>2015-12-05 19:29:41 +0000
commit1dd38c31fca99c48a5c783763ef9c85b281f44ea (patch)
treea2fad66075e78d29cb47c8e62e9729729be158c9 /dev-tex/pdfannotextractor
parentdev-java/xerces: EAPI 5 version bump. (diff)
downloadgentoo-1dd38c31fca99c48a5c783763ef9c85b281f44ea.tar.gz
gentoo-1dd38c31fca99c48a5c783763ef9c85b281f44ea.tar.bz2
gentoo-1dd38c31fca99c48a5c783763ef9c85b281f44ea.zip
dev-tex/pdfannotextractor: Add two new patches. Fixes bug 545336.
Diffstat (limited to 'dev-tex/pdfannotextractor')
-rw-r--r--dev-tex/pdfannotextractor/files/PDFAnnotExtractor.java.patch25
-rw-r--r--dev-tex/pdfannotextractor/files/StringVisitor.java.patch14
-rw-r--r--dev-tex/pdfannotextractor/pdfannotextractor-0.1l.ebuild8
3 files changed, 44 insertions, 3 deletions
diff --git a/dev-tex/pdfannotextractor/files/PDFAnnotExtractor.java.patch b/dev-tex/pdfannotextractor/files/PDFAnnotExtractor.java.patch
new file mode 100644
index 000000000000..88c8d372e089
--- /dev/null
+++ b/dev-tex/pdfannotextractor/files/PDFAnnotExtractor.java.patch
@@ -0,0 +1,25 @@
+--- PDFAnnotExtractor.java.org 2015-11-26 16:20:12.614852847 +0800
++++ work/source/latex/pax/src/PDFAnnotExtractor.java 2015-11-26 16:21:42.592303074 +0800
+@@ -24,14 +24,14 @@
+ import java.text.*;
+ import java.util.*;
+
+-import org.pdfbox.cos.*;
+-import org.pdfbox.pdfparser.*;
+-import org.pdfbox.pdmodel.*;
+-import org.pdfbox.pdmodel.common.*;
+-import org.pdfbox.pdmodel.interactive.action.*;
+-import org.pdfbox.pdmodel.interactive.action.type.*;
+-import org.pdfbox.pdmodel.interactive.annotation.*;
+-import org.pdfbox.pdmodel.interactive.documentnavigation.destination.*;
++import org.apache.pdfbox.cos.*;
++import org.apache.pdfbox.pdfparser.*;
++import org.apache.pdfbox.pdmodel.*;
++import org.apache.pdfbox.pdmodel.common.*;
++import org.apache.pdfbox.pdmodel.interactive.action.*;
++import org.apache.pdfbox.pdmodel.interactive.action.type.*;
++import org.apache.pdfbox.pdmodel.interactive.annotation.*;
++import org.apache.pdfbox.pdmodel.interactive.documentnavigation.destination.*;
+
+ public class PDFAnnotExtractor implements Constants {
+
diff --git a/dev-tex/pdfannotextractor/files/StringVisitor.java.patch b/dev-tex/pdfannotextractor/files/StringVisitor.java.patch
new file mode 100644
index 000000000000..1b6a9d1d9161
--- /dev/null
+++ b/dev-tex/pdfannotextractor/files/StringVisitor.java.patch
@@ -0,0 +1,14 @@
+Index: work/source/latex/pax/src/StringVisitor.java
+--- StringVisitor.java.org 2015-11-26 16:20:35.434967156 +0800
++++ work/source/latex/pax/src/StringVisitor.java 2015-11-26 16:20:56.504072659 +0800
+@@ -22,8 +22,8 @@
+
+ import java.io.*;
+ import java.util.*;
+-import org.pdfbox.cos.*;
+-import org.pdfbox.exceptions.*;
++import org.apache.pdfbox.cos.*;
++import org.apache.pdfbox.exceptions.*;
+
+ public class StringVisitor implements ICOSVisitor {
+
diff --git a/dev-tex/pdfannotextractor/pdfannotextractor-0.1l.ebuild b/dev-tex/pdfannotextractor/pdfannotextractor-0.1l.ebuild
index 3691bb94f5bc..f6424b59ae1a 100644
--- a/dev-tex/pdfannotextractor/pdfannotextractor-0.1l.ebuild
+++ b/dev-tex/pdfannotextractor/pdfannotextractor-0.1l.ebuild
@@ -16,8 +16,8 @@ KEYWORDS="amd64 ppc ppc64 x86 ~amd64-fbsd ~x86-fbsd ~x64-macos"
IUSE=""
CDEPEND="virtual/latex-base
- dev-java/pdfbox
- dev-java/fontbox"
+ dev-java/pdfbox:1.8
+ dev-java/fontbox:1.7"
DEPEND="${CDEPEND}
app-arch/unzip
>=virtual/jdk-1.5"
@@ -31,10 +31,12 @@ TEXMF=/usr/share/texmf-site
S=${WORKDIR}
JAVA_ANT_REWRITE_CLASSPATH="true"
-EANT_GENTOO_CLASSPATH="pdfbox fontbox"
+EANT_GENTOO_CLASSPATH="pdfbox-1.8 fontbox-1.7"
src_prepare() {
epatch "${FILESDIR}/javajars.patch"
+ epatch "${FILESDIR}/PDFAnnotExtractor.java.patch"
+ epatch "${FILESDIR}/StringVisitor.java.patch"
java-pkg-2_src_prepare
}