blob: 4761d095147b61155bdcb8fd89476011511a061d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
COMMIT="3ca862d8626096770598a3a256886d205246f4a4"
JAVA_PKG_IUSE="examples source"
inherit java-pkg-2 java-ant-2
DESCRIPTION="The JavaHelp system online help system"
HOMEPAGE="https://javaee.github.io/javahelp/"
SRC_URI="https://github.com/javaee/${PN}/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-2-with-linking-exception"
SLOT="0"
KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris"
CDEPEND="java-virtuals/servlet-api:2.4"
RDEPEND=">=virtual/jre-1.4
${CDEPEND}"
DEPEND="virtual/jdk:1.8
${CDEPEND}"
JAVA_PKG_NV_DEPEND="virtual/jdk:1.8"
S="${WORKDIR}/${PN}-${COMMIT}"
_eant() {
local \
servlet_jar=$(java-pkg_getjar --virtual servlet-api-2.4 servlet-api.jar) \
jsp_jar=$(java-pkg_getjar --virtual servlet-api-2.4 jsp-api.jar)
eant \
-f javahelp_nbproject/build.xml \
-Dfile.reference.servlet-api.jar="${servlet_jar}" \
-Dfile.reference.jsp-api.jar="${jsp_jar}" \
-Dservlet-jar="${servlet_jar}" \
-Djsp-jar="${jsp_jar}" \
-Dservlet-jar-present=true \
-Djsp-jar-present=true \
-Dtomcat-zip-present=true \
${@}
}
src_compile() {
_eant release
}
#Does not actually run anything
#src_test() {
# _eant test
#}
src_install() {
java-pkg_dojar javahelp_nbproject/dist/lib/*.jar
java-pkg_dolauncher jhsearch \
--main com.sun.java.help.search.QueryEngine
java-pkg_dolauncher jhindexer \
--main com.sun.java.help.search.Indexer
use source && java-pkg_dosrc \
jhMaster/JSearch/*/com \
jhMaster/JavaHelp/src/*/{javax,com}
use examples && java-pkg_doexamples jhMaster/JavaHelp/demos
}
|