From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id B6B04158030 for ; Wed, 1 Mar 2023 07:17:36 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id BECD5E05C1; Wed, 1 Mar 2023 07:17:35 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id AA131E05C1 for ; Wed, 1 Mar 2023 07:17:35 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 8F5A2340CC0 for ; Wed, 1 Mar 2023 07:17:34 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 075E58C7 for ; Wed, 1 Mar 2023 07:17:32 +0000 (UTC) From: "Miroslav Šulc" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Miroslav Šulc" Message-ID: <1677655046.d1d003671a518b454608ec4e2aed248dae13a6e0.fordfrog@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-java/javahelp/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-java/javahelp/javahelp-2.0.05_p20170719-r3.ebuild X-VCS-Directories: dev-java/javahelp/ X-VCS-Committer: fordfrog X-VCS-Committer-Name: Miroslav Šulc X-VCS-Revision: d1d003671a518b454608ec4e2aed248dae13a6e0 X-VCS-Branch: master Date: Wed, 1 Mar 2023 07:17:32 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 75d85733-c00f-4608-a53f-4d6aa6585d68 X-Archives-Hash: 54bcd89ba2c920acd885c65026bc72b7 commit: d1d003671a518b454608ec4e2aed248dae13a6e0 Author: Volkmar W. Pogatzki pogatzki net> AuthorDate: Tue Feb 28 09:07:02 2023 +0000 Commit: Miroslav Šulc gentoo org> CommitDate: Wed Mar 1 07:17:26 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d1d00367 dev-java/javahelp: use javax-{jsp,servlet}-api instead of tomcat-* - min jre-1.8:* - drops keywords, dependencies are not yet keyworded. Signed-off-by: Volkmar W. Pogatzki pogatzki.net> Closes: https://github.com/gentoo/gentoo/pull/29851 Signed-off-by: Miroslav Šulc gentoo.org> .../javahelp/javahelp-2.0.05_p20170719-r3.ebuild | 73 ++++++++++++++++++++++ 1 file changed, 73 insertions(+) diff --git a/dev-java/javahelp/javahelp-2.0.05_p20170719-r3.ebuild b/dev-java/javahelp/javahelp-2.0.05_p20170719-r3.ebuild new file mode 100644 index 000000000000..22bd218ccce3 --- /dev/null +++ b/dev-java/javahelp/javahelp-2.0.05_p20170719-r3.ebuild @@ -0,0 +1,73 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +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" + +CDEPEND=" + dev-java/javax-jsp-api:2.0 + dev-java/javax-servlet-api:2.5 +" + +RDEPEND=">=virtual/jre-1.8:* + ${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_getjars javax-servlet-api-2.5) \ + jsp_jar=$(java-pkg_getjars javax-jsp-api-2.0) + + 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 +}