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/pdfannotextractor/pdfannotextractor-0.1l-r1.ebuild | |
parent | 005ea3e5839bccb120f1dacf7c2e655491905407 (diff) | |
parent | 1e1f7d2d794921bbc43ce494ec2b9d787b094ef1 (diff) | |
download | gentoo-99086c5c65a76bb21b66ee0a189484b545b7cbd7.tar.gz gentoo-99086c5c65a76bb21b66ee0a189484b545b7cbd7.tar.xz |
Merge remote-tracking branch 'github/pr/430'.
Diffstat (limited to 'dev-tex/pdfannotextractor/pdfannotextractor-0.1l-r1.ebuild')
-rw-r--r-- | dev-tex/pdfannotextractor/pdfannotextractor-0.1l-r1.ebuild | 62 |
1 files changed, 62 insertions, 0 deletions
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 00000000000..be76d286880 --- /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 +} |