summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolkmar W. Pogatzki <gentoo@pogatzki.net>2024-07-16 11:25:31 +0200
committerMiroslav Šulc <fordfrog@gentoo.org>2024-08-08 12:24:44 +0200
commit9bcc97ab5311bf2326f92aff61400ba16386729a (patch)
treec4b91079c4148ff47a345ea49aef15e47f97c51c
parentdev-python/PyQt6: Stabilize 6.7.1-r1 amd64, #937544 (diff)
downloadgentoo-9bcc97ab5311bf2326f92aff61400ba16386729a.tar.gz
gentoo-9bcc97ab5311bf2326f92aff61400ba16386729a.tar.bz2
gentoo-9bcc97ab5311bf2326f92aff61400ba16386729a.zip
dev-java/javahelp: rewrite with java-pkg-simple
Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Closes: https://github.com/gentoo/gentoo/pull/37592 Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
-rw-r--r--dev-java/javahelp/javahelp-2.0.05_p20170719-r4.ebuild56
1 files changed, 56 insertions, 0 deletions
diff --git a/dev-java/javahelp/javahelp-2.0.05_p20170719-r4.ebuild b/dev-java/javahelp/javahelp-2.0.05_p20170719-r4.ebuild
new file mode 100644
index 000000000000..453dcfef7068
--- /dev/null
+++ b/dev-java/javahelp/javahelp-2.0.05_p20170719-r4.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+JAVA_PKG_IUSE="doc examples source"
+
+inherit java-pkg-2 java-pkg-simple
+
+DESCRIPTION="The JavaHelp system online help system"
+HOMEPAGE="https://javaee.github.io/javahelp/"
+COMMIT="3ca862d8626096770598a3a256886d205246f4a4"
+SRC_URI="https://github.com/javaee/${PN}/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
+S="${WORKDIR}/${PN}-${COMMIT}"
+
+LICENSE="GPL-2-with-linking-exception"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+CP_DEPEND="
+ dev-java/javax-jsp-api:2.0
+ dev-java/javax-servlet-api:2.5
+"
+
+DEPEND="${CP_DEPEND}
+ virtual/jdk:1.8"
+
+RDEPEND="${CP_DEPEND}
+ >=virtual/jre-1.8:*"
+
+JAVA_JAR_FILENAME="jhall.jar"
+JAVA_GENTOO_CLASSPATH_EXTRA="javahelp_nbproject/lib/jdic-stub.jar"
+JAVA_RESOURCE_DIRS="res"
+JAVA_SRC_DIR=(
+ jhMaster/JavaHelp/src/{new,impl}
+ jhMaster/JSearch/{client,indexer}
+)
+
+src_prepare() {
+ java-pkg-2_src_prepare
+ mkdir res || die
+ pushd jhMaster/JavaHelp/src/new >> /dev/null || die
+ find -type f ! -name '*.java' | xargs cp --parents -t ../../../../res || die
+ popd >> /dev/null || die
+}
+
+src_install() {
+ java-pkg-simple_src_install
+
+ java-pkg_dolauncher jhsearch \
+ --main com.sun.java.help.search.QueryEngine
+ java-pkg_dolauncher jhindexer \
+ --main com.sun.java.help.search.Indexer
+
+ use examples && java-pkg_doexamples jhMaster/JavaHelp/demos
+}