Gentoo Archives: gentoo-commits

From: "Miroslav Šulc" <fordfrog@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-java/jempbox/
Date: Tue, 29 Oct 2019 22:26:09
Message-Id: 1572387961.a36ac30e1b2b7cfa5b64e600f42e112ea635f9ed.fordfrog@gentoo
1 commit: a36ac30e1b2b7cfa5b64e600f42e112ea635f9ed
2 Author: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
3 AuthorDate: Tue Oct 29 22:25:04 2019 +0000
4 Commit: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
5 CommitDate: Tue Oct 29 22:26:01 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a36ac30e
7
8 dev-java/jempbox: jdk and eapi upgrade
9
10 Package-Manager: Portage-2.3.78, Repoman-2.3.17
11 Signed-off-by: Miroslav Šulc <fordfrog <AT> gentoo.org>
12
13 dev-java/jempbox/jempbox-1.7.1-r1.ebuild | 47 +++++++++++++++++++++++++++++++
14 dev-java/jempbox/jempbox-1.8.11-r1.ebuild | 45 +++++++++++++++++++++++++++++
15 2 files changed, 92 insertions(+)
16
17 diff --git a/dev-java/jempbox/jempbox-1.7.1-r1.ebuild b/dev-java/jempbox/jempbox-1.7.1-r1.ebuild
18 new file mode 100644
19 index 00000000000..74126da57f9
20 --- /dev/null
21 +++ b/dev-java/jempbox/jempbox-1.7.1-r1.ebuild
22 @@ -0,0 +1,47 @@
23 +# Copyright 1999-2019 Gentoo Authors
24 +# Distributed under the terms of the GNU General Public License v2
25 +
26 +EAPI=7
27 +
28 +JAVA_PKG_IUSE="doc source test"
29 +
30 +inherit java-pkg-2 java-ant-2
31 +
32 +MY_PN=pdfbox
33 +
34 +DESCRIPTION="An open source Java library for parsing font files"
35 +HOMEPAGE="https://pdfbox.apache.org/"
36 +SRC_URI="mirror://apache/${MY_PN}/${PV}/${MY_PN}-${PV}-src.zip"
37 +
38 +LICENSE="BSD"
39 +SLOT="1.7"
40 +KEYWORDS="~amd64 ~x86"
41 +IUSE=""
42 +
43 +RDEPEND="
44 + >=virtual/jre-1.8"
45 +DEPEND="
46 + >=virtual/jdk-1.8
47 + app-arch/unzip
48 + test? ( dev-java/ant-junit:0 )"
49 +
50 +S="${WORKDIR}/${MY_PN}-${PV}/${PN}"
51 +
52 +src_prepare() {
53 + default
54 +
55 + cp -v "${FILESDIR}"/${P}_maven-build.xml build.xml || die
56 +}
57 +
58 +JAVA_ANT_REWRITE_CLASSPATH="yes"
59 +
60 +src_test() {
61 + java-pkg-2_src_test
62 +}
63 +
64 +src_install() {
65 + java-pkg_newjar target/${P}.jar ${PN}.jar
66 +
67 + use doc && java-pkg_dojavadoc target/site/apidocs
68 + use source && java-pkg_dosrc src/main/java/org
69 +}
70
71 diff --git a/dev-java/jempbox/jempbox-1.8.11-r1.ebuild b/dev-java/jempbox/jempbox-1.8.11-r1.ebuild
72 new file mode 100644
73 index 00000000000..65c154444a2
74 --- /dev/null
75 +++ b/dev-java/jempbox/jempbox-1.8.11-r1.ebuild
76 @@ -0,0 +1,45 @@
77 +# Copyright 1999-2019 Gentoo Authors
78 +# Distributed under the terms of the GNU General Public License v2
79 +
80 +EAPI=7
81 +
82 +MY_PN="pdfbox"
83 +MY_P="${MY_PN}-${PV}"
84 +
85 +JAVA_PKG_IUSE="doc source"
86 +
87 +inherit java-pkg-2 java-pkg-simple
88 +
89 +DESCRIPTION="An open source Java library for working with XMP metadata"
90 +HOMEPAGE="https://pdfbox.apache.org/"
91 +SRC_URI="mirror://apache/${MY_PN}/${PV}/${MY_P}-src.zip"
92 +LICENSE="Apache-2.0"
93 +SLOT="1.8"
94 +KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86"
95 +IUSE="test"
96 +
97 +RDEPEND=">=virtual/jre-1.8"
98 +
99 +DEPEND=">=virtual/jdk-1.8
100 + app-arch/unzip
101 + test? ( dev-java/junit:4 )"
102 +
103 +S="${WORKDIR}/${MY_P}/${PN}"
104 +JAVA_SRC_DIR="src/main/java"
105 +
106 +src_install() {
107 + java-pkg-simple_src_install
108 + dodoc README.txt
109 +}
110 +
111 +src_test() {
112 + local DIR=src/test/java
113 + local CP="${DIR}:${PN}.jar:$(java-pkg_getjars junit-4)"
114 + local TESTS=$(find ${DIR} -name "*Test.java")
115 + TESTS="${TESTS//src\/test\/java\/}"
116 + TESTS="${TESTS//.java}"
117 + TESTS="${TESTS//\//.}"
118 +
119 + ejavac -cp "${CP}" -d ${DIR} $(find ${DIR} -name "*.java")
120 + ejunit4 -classpath "${CP}" ${TESTS}
121 +}