Gentoo Archives: gentoo-commits

From: Thomas Deutschmann <whissi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-java/pdfbox/
Date: Tue, 11 Sep 2018 12:17:47
Message-Id: 1536668248.912353d609d58ac29c5d9aa2f39259dcaebd2d2a.whissi@gentoo
1 commit: 912353d609d58ac29c5d9aa2f39259dcaebd2d2a
2 Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
3 AuthorDate: Tue Sep 11 12:17:28 2018 +0000
4 Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
5 CommitDate: Tue Sep 11 12:17:28 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=912353d6
7
8 dev-java/pdfbox: bump to v1.8.15
9
10 Bug: https://bugs.gentoo.org/659648
11 Package-Manager: Portage-2.3.49, Repoman-2.3.10
12
13 dev-java/pdfbox/Manifest | 1 +
14 dev-java/pdfbox/pdfbox-1.8.15.ebuild | 78 ++++++++++++++++++++++++++++++++++++
15 2 files changed, 79 insertions(+)
16
17 diff --git a/dev-java/pdfbox/Manifest b/dev-java/pdfbox/Manifest
18 index 31fe201e1aa..ab85f845d80 100644
19 --- a/dev-java/pdfbox/Manifest
20 +++ b/dev-java/pdfbox/Manifest
21 @@ -1,2 +1,3 @@
22 DIST pcfi-2010.08.09.jar 6731455 BLAKE2B 438dda63e91494231fba890d995227e7c6428b25a698ad5905a7ca0f2a29f511ff4cc34136c96c878ca04ec7630a062bbff3bbf0400a332b4edb6a6972175920 SHA512 067394ddac4a48ba8ac94b03f907d0faf98a91be658689a34eb85fdce49515582426f6a1fa433bfa87ca417ce3a6fa3aa89d89126a36176d8e04f3359c36d10b
23 DIST pdfbox-1.8.11-src.zip 11026359 BLAKE2B b3eb1add38e9bd0e5a1fcb116263fdbc372d6adb77132aeb0647a6c5d2c2b735345220f0a5c22caa97d04f78ad6517df388327aaa625677bd8c99d2051329a9c SHA512 05c8e5075379ed5ebb09555b39434dd936fce9dd24445871d24ea7f0f6afa49e74242bf0c9eba2d1a847b505143789b687dd039ca51ce76851132f2f18d434d1
24 +DIST pdfbox-1.8.15-src.zip 11078696 BLAKE2B e468a1c263007484d47861945b50a8b0c9afed2d792619a49f41e57b313d86f4e04d317d1b75406876592d755958771c0468446eb23fe3b26ff529e07d467ffb SHA512 ac3f4b131f5cd2153ec2a744c486db921bc2165d596b243ad673cfc94be1bc4ae27bdf2981b63419fead18db569a2008264d6fdc7c89cf47f69f81c4a7d3a2a6
25
26 diff --git a/dev-java/pdfbox/pdfbox-1.8.15.ebuild b/dev-java/pdfbox/pdfbox-1.8.15.ebuild
27 new file mode 100644
28 index 00000000000..806cc5ba04b
29 --- /dev/null
30 +++ b/dev-java/pdfbox/pdfbox-1.8.15.ebuild
31 @@ -0,0 +1,78 @@
32 +# Copyright 1999-2018 Gentoo Foundation
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI="6"
36 +
37 +BC_SLOT="1.45"
38 +ADOBE_FILES="pcfi-2010.08.09.jar"
39 +JAVA_PKG_IUSE="doc source"
40 +
41 +inherit java-pkg-2 java-pkg-simple
42 +
43 +DESCRIPTION="Java library and utilities for working with PDF documents"
44 +HOMEPAGE="https://pdfbox.apache.org/"
45 +SRC_URI="mirror://apache/${PN}/${PV}/${P}-src.zip
46 + http://repo2.maven.org/maven2/com/adobe/pdf/pcfi/2010.08.09/${ADOBE_FILES}"
47 +LICENSE="Apache-2.0"
48 +SLOT="1.8"
49 +KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86"
50 +IUSE="test"
51 +RESTRICT="test" # Explosive even when manually using unmodified build.xml.
52 +
53 +CDEPEND="dev-java/fontbox:${SLOT}
54 + dev-java/jempbox:${SLOT}
55 + dev-java/bcmail:${BC_SLOT}
56 + dev-java/bcprov:${BC_SLOT}
57 + >=dev-java/commons-logging-1.1.1:0
58 + dev-java/icu4j:55"
59 +
60 +RDEPEND="${CDEPEND}
61 + >=virtual/jre-1.6"
62 +
63 +DEPEND="${CDEPEND}
64 + >=virtual/jdk-1.6
65 + app-arch/unzip
66 + test? ( dev-java/junit:4 )"
67 +
68 +S="${WORKDIR}/${P}/${PN}"
69 +JAVA_SRC_DIR="src/main/java"
70 +JAVA_ENCODING="ISO-8859-1"
71 +JAVA_GENTOO_CLASSPATH="fontbox-${SLOT},jempbox-${SLOT},bcmail-${BC_SLOT},bcprov-${BC_SLOT},commons-logging,icu4j-55"
72 +
73 +src_unpack() {
74 + unpack ${P}-src.zip
75 +}
76 +
77 +src_prepare() {
78 + default
79 +
80 + local DIR=target/classes/org/apache/${PN}/resources
81 + mkdir -p "${DIR}/afm" || die
82 +
83 + unzip -j -d "${DIR}" "${DISTDIR}/${ADOBE_FILES}" com/adobe/pdf/pcfi/glyphlist.txt || die
84 + unzip -j -d "${DIR}/afm" "${DISTDIR}/${ADOBE_FILES}" com/adobe/pdf/pcfi/afm/*.afm || die
85 +
86 + echo "${PN}.version=${PV}" > ${DIR}/${PN}.version || die
87 +}
88 +
89 +src_compile() {
90 + java-pkg-simple_src_compile
91 + java-pkg_addres ${PN}.jar src/main/resources
92 +}
93 +
94 +src_install() {
95 + java-pkg-simple_src_install
96 + java-pkg_dolauncher ${PN} --main org.apache.${PN}.PDFBox
97 +}
98 +
99 +src_test() {
100 + local DIR=src/test/java
101 + local CP="${DIR}:${PN}.jar:$(java-pkg_getjars junit-4,${JAVA_GENTOO_CLASSPATH})"
102 + local TESTS=$(find ${DIR} -name "*Test.java")
103 + TESTS="${TESTS//src\/test\/java\/}"
104 + TESTS="${TESTS//.java}"
105 + TESTS="${TESTS//\//.}"
106 +
107 + ejavac -encoding ${JAVA_ENCODING} -cp "${CP}" -d ${DIR} $(find ${DIR} -name "*.java")
108 + ejunit4 -classpath "${CP}" ${TESTS}
109 +}