summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrice Clement <monsieurp@gentoo.org>2018-05-27 22:56:05 +0200
committerPatrice Clement <monsieurp@gentoo.org>2018-05-27 23:02:42 +0200
commit0d5d226dbd47d6855c5bd1a91839f482561d9877 (patch)
tree4a7addd173580b5df42f403a45d667d812dc2b4e /dev-java/fontbox/fontbox-1.7.1-r1.ebuild
parentxfce-base/xfce4-settings: ppc stable wrt bug #651490 (diff)
downloadgentoo-0d5d226dbd47d6855c5bd1a91839f482561d9877.tar.gz
gentoo-0d5d226dbd47d6855c5bd1a91839f482561d9877.tar.bz2
gentoo-0d5d226dbd47d6855c5bd1a91839f482561d9877.zip
dev-java/fontbox: EAPI 6 bump.
Package-Manager: Portage-2.3.24, Repoman-2.3.6
Diffstat (limited to 'dev-java/fontbox/fontbox-1.7.1-r1.ebuild')
-rw-r--r--dev-java/fontbox/fontbox-1.7.1-r1.ebuild50
1 files changed, 50 insertions, 0 deletions
diff --git a/dev-java/fontbox/fontbox-1.7.1-r1.ebuild b/dev-java/fontbox/fontbox-1.7.1-r1.ebuild
new file mode 100644
index 000000000000..bbbafd445aea
--- /dev/null
+++ b/dev-java/fontbox/fontbox-1.7.1-r1.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+JAVA_PKG_IUSE="doc source test"
+
+inherit java-pkg-2 java-ant-2
+
+MY_PN="pdfbox"
+MY_P="${MY_PN}-${PV}"
+
+DESCRIPTION="An open source Java library for parsing font files"
+HOMEPAGE="https://pdfbox.apache.org/"
+SRC_URI="https://archive.apache.org/dist/pdfbox/${PV}/${MY_P}-src.zip -> ${P}.zip"
+
+LICENSE="BSD"
+SLOT="1.7"
+KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86 ~x64-macos"
+
+RDEPEND="
+ >=virtual/jre-1.6"
+
+DEPEND="
+ >=virtual/jdk-1.6
+ test? (
+ dev-java/ant-junit:0
+ dev-java/junit:4
+ )"
+
+S="${WORKDIR}/${MY_P}/${PN}"
+
+JAVA_ANT_REWRITE_CLASSPATH="yes"
+EANT_TEST_GENTOO_CLASSPATH="junit-4"
+
+src_prepare() {
+ default
+ cp -v "${FILESDIR}"/${P}_maven-build.xml build.xml || die
+}
+
+src_test() {
+ java-pkg-2_src_test
+}
+
+src_install() {
+ java-pkg_newjar target/${P}.jar ${PN}.jar
+
+ use doc && java-pkg_dojavadoc target/site/apidocs
+ use source && java-pkg_dosrc src/main/java/org
+}