summaryrefslogtreecommitdiff
path: root/dev-java/pdfbox
diff options
context:
space:
mode:
Diffstat (limited to 'dev-java/pdfbox')
-rw-r--r--dev-java/pdfbox/Manifest6
-rw-r--r--dev-java/pdfbox/metadata.xml12
-rw-r--r--dev-java/pdfbox/pdfbox-1.8.11.ebuild76
3 files changed, 94 insertions, 0 deletions
diff --git a/dev-java/pdfbox/Manifest b/dev-java/pdfbox/Manifest
new file mode 100644
index 000000000000..1f8028efad90
--- /dev/null
+++ b/dev-java/pdfbox/Manifest
@@ -0,0 +1,6 @@
+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
+EBUILD pdfbox-1.8.11.ebuild 2079 SHA256 4c925b95dd4b0baefee15a0b9c95bad515ba1c1b31a10ce1c7602d032decdef8 SHA512 249af8e8327b87210e5919f7504978a9a258214accf957644e1a7803a7132b75532882a0ab87e19d35a7d7523eb5ecede5396657f55444f7874bda7b6d322ba8 WHIRLPOOL 173d15968bcd5af9ecfdbbdadcb470a26fab4886beae86546032b958ff7ab32dced735337132e76a4c7d05c0d74cd891be582db84ac36bd128ecc0d829420a98
+MISC ChangeLog 4586 SHA256 f7a1274971e6b008539302c19eae138bb4f0e709e6f4e226941866594c9abc47 SHA512 f48f83fa6a5d99a64e1f60050b75344b982a5033c9227e5e74fbe839603d58326bb5bf72f5c6779f423d37e627a052d2476e447fa6d94c8553feefa085f36fe9 WHIRLPOOL 909a6115f9de37855a99cb1f8ae852258c2931ac488a251b22272288ce2a541cb024f7b90b0417d97100463a40c31ee6b83fa9600371fb445efbe14df4454854
+MISC ChangeLog-2015 4168 SHA256 5ebab9072ac629cbd1930de3a1b92161a42ceea2f72bc165b729cfc23acc94bc SHA512 054ce6c1e108d01049837a9b0532962c77f242703ba1aa417ae704ca9103fffd78d51b4ce2827adba2e8ec3e04160d294af3b98700650fea9f69cd7bd19eb933 WHIRLPOOL d4db79232d25edd5077984ea7adcf4eb6312636af02824367748a35f211d91229676397e8ab1e6d08ec21892018eb2827a0c0a473a6f8f113c9cab7f1d5f0e42
+MISC metadata.xml 639 SHA256 cc0c9a782fa9fc462b0bd97953282c4e4e3f161bf2ab5b4d1be57e7b853534e8 SHA512 2850f6439820beeb7cc1da7e97dc7e9cad690425e3b525450920f978b77c6f32c69374276d89f427d33e52e7a83326430382f205ed1ce7a2dcc0c7f68ca1bcd1 WHIRLPOOL 99ebb5d16527958f9c8ba149dcda1e37189581d0d96ee1f3d9102846e49a74033cb23c67ac5a0b927e319cf4b75c55b9aadc75c2f825ecb541090af5316ec46e
diff --git a/dev-java/pdfbox/metadata.xml b/dev-java/pdfbox/metadata.xml
new file mode 100644
index 000000000000..82ef400a70ab
--- /dev/null
+++ b/dev-java/pdfbox/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <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="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 000000000000..213188bdd96e
--- /dev/null
+++ b/dev-java/pdfbox/pdfbox-1.8.11.ebuild
@@ -0,0 +1,76 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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 ~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
+}
+
+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}
+}