diff options
-rw-r--r-- | dev-java/fontbox/Manifest | 1 | ||||
-rw-r--r-- | dev-java/fontbox/fontbox-1.8.11.ebuild | 51 | ||||
-rw-r--r-- | dev-java/fontbox/metadata.xml | 2 |
3 files changed, 53 insertions, 1 deletions
diff --git a/dev-java/fontbox/Manifest b/dev-java/fontbox/Manifest index dd30ff28c52b..6392182d8c50 100644 --- a/dev-java/fontbox/Manifest +++ b/dev-java/fontbox/Manifest @@ -1 +1,2 @@ DIST pdfbox-1.7.1-src.zip 9167805 SHA256 805c6b893ff10216cc826aa44e7a2eaf35bb43ca8ed19896c43132d253d3145e SHA512 8b2af3d8f431626c106e4f6e9e1d59d14abcd58cfdc9553f20c5057eef9f9cfbd0287e14e58e4d34472ad81198eb3f4d0a2fd6e88bd1fa5cbcf01e4befbf77d0 WHIRLPOOL 438fcd6f2d0128b972dfd5be83b2bc455daf9f126ac5b7a6a5de8a41e29f482b462e8e48e07a21ac1e896de4daa5ffed2eee400ec96ac93fbbce25fef99b0ade +DIST pdfbox-1.8.11-src.zip 11026359 SHA256 160a2d058325845234eaa6b5ae23535b9226aadb4e570a1a76f7106a00653b1b SHA512 05c8e5075379ed5ebb09555b39434dd936fce9dd24445871d24ea7f0f6afa49e74242bf0c9eba2d1a847b505143789b687dd039ca51ce76851132f2f18d434d1 WHIRLPOOL 9f43dff9921283d074b332ef08a34b56d58fca3624b6c263029554998b0595bb8815ad91e31c7cdee17a95db0807cb88c579ec1b1f9ab724ded3f50382220880 diff --git a/dev-java/fontbox/fontbox-1.8.11.ebuild b/dev-java/fontbox/fontbox-1.8.11.ebuild new file mode 100644 index 000000000000..841f2e3d5b8e --- /dev/null +++ b/dev-java/fontbox/fontbox-1.8.11.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +MY_PN="pdfbox" +MY_P="${MY_PN}-${PV}" + +JAVA_PKG_IUSE="doc source" + +inherit java-pkg-2 java-pkg-simple + +DESCRIPTION="An open source Java library for parsing font files" +HOMEPAGE="http://pdfbox.apache.org/" +SRC_URI="mirror://apache/${MY_PN}/${PV}/${MY_P}-src.zip" +LICENSE="Apache-2.0" +SLOT="1.8" +KEYWORDS="~amd64 ~ppc64 ~x86" +IUSE="test" + +CDEPEND=">=dev-java/commons-logging-1.1.1:0" + +RDEPEND="${CDEPEND} + >=virtual/jre-1.6" + +DEPEND="${CDEPEND} + >=virtual/jdk-1.6 + app-arch/unzip + test? ( dev-java/junit:4 )" + +S="${WORKDIR}/${MY_P}/${PN}" +JAVA_SRC_DIR="src/main/java" +JAVA_GENTOO_CLASSPATH="commons-logging" + +src_install() { + java-pkg-simple_src_install + dodoc README.txt +} + +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 -cp "${CP}" -d ${DIR} $(find ${DIR} -name "*.java") + ejunit4 -classpath "${CP}" ${TESTS} +} diff --git a/dev-java/fontbox/metadata.xml b/dev-java/fontbox/metadata.xml index dfff705359d2..86f1da025abd 100644 --- a/dev-java/fontbox/metadata.xml +++ b/dev-java/fontbox/metadata.xml @@ -14,6 +14,6 @@ tiedostoista. </longdescription> <upstream> - <remote-id type="sourceforge">fontbox</remote-id> + <remote-id type="github">apache/pdfbox</remote-id> </upstream> </pkgmetadata> |