Gentoo Archives: gentoo-commits

From: Florian Schmaus <flow@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-java/javahelp/
Date: Mon, 09 May 2022 19:13:27
Message-Id: 1652123600.00be693d25c9f34657f940befca45f6630e088b1.flow@gentoo
1 commit: 00be693d25c9f34657f940befca45f6630e088b1
2 Author: Volkmar W. Pogatzki <gentoo <AT> pogatzki <DOT> net>
3 AuthorDate: Sat May 7 11:13:36 2022 +0000
4 Commit: Florian Schmaus <flow <AT> gentoo <DOT> org>
5 CommitDate: Mon May 9 19:13:20 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=00be693d
7
8 dev-java/javahelp: update EAPI 6 -> 8
9
10 Signed-off-by: Volkmar W. Pogatzki <gentoo <AT> pogatzki.net>
11 Signed-off-by: Florian Schmaus <flow <AT> gentoo.org>
12
13 .../javahelp/javahelp-2.0.05_p20170719-r1.ebuild | 70 ++++++++++++++++++++++
14 1 file changed, 70 insertions(+)
15
16 diff --git a/dev-java/javahelp/javahelp-2.0.05_p20170719-r1.ebuild b/dev-java/javahelp/javahelp-2.0.05_p20170719-r1.ebuild
17 new file mode 100644
18 index 000000000000..bfedce9fba1b
19 --- /dev/null
20 +++ b/dev-java/javahelp/javahelp-2.0.05_p20170719-r1.ebuild
21 @@ -0,0 +1,70 @@
22 +# Copyright 1999-2022 Gentoo Authors
23 +# Distributed under the terms of the GNU General Public License v2
24 +
25 +EAPI=8
26 +
27 +COMMIT="3ca862d8626096770598a3a256886d205246f4a4"
28 +JAVA_PKG_IUSE="examples source"
29 +
30 +inherit java-pkg-2 java-ant-2
31 +
32 +DESCRIPTION="The JavaHelp system online help system"
33 +HOMEPAGE="https://javaee.github.io/javahelp/"
34 +SRC_URI="https://github.com/javaee/${PN}/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
35 +
36 +LICENSE="GPL-2-with-linking-exception"
37 +SLOT="0"
38 +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris"
39 +
40 +CDEPEND="java-virtuals/servlet-api:2.4"
41 +
42 +RDEPEND=">=virtual/jre-1.4
43 + ${CDEPEND}"
44 +
45 +DEPEND="virtual/jdk:1.8
46 + ${CDEPEND}"
47 +
48 +JAVA_PKG_NV_DEPEND="virtual/jdk:1.8"
49 +
50 +S="${WORKDIR}/${PN}-${COMMIT}"
51 +
52 +_eant() {
53 + local \
54 + servlet_jar=$(java-pkg_getjar --virtual servlet-api-2.4 servlet-api.jar) \
55 + jsp_jar=$(java-pkg_getjar --virtual servlet-api-2.4 jsp-api.jar)
56 +
57 + eant \
58 + -f javahelp_nbproject/build.xml \
59 + -Dfile.reference.servlet-api.jar="${servlet_jar}" \
60 + -Dfile.reference.jsp-api.jar="${jsp_jar}" \
61 + -Dservlet-jar="${servlet_jar}" \
62 + -Djsp-jar="${jsp_jar}" \
63 + -Dservlet-jar-present=true \
64 + -Djsp-jar-present=true \
65 + -Dtomcat-zip-present=true \
66 + ${@}
67 +}
68 +
69 +src_compile() {
70 + _eant release
71 +}
72 +
73 +#Does not actually run anything
74 +#src_test() {
75 +# _eant test
76 +#}
77 +
78 +src_install() {
79 + java-pkg_dojar javahelp_nbproject/dist/lib/*.jar
80 +
81 + java-pkg_dolauncher jhsearch \
82 + --main com.sun.java.help.search.QueryEngine
83 + java-pkg_dolauncher jhindexer \
84 + --main com.sun.java.help.search.Indexer
85 +
86 + use source && java-pkg_dosrc \
87 + jhMaster/JSearch/*/com \
88 + jhMaster/JavaHelp/src/*/{javax,com}
89 +
90 + use examples && java-pkg_doexamples jhMaster/JavaHelp/demos
91 +}