summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Le Cuirot <chewi@gentoo.org>2016-02-25 21:29:34 +0000
committerJames Le Cuirot <chewi@gentoo.org>2016-02-25 22:06:14 +0000
commita056a7c133de6cbc27249bbe7d3ecc52a333a4b6 (patch)
tree218a3d1fbb482e27cf816081cd9f2a10ecebb56d /dev-java/pdfbox
parentdev-java/fontbox: Version bump, EAPI bump, java-pkg-simple rewrite (diff)
downloadgentoo-a056a7c133de6cbc27249bbe7d3ecc52a333a4b6.tar.gz
gentoo-a056a7c133de6cbc27249bbe7d3ecc52a333a4b6.tar.bz2
gentoo-a056a7c133de6cbc27249bbe7d3ecc52a333a4b6.zip
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
Diffstat (limited to 'dev-java/pdfbox')
-rw-r--r--dev-java/pdfbox/Manifest1
-rw-r--r--dev-java/pdfbox/metadata.xml3
-rw-r--r--dev-java/pdfbox/pdfbox-1.8.11.ebuild77
3 files changed, 80 insertions, 1 deletions
diff --git a/dev-java/pdfbox/Manifest b/dev-java/pdfbox/Manifest
index 7681455b9f5..8b705c021db 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 7dd25b5193a..82ef400a70a 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 00000000000..a6d45112762
--- /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}
+}