diff options
author | Patrice Clement <monsieurp@gentoo.org> | 2015-12-05 19:43:11 +0000 |
---|---|---|
committer | Patrice Clement <monsieurp@gentoo.org> | 2015-12-05 19:48:31 +0000 |
commit | 99086c5c65a76bb21b66ee0a189484b545b7cbd7 (patch) | |
tree | 69929f673052949547caa8cabeecea84e7af8c08 /dev-tex | |
parent | Merge remote-tracking branch 'github/pr/432'. (diff) | |
parent | dev-tex/pdfannotextractor: EAPI 5 bump + housekeeping. Fixes bug 545336. (diff) | |
download | gentoo-99086c5c65a76bb21b66ee0a189484b545b7cbd7.tar.gz gentoo-99086c5c65a76bb21b66ee0a189484b545b7cbd7.tar.bz2 gentoo-99086c5c65a76bb21b66ee0a189484b545b7cbd7.zip |
Merge remote-tracking branch 'github/pr/430'.
Diffstat (limited to 'dev-tex')
4 files changed, 106 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-r1.ebuild b/dev-tex/pdfannotextractor/pdfannotextractor-0.1l-r1.ebuild new file mode 100644 index 000000000000..be76d2868803 --- /dev/null +++ b/dev-tex/pdfannotextractor/pdfannotextractor-0.1l-r1.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit latex-package java-utils-2 java-pkg-2 java-ant-2 eutils + +DESCRIPTION="Extract annotations from pdf files" +HOMEPAGE="http://www.ctan.org/tex-archive/macros/latex/contrib/pax/" +SRC_URI="mirror://gentoo/${P}.zip" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~amd64-fbsd ~x86-fbsd ~x64-macos" +IUSE="" + +CDEPEND="virtual/latex-base + dev-java/pdfbox:1.8 + dev-java/fontbox:1.7" + +DEPEND="${CDEPEND} + app-arch/unzip + >=virtual/jdk-1.6" + +RDEPEND="${CDEPEND} + virtual/perl-Getopt-Long + dev-perl/File-Which + >=virtual/jre-1.6 + !<=dev-texlive/texlive-latexextra-2010" + +TEXMF=/usr/share/texmf-site +S="${WORKDIR}" + +JAVA_ANT_REWRITE_CLASSPATH="true" +EANT_GENTOO_CLASSPATH=" + pdfbox-1.8 + fontbox-1.7 +" + +PATCHES=( + "${FILESDIR}/javajars.patch" + "${FILESDIR}/PDFAnnotExtractor.java.patch" + "${FILESDIR}/StringVisitor.java.patch" +) + +java_prepare() { + epatch "${PATCHES[@]}" +} + +src_compile() { + cd "${S}/source/latex/pax" || die + eant || die +} + +src_install() { + newbin scripts/pax/pdfannotextractor.pl pdfannotextractor + java-pkg_dojar "${S}/source/latex/pax/pax.jar" + insinto ${TEXMF} + doins -r tex + dodoc doc/latex/pax/README +} 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 } |