1 |
commit: d1d003671a518b454608ec4e2aed248dae13a6e0 |
2 |
Author: Volkmar W. Pogatzki <gentoo <AT> pogatzki <DOT> net> |
3 |
AuthorDate: Tue Feb 28 09:07:02 2023 +0000 |
4 |
Commit: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Mar 1 07:17:26 2023 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d1d00367 |
7 |
|
8 |
dev-java/javahelp: use javax-{jsp,servlet}-api instead of tomcat-* |
9 |
|
10 |
- min jre-1.8:* |
11 |
- drops keywords, dependencies are not yet keyworded. |
12 |
|
13 |
Signed-off-by: Volkmar W. Pogatzki <gentoo <AT> pogatzki.net> |
14 |
Closes: https://github.com/gentoo/gentoo/pull/29851 |
15 |
Signed-off-by: Miroslav Šulc <fordfrog <AT> gentoo.org> |
16 |
|
17 |
.../javahelp/javahelp-2.0.05_p20170719-r3.ebuild | 73 ++++++++++++++++++++++ |
18 |
1 file changed, 73 insertions(+) |
19 |
|
20 |
diff --git a/dev-java/javahelp/javahelp-2.0.05_p20170719-r3.ebuild b/dev-java/javahelp/javahelp-2.0.05_p20170719-r3.ebuild |
21 |
new file mode 100644 |
22 |
index 000000000000..22bd218ccce3 |
23 |
--- /dev/null |
24 |
+++ b/dev-java/javahelp/javahelp-2.0.05_p20170719-r3.ebuild |
25 |
@@ -0,0 +1,73 @@ |
26 |
+# Copyright 1999-2023 Gentoo Authors |
27 |
+# Distributed under the terms of the GNU General Public License v2 |
28 |
+ |
29 |
+EAPI=8 |
30 |
+ |
31 |
+COMMIT="3ca862d8626096770598a3a256886d205246f4a4" |
32 |
+JAVA_PKG_IUSE="examples source" |
33 |
+ |
34 |
+inherit java-pkg-2 java-ant-2 |
35 |
+ |
36 |
+DESCRIPTION="The JavaHelp system online help system" |
37 |
+HOMEPAGE="https://javaee.github.io/javahelp/" |
38 |
+SRC_URI="https://github.com/javaee/${PN}/archive/${COMMIT}.tar.gz -> ${P}.tar.gz" |
39 |
+ |
40 |
+LICENSE="GPL-2-with-linking-exception" |
41 |
+SLOT="0" |
42 |
+KEYWORDS="~amd64" |
43 |
+ |
44 |
+CDEPEND=" |
45 |
+ dev-java/javax-jsp-api:2.0 |
46 |
+ dev-java/javax-servlet-api:2.5 |
47 |
+" |
48 |
+ |
49 |
+RDEPEND=">=virtual/jre-1.8:* |
50 |
+ ${CDEPEND}" |
51 |
+ |
52 |
+DEPEND="virtual/jdk:1.8 |
53 |
+ ${CDEPEND}" |
54 |
+ |
55 |
+JAVA_PKG_NV_DEPEND="virtual/jdk:1.8" |
56 |
+ |
57 |
+S="${WORKDIR}/${PN}-${COMMIT}" |
58 |
+ |
59 |
+_eant() { |
60 |
+ local \ |
61 |
+ servlet_jar=$(java-pkg_getjars javax-servlet-api-2.5) \ |
62 |
+ jsp_jar=$(java-pkg_getjars javax-jsp-api-2.0) |
63 |
+ |
64 |
+ eant \ |
65 |
+ -f javahelp_nbproject/build.xml \ |
66 |
+ -Dfile.reference.servlet-api.jar="${servlet_jar}" \ |
67 |
+ -Dfile.reference.jsp-api.jar="${jsp_jar}" \ |
68 |
+ -Dservlet-jar="${servlet_jar}" \ |
69 |
+ -Djsp-jar="${jsp_jar}" \ |
70 |
+ -Dservlet-jar-present=true \ |
71 |
+ -Djsp-jar-present=true \ |
72 |
+ -Dtomcat-zip-present=true \ |
73 |
+ ${@} |
74 |
+} |
75 |
+ |
76 |
+src_compile() { |
77 |
+ _eant release |
78 |
+} |
79 |
+ |
80 |
+#Does not actually run anything |
81 |
+#src_test() { |
82 |
+# _eant test |
83 |
+#} |
84 |
+ |
85 |
+src_install() { |
86 |
+ java-pkg_dojar javahelp_nbproject/dist/lib/*.jar |
87 |
+ |
88 |
+ java-pkg_dolauncher jhsearch \ |
89 |
+ --main com.sun.java.help.search.QueryEngine |
90 |
+ java-pkg_dolauncher jhindexer \ |
91 |
+ --main com.sun.java.help.search.Indexer |
92 |
+ |
93 |
+ use source && java-pkg_dosrc \ |
94 |
+ jhMaster/JSearch/*/com \ |
95 |
+ jhMaster/JavaHelp/src/*/{javax,com} |
96 |
+ |
97 |
+ use examples && java-pkg_doexamples jhMaster/JavaHelp/demos |
98 |
+} |