public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Thomas Deutschmann" <whissi@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-java/pdfbox/
Date: Tue, 11 Sep 2018 12:17:40 +0000 (UTC)	[thread overview]
Message-ID: <1536668248.912353d609d58ac29c5d9aa2f39259dcaebd2d2a.whissi@gentoo> (raw)

commit:     912353d609d58ac29c5d9aa2f39259dcaebd2d2a
Author:     Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
AuthorDate: Tue Sep 11 12:17:28 2018 +0000
Commit:     Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
CommitDate: Tue Sep 11 12:17:28 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=912353d6

dev-java/pdfbox: bump to v1.8.15

Bug: https://bugs.gentoo.org/659648
Package-Manager: Portage-2.3.49, Repoman-2.3.10

 dev-java/pdfbox/Manifest             |  1 +
 dev-java/pdfbox/pdfbox-1.8.15.ebuild | 78 ++++++++++++++++++++++++++++++++++++
 2 files changed, 79 insertions(+)

diff --git a/dev-java/pdfbox/Manifest b/dev-java/pdfbox/Manifest
index 31fe201e1aa..ab85f845d80 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 00000000000..806cc5ba04b
--- /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}
+}


             reply	other threads:[~2018-09-11 12:17 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-09-11 12:17 Thomas Deutschmann [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-12-30 19:41 [gentoo-commits] repo/gentoo:master commit in: dev-java/pdfbox/ Florian Schmaus
2024-12-24  8:45 Sam James
2024-12-11  0:57 Sam James
2024-12-10 15:22 Sam James
2024-11-11  7:38 Miroslav Šulc
2023-01-26 22:19 Sam James
2023-01-26 21:49 Sam James
2023-01-26 21:49 Sam James
2023-01-26 21:49 Sam James
2022-12-27 19:52 Florian Schmaus
2022-07-01  7:45 Arthur Zamarin
2022-06-23  3:56 Miroslav Šulc
2022-06-22 13:25 Agostino Sarubbo
2022-06-22 11:40 Jakov Smolić
2022-06-22 10:10 Agostino Sarubbo
2022-05-22 17:57 Florian Schmaus
2021-11-26 13:48 Miroslav Šulc
2021-11-26  9:37 Sam James
2021-11-26  9:04 Sam James
2021-11-26  8:55 Sam James
2021-11-26  7:53 Miroslav Šulc
2021-11-17  7:18 Miroslav Šulc
2021-11-16 11:38 Miroslav Šulc
2019-03-10  4:59 Aaron Bauman
2018-12-08  9:44 Sergei Trofimovich
2018-12-07  2:41 Thomas Deutschmann
2018-12-04 11:56 Agostino Sarubbo
2017-07-13 18:32 Alexis Ballier
2016-03-15  7:06 James Le Cuirot
2016-02-25 22:06 James Le Cuirot
2015-10-02 10:34 Patrice Clement
2015-10-02  9:12 Patrice Clement
2015-10-02  9:12 Patrice Clement

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1536668248.912353d609d58ac29c5d9aa2f39259dcaebd2d2a.whissi@gentoo \
    --to=whissi@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox