1 |
commit: 4835b780f8329b0d486455cba0bf35ceace96857 |
2 |
Author: Volkmar W. Pogatzki <gentoo <AT> pogatzki <DOT> net> |
3 |
AuthorDate: Tue Mar 30 13:37:23 2021 +0000 |
4 |
Commit: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Mar 31 08:25:31 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4835b780 |
7 |
|
8 |
dev-java/werken-xpath: EAPI 7 |
9 |
|
10 |
Package-Manager: Portage-3.0.17, Repoman-3.0.2 |
11 |
Signed-off-by: Volkmar W. Pogatzki <gentoo <AT> pogatzki.net> |
12 |
Closes: https://github.com/gentoo/gentoo/pull/20176/commits/b6914869f3afa33a8b64e2962eb31ffb1ca60a27 |
13 |
Signed-off-by: Miroslav Šulc <fordfrog <AT> gentoo.org> |
14 |
|
15 |
.../werken-xpath/werken-xpath-0.9.4_beta-r5.ebuild | 59 ++++++++++++++++++++++ |
16 |
1 file changed, 59 insertions(+) |
17 |
|
18 |
diff --git a/dev-java/werken-xpath/werken-xpath-0.9.4_beta-r5.ebuild b/dev-java/werken-xpath/werken-xpath-0.9.4_beta-r5.ebuild |
19 |
new file mode 100644 |
20 |
index 00000000000..858ddfce3f6 |
21 |
--- /dev/null |
22 |
+++ b/dev-java/werken-xpath/werken-xpath-0.9.4_beta-r5.ebuild |
23 |
@@ -0,0 +1,59 @@ |
24 |
+# Copyright 1999-2021 Gentoo Authors |
25 |
+# Distributed under the terms of the GNU General Public License v2 |
26 |
+ |
27 |
+EAPI=7 |
28 |
+ |
29 |
+JAVA_PKG_IUSE="doc source" |
30 |
+WANT_ANT_TASKS="ant-antlr" |
31 |
+ |
32 |
+inherit java-pkg-2 java-ant-2 |
33 |
+ |
34 |
+MY_PN=${PN/-/.} |
35 |
+MY_PV=${PV//_/-} |
36 |
+MY_P=${MY_PN}-${MY_PV} |
37 |
+ |
38 |
+DESCRIPTION="W3C XPath-Rec implementation for DOM4J" |
39 |
+HOMEPAGE="https://sourceforge.net/projects/werken-xpath/" |
40 |
+SRC_URI="mirror://gentoo/${MY_P}-src.tar.gz" |
41 |
+# This tarball was acquired from jpackage's src rpm of the package by the same name |
42 |
+ |
43 |
+LICENSE="JDOM" |
44 |
+SLOT="0" |
45 |
+KEYWORDS="~amd64 ~x86" |
46 |
+ |
47 |
+COMMON_DEP=" |
48 |
+ dev-java/jdom:0 |
49 |
+ >=dev-java/antlr-2.7.7-r7:0" |
50 |
+DEPEND=">=virtual/jdk-1.8:* |
51 |
+ ${COMMON_DEP}" |
52 |
+RDEPEND=">=virtual/jre-1.8:* |
53 |
+ ${COMMON_DEP}" |
54 |
+ |
55 |
+S=${WORKDIR}/${MY_PN} |
56 |
+ |
57 |
+EANT_BUILD_TARGET="package" |
58 |
+JAVA_ANT_REWRITE_CLASSPATH="yes" |
59 |
+EANT_GENTOO_CLASSPATH="antlr,jdom" |
60 |
+ |
61 |
+src_prepare() { |
62 |
+ default |
63 |
+ # Courtesy of JPackages :) |
64 |
+ eapply "${FILESDIR}"/${P}-jpp-compile.patch |
65 |
+ eapply "${FILESDIR}"/${P}-jpp-jdom.patch |
66 |
+ eapply "${FILESDIR}"/${P}-jpp-tests.patch |
67 |
+ eapply "${FILESDIR}"/${P}-gentoo.patch |
68 |
+ |
69 |
+ # API updates to support jdom-1 |
70 |
+ eapply "${FILESDIR}"/${P}-jdom-1.0.patch |
71 |
+ |
72 |
+ java-pkg_clean |
73 |
+ rm -rv lib/bin || die |
74 |
+} |
75 |
+ |
76 |
+src_install() { |
77 |
+ java-pkg_newjar build/${MY_PN}.jar |
78 |
+ |
79 |
+ dodoc README TODO LIMITATIONS |
80 |
+ use doc && java-pkg_dojavadoc build/apidocs |
81 |
+ use source && java-pkg_dosrc src/* |
82 |
+} |