1 |
commit: 1e1f7d2d794921bbc43ce494ec2b9d787b094ef1 |
2 |
Author: Patrice Clement <monsieurp <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Dec 5 19:42:31 2015 +0000 |
4 |
Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Dec 5 19:42:31 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1e1f7d2d |
7 |
|
8 |
dev-tex/pdfannotextractor: EAPI 5 bump + housekeeping. Fixes bug 545336. |
9 |
|
10 |
Housekeeping includes: |
11 |
- Stick patches in PATCHES array |
12 |
- Remove useless dies |
13 |
- Bump ebuild to EAPI 5 (was about time!) |
14 |
|
15 |
Package-Manager: portage-2.2.20.1 |
16 |
Signed-off-by: Patrice Clement <monsieurp <AT> gentoo.org> |
17 |
|
18 |
.../pdfannotextractor-0.1l-r1.ebuild | 62 ++++++++++++++++++++++ |
19 |
1 file changed, 62 insertions(+) |
20 |
|
21 |
diff --git a/dev-tex/pdfannotextractor/pdfannotextractor-0.1l-r1.ebuild b/dev-tex/pdfannotextractor/pdfannotextractor-0.1l-r1.ebuild |
22 |
new file mode 100644 |
23 |
index 0000000..be76d28 |
24 |
--- /dev/null |
25 |
+++ b/dev-tex/pdfannotextractor/pdfannotextractor-0.1l-r1.ebuild |
26 |
@@ -0,0 +1,62 @@ |
27 |
+# Copyright 1999-2015 Gentoo Foundation |
28 |
+# Distributed under the terms of the GNU General Public License v2 |
29 |
+# $Id$ |
30 |
+ |
31 |
+EAPI=5 |
32 |
+ |
33 |
+inherit latex-package java-utils-2 java-pkg-2 java-ant-2 eutils |
34 |
+ |
35 |
+DESCRIPTION="Extract annotations from pdf files" |
36 |
+HOMEPAGE="http://www.ctan.org/tex-archive/macros/latex/contrib/pax/" |
37 |
+SRC_URI="mirror://gentoo/${P}.zip" |
38 |
+ |
39 |
+LICENSE="GPL-2" |
40 |
+SLOT="0" |
41 |
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~amd64-fbsd ~x86-fbsd ~x64-macos" |
42 |
+IUSE="" |
43 |
+ |
44 |
+CDEPEND="virtual/latex-base |
45 |
+ dev-java/pdfbox:1.8 |
46 |
+ dev-java/fontbox:1.7" |
47 |
+ |
48 |
+DEPEND="${CDEPEND} |
49 |
+ app-arch/unzip |
50 |
+ >=virtual/jdk-1.6" |
51 |
+ |
52 |
+RDEPEND="${CDEPEND} |
53 |
+ virtual/perl-Getopt-Long |
54 |
+ dev-perl/File-Which |
55 |
+ >=virtual/jre-1.6 |
56 |
+ !<=dev-texlive/texlive-latexextra-2010" |
57 |
+ |
58 |
+TEXMF=/usr/share/texmf-site |
59 |
+S="${WORKDIR}" |
60 |
+ |
61 |
+JAVA_ANT_REWRITE_CLASSPATH="true" |
62 |
+EANT_GENTOO_CLASSPATH=" |
63 |
+ pdfbox-1.8 |
64 |
+ fontbox-1.7 |
65 |
+" |
66 |
+ |
67 |
+PATCHES=( |
68 |
+ "${FILESDIR}/javajars.patch" |
69 |
+ "${FILESDIR}/PDFAnnotExtractor.java.patch" |
70 |
+ "${FILESDIR}/StringVisitor.java.patch" |
71 |
+) |
72 |
+ |
73 |
+java_prepare() { |
74 |
+ epatch "${PATCHES[@]}" |
75 |
+} |
76 |
+ |
77 |
+src_compile() { |
78 |
+ cd "${S}/source/latex/pax" || die |
79 |
+ eant || die |
80 |
+} |
81 |
+ |
82 |
+src_install() { |
83 |
+ newbin scripts/pax/pdfannotextractor.pl pdfannotextractor |
84 |
+ java-pkg_dojar "${S}/source/latex/pax/pax.jar" |
85 |
+ insinto ${TEXMF} |
86 |
+ doins -r tex |
87 |
+ dodoc doc/latex/pax/README |
88 |
+} |