diff options
author | Volkmar W. Pogatzki <gentoo@pogatzki.net> | 2024-06-27 08:36:03 +0200 |
---|---|---|
committer | Florian Schmaus <flow@gentoo.org> | 2024-06-27 11:21:11 +0200 |
commit | 6413b22f17d9e13b0d52a4481c99e9927b9fddbf (patch) | |
tree | ce3c9e2bc06da81daaa791aaf9a2b51c390476f1 /dev-tex | |
parent | sys-apps/syd: drop 3.21.2 (diff) | |
download | gentoo-6413b22f17d9e13b0d52a4481c99e9927b9fddbf.tar.gz gentoo-6413b22f17d9e13b0d52a4481c99e9927b9fddbf.tar.bz2 gentoo-6413b22f17d9e13b0d52a4481c99e9927b9fddbf.zip |
dev-tex/pdfannotextractor: rewrite with java-pkg-simple
Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net>
Closes: https://github.com/gentoo/gentoo/pull/37319
Signed-off-by: Florian Schmaus <flow@gentoo.org>
Diffstat (limited to 'dev-tex')
-rw-r--r-- | dev-tex/pdfannotextractor/pdfannotextractor-0.2-r3.ebuild | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/dev-tex/pdfannotextractor/pdfannotextractor-0.2-r3.ebuild b/dev-tex/pdfannotextractor/pdfannotextractor-0.2-r3.ebuild new file mode 100644 index 000000000000..b051b3741492 --- /dev/null +++ b/dev-tex/pdfannotextractor/pdfannotextractor-0.2-r3.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +JAVA_PKG_IUSE="doc source" + +inherit latex-package java-pkg-2 java-pkg-simple + +MY_COMMIT_ID=718e18be0c8fd1dc5b7c974eb4fbe6d0774cd05e +MY_PDFBOX_VER="1.8.17" +MY_FONTBOX_VER="1.7.1" + +DESCRIPTION="Extract annotations from pdf files" +HOMEPAGE="https://www.ctan.org/tex-archive/macros/latex/contrib/pax/" +SRC_URI=" + https://github.com/bastien-roucaries/latex-pax/archive/${MY_COMMIT_ID}.tar.gz + -> ${P}.tar.gz + https://downloads.apache.org/pdfbox/${MY_PDFBOX_VER}/pdfbox-${MY_PDFBOX_VER}.jar + https://archive.apache.org/dist/pdfbox/${MY_FONTBOX_VER}/fontbox-${MY_FONTBOX_VER}.jar +" + +S="${WORKDIR}/latex-pax-${MY_COMMIT_ID}" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86 ~x64-macos" + +COMMON_DEPEND="virtual/latex-base" +DEPEND=" + ${COMMON_DEPEND} + >=virtual/jdk-1.8:* +" +BDEPEND="app-arch/unzip" +RDEPEND=" + dev-java/commons-logging:0 + ${COMMON_DEPEND} + virtual/perl-Getopt-Long + dev-perl/File-Which + >=virtual/jre-1.8:* + !<dev-texlive/texlive-latexextra-2023_p69752-r4 +" + +PATCHES=( + "${FILESDIR}"/${PN}-0.2-javajars.patch +) + +JAVA_GENTOO_CLASSPATH_EXTRA="${DISTDIR}/fontbox-${MY_FONTBOX_VER}.jar" +JAVA_GENTOO_CLASSPATH_EXTRA+=":${DISTDIR}/pdfbox-${MY_PDFBOX_VER}.jar" +JAVA_JAR_FILENAME="pax.jar" +JAVA_MAIN_CLASS="pax.PDFAnnotExtractor" +JAVA_SRC_DIR="source/src" + +src_unpack() { + unpack ${P}.tar.gz +} + +src_install() { + java-pkg-simple_src_install + java-pkg_newjar "${DISTDIR}/pdfbox-${MY_PDFBOX_VER}.jar" pdfbox.jar + java-pkg_newjar "${DISTDIR}/fontbox-${MY_FONTBOX_VER}.jar" fontbox.jar + java-pkg_addcp "$(java-pkg_getjars --runtime-only --with-dependencies commons-logging)" + + insinto ${TEXMF}/latex/pax + doins tex/pax.sty +} |