diff options
author | Thomas Deutschmann <whissi@gentoo.org> | 2018-09-11 14:17:28 +0200 |
---|---|---|
committer | Thomas Deutschmann <whissi@gentoo.org> | 2018-09-11 14:17:28 +0200 |
commit | 912353d609d58ac29c5d9aa2f39259dcaebd2d2a (patch) | |
tree | a1e5b3a47e4ba0b3475775a96821b84fca5fa842 /dev-java | |
parent | x11-plugins/enigmail: use HTTPS (diff) | |
download | gentoo-912353d609d58ac29c5d9aa2f39259dcaebd2d2a.tar.gz gentoo-912353d609d58ac29c5d9aa2f39259dcaebd2d2a.tar.bz2 gentoo-912353d609d58ac29c5d9aa2f39259dcaebd2d2a.zip |
dev-java/pdfbox: bump to v1.8.15
Bug: https://bugs.gentoo.org/659648
Package-Manager: Portage-2.3.49, Repoman-2.3.10
Diffstat (limited to 'dev-java')
-rw-r--r-- | dev-java/pdfbox/Manifest | 1 | ||||
-rw-r--r-- | dev-java/pdfbox/pdfbox-1.8.15.ebuild | 78 |
2 files changed, 79 insertions, 0 deletions
diff --git a/dev-java/pdfbox/Manifest b/dev-java/pdfbox/Manifest index 31fe201e1aa9..ab85f845d80a 100644 --- a/dev-java/pdfbox/Manifest +++ b/dev-java/pdfbox/Manifest @@ -1,2 +1,3 @@ DIST pcfi-2010.08.09.jar 6731455 BLAKE2B 438dda63e91494231fba890d995227e7c6428b25a698ad5905a7ca0f2a29f511ff4cc34136c96c878ca04ec7630a062bbff3bbf0400a332b4edb6a6972175920 SHA512 067394ddac4a48ba8ac94b03f907d0faf98a91be658689a34eb85fdce49515582426f6a1fa433bfa87ca417ce3a6fa3aa89d89126a36176d8e04f3359c36d10b DIST pdfbox-1.8.11-src.zip 11026359 BLAKE2B b3eb1add38e9bd0e5a1fcb116263fdbc372d6adb77132aeb0647a6c5d2c2b735345220f0a5c22caa97d04f78ad6517df388327aaa625677bd8c99d2051329a9c SHA512 05c8e5075379ed5ebb09555b39434dd936fce9dd24445871d24ea7f0f6afa49e74242bf0c9eba2d1a847b505143789b687dd039ca51ce76851132f2f18d434d1 +DIST pdfbox-1.8.15-src.zip 11078696 BLAKE2B e468a1c263007484d47861945b50a8b0c9afed2d792619a49f41e57b313d86f4e04d317d1b75406876592d755958771c0468446eb23fe3b26ff529e07d467ffb SHA512 ac3f4b131f5cd2153ec2a744c486db921bc2165d596b243ad673cfc94be1bc4ae27bdf2981b63419fead18db569a2008264d6fdc7c89cf47f69f81c4a7d3a2a6 diff --git a/dev-java/pdfbox/pdfbox-1.8.15.ebuild b/dev-java/pdfbox/pdfbox-1.8.15.ebuild new file mode 100644 index 000000000000..806cc5ba04b8 --- /dev/null +++ b/dev-java/pdfbox/pdfbox-1.8.15.ebuild @@ -0,0 +1,78 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="6" + +BC_SLOT="1.45" +ADOBE_FILES="pcfi-2010.08.09.jar" +JAVA_PKG_IUSE="doc source" + +inherit java-pkg-2 java-pkg-simple + +DESCRIPTION="Java library and utilities for working with PDF documents" +HOMEPAGE="https://pdfbox.apache.org/" +SRC_URI="mirror://apache/${PN}/${PV}/${P}-src.zip + http://repo2.maven.org/maven2/com/adobe/pdf/pcfi/2010.08.09/${ADOBE_FILES}" +LICENSE="Apache-2.0" +SLOT="1.8" +KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86" +IUSE="test" +RESTRICT="test" # Explosive even when manually using unmodified build.xml. + +CDEPEND="dev-java/fontbox:${SLOT} + dev-java/jempbox:${SLOT} + dev-java/bcmail:${BC_SLOT} + dev-java/bcprov:${BC_SLOT} + >=dev-java/commons-logging-1.1.1:0 + dev-java/icu4j:55" + +RDEPEND="${CDEPEND} + >=virtual/jre-1.6" + +DEPEND="${CDEPEND} + >=virtual/jdk-1.6 + app-arch/unzip + test? ( dev-java/junit:4 )" + +S="${WORKDIR}/${P}/${PN}" +JAVA_SRC_DIR="src/main/java" +JAVA_ENCODING="ISO-8859-1" +JAVA_GENTOO_CLASSPATH="fontbox-${SLOT},jempbox-${SLOT},bcmail-${BC_SLOT},bcprov-${BC_SLOT},commons-logging,icu4j-55" + +src_unpack() { + unpack ${P}-src.zip +} + +src_prepare() { + default + + local DIR=target/classes/org/apache/${PN}/resources + mkdir -p "${DIR}/afm" || die + + unzip -j -d "${DIR}" "${DISTDIR}/${ADOBE_FILES}" com/adobe/pdf/pcfi/glyphlist.txt || die + unzip -j -d "${DIR}/afm" "${DISTDIR}/${ADOBE_FILES}" com/adobe/pdf/pcfi/afm/*.afm || die + + echo "${PN}.version=${PV}" > ${DIR}/${PN}.version || die +} + +src_compile() { + java-pkg-simple_src_compile + java-pkg_addres ${PN}.jar src/main/resources +} + +src_install() { + java-pkg-simple_src_install + java-pkg_dolauncher ${PN} --main org.apache.${PN}.PDFBox +} + +src_test() { + local DIR=src/test/java + local CP="${DIR}:${PN}.jar:$(java-pkg_getjars junit-4,${JAVA_GENTOO_CLASSPATH})" + local TESTS=$(find ${DIR} -name "*Test.java") + TESTS="${TESTS//src\/test\/java\/}" + TESTS="${TESTS//.java}" + TESTS="${TESTS//\//.}" + + ejavac -encoding ${JAVA_ENCODING} -cp "${CP}" -d ${DIR} $(find ${DIR} -name "*.java") + ejunit4 -classpath "${CP}" ${TESTS} +} |