summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikle Kolyada <zlogene@gentoo.org>2020-02-08 19:30:29 +0300
committerMikle Kolyada <zlogene@gentoo.org>2020-02-08 19:31:26 +0300
commit77514210c42155a5fb1e62ada372b0e7ad06fdb4 (patch)
tree444c50d220bacae0a8fba2026bd2285162607cb2 /dev-tex/pdfannotextractor
parentx11-wm/awesome: [QA] Fix UnnecessarySlashStrip (diff)
downloadgentoo-77514210c42155a5fb1e62ada372b0e7ad06fdb4.tar.gz
gentoo-77514210c42155a5fb1e62ada372b0e7ad06fdb4.tar.bz2
gentoo-77514210c42155a5fb1e62ada372b0e7ad06fdb4.zip
dev-tex/pdfannotextractor: restore patches
Package-Manager: Portage-2.3.84, Repoman-2.3.20 Signed-off-by: Mikle Kolyada <zlogene@gentoo.org>
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/files/javajars.patch13
-rw-r--r--dev-tex/pdfannotextractor/pdfannotextractor-0.1l-r1.ebuild6
4 files changed, 58 insertions, 0 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/files/javajars.patch b/dev-tex/pdfannotextractor/files/javajars.patch
new file mode 100644
index 000000000000..bc52050e7b06
--- /dev/null
+++ b/dev-tex/pdfannotextractor/files/javajars.patch
@@ -0,0 +1,13 @@
+Index: work/scripts/pax/pdfannotextractor.pl
+===================================================================
+--- work.orig/scripts/pax/pdfannotextractor.pl
++++ work/scripts/pax/pdfannotextractor.pl
+@@ -84,6 +84,8 @@ my @jar_pdfbox = qw[
+ PDFBox-0.7.2.jar
+ ];
+ my @dir_jar = qw[
++ /usr/share/pdfannotextractor/lib
++ /usr/share/pdfbox/lib
+ /usr/share/java
+ /usr/local/share/java
+ ];
diff --git a/dev-tex/pdfannotextractor/pdfannotextractor-0.1l-r1.ebuild b/dev-tex/pdfannotextractor/pdfannotextractor-0.1l-r1.ebuild
index 1b6371bf6dbe..5ae9bb84c9eb 100644
--- a/dev-tex/pdfannotextractor/pdfannotextractor-0.1l-r1.ebuild
+++ b/dev-tex/pdfannotextractor/pdfannotextractor-0.1l-r1.ebuild
@@ -36,6 +36,12 @@ EANT_GENTOO_CLASSPATH="
pdfbox-1.8
fontbox-1.7
"
+src_prepare() {
+ eapply "${FILESDIR}"/javajars.patch
+ eapply "${FILESDIR}"/StringVisitor.java.patch
+ eapply "${FILESDIR}"/PDFAnnotExtractor.java.patch
+ default
+}
src_compile() {
cd "${S}/source/latex/pax" || die