From: "James Le Cuirot" <chewi@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-java/pdfbox/
Date: Thu, 25 Feb 2016 22:06:26 +0000 (UTC) [thread overview]
Message-ID: <1456437974.a056a7c133de6cbc27249bbe7d3ecc52a333a4b6.chewi@gentoo> (raw)
commit: a056a7c133de6cbc27249bbe7d3ecc52a333a4b6
Author: James Le Cuirot <chewi <AT> gentoo <DOT> org>
AuthorDate: Thu Feb 25 21:29:34 2016 +0000
Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org>
CommitDate: Thu Feb 25 22:06:14 2016 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a056a7c1
dev-java/pdfbox: Version bump, unbundling, java-pkg-simple rewrite
fontbox and jempbox are now unbundled. They were previously built from
the same tarball but not installed, leaving pdfbox in a broken state.
Package-Manager: portage-2.2.27
dev-java/pdfbox/Manifest | 1 +
dev-java/pdfbox/metadata.xml | 3 +-
dev-java/pdfbox/pdfbox-1.8.11.ebuild | 77 ++++++++++++++++++++++++++++++++++++
3 files changed, 80 insertions(+), 1 deletion(-)
diff --git a/dev-java/pdfbox/Manifest b/dev-java/pdfbox/Manifest
index 7681455..8b705c0 100644
--- a/dev-java/pdfbox/Manifest
+++ b/dev-java/pdfbox/Manifest
@@ -1,2 +1,3 @@
DIST pcfi-2010.08.09.jar 6731455 SHA256 a787fb2a842de7bd5ee4fa13c4808aa6793380dde0219560b50054f6ca25c77c SHA512 067394ddac4a48ba8ac94b03f907d0faf98a91be658689a34eb85fdce49515582426f6a1fa433bfa87ca417ce3a6fa3aa89d89126a36176d8e04f3359c36d10b WHIRLPOOL fa9e9b6b2cc45f749101726c8fb7a4c7719d78448122c465b60696cd5be1a2a27bc65f549429d5a74c79bc74aaed39b3c0a8dfe02ec569303b96faa818410e73
+DIST pdfbox-1.8.11-src.zip 11026359 SHA256 160a2d058325845234eaa6b5ae23535b9226aadb4e570a1a76f7106a00653b1b SHA512 05c8e5075379ed5ebb09555b39434dd936fce9dd24445871d24ea7f0f6afa49e74242bf0c9eba2d1a847b505143789b687dd039ca51ce76851132f2f18d434d1 WHIRLPOOL 9f43dff9921283d074b332ef08a34b56d58fca3624b6c263029554998b0595bb8815ad91e31c7cdee17a95db0807cb88c579ec1b1f9ab724ded3f50382220880
DIST pdfbox-1.8.8-src.zip 11339989 SHA256 90d6b9a33682586e29bbce4ffeadf38c12fe0373bfe82441c1a63610a9c4ea8a SHA512 254361d0dcbfdc52bc78a2ed7e121065a2d173d1362a219d6644c3cc8a83a37904744e03f1725e2db67494d5f54f822b6e5a16dd8e791906efb9c348d564552f WHIRLPOOL cd9e71be60ee6d92c34f4affe7d6b074896920491a731a65f2b74e9e09754e836288c632e5d4a24b2d8aba64505dc58d2c3f8d0dd103c33773fce6dcd187e5a3
diff --git a/dev-java/pdfbox/metadata.xml b/dev-java/pdfbox/metadata.xml
index 7dd25b5..82ef400 100644
--- a/dev-java/pdfbox/metadata.xml
+++ b/dev-java/pdfbox/metadata.xml
@@ -5,7 +5,8 @@
<email>java@gentoo.org</email>
<name>Java</name>
</maintainer>
+ <longdescription>The Apache PDFBox™ library is an open source Java tool for working with PDF documents. This project allows creation of new PDF documents, manipulation of existing documents and the ability to extract content from documents. Apache PDFBox also includes several command line utilities.</longdescription>
<upstream>
- <remote-id type="sourceforge">pdfbox</remote-id>
+ <remote-id type="github">apache/pdfbox</remote-id>
</upstream>
</pkgmetadata>
diff --git a/dev-java/pdfbox/pdfbox-1.8.11.ebuild b/dev-java/pdfbox/pdfbox-1.8.11.ebuild
new file mode 100644
index 0000000..a6d4511
--- /dev/null
+++ b/dev-java/pdfbox/pdfbox-1.8.11.ebuild
@@ -0,0 +1,77 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+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="http://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 ~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
+}
+
+java_prepare() {
+ 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}
+}
next reply other threads:[~2016-02-25 22:06 UTC|newest]
Thread overview: 34+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-25 22:06 James Le Cuirot [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
2018-09-11 12:17 Thomas Deutschmann
2017-07-13 18:32 Alexis Ballier
2016-03-15 7: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=1456437974.a056a7c133de6cbc27249bbe7d3ecc52a333a4b6.chewi@gentoo \
--to=chewi@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