From 5424ae7d183c99806f3361207d4f3ba2bfa6ef71 Mon Sep 17 00:00:00 2001 From: Maciej Barć Date: Mon, 12 Feb 2024 00:14:57 +0100 Subject: dev-lang/closure-compiler-bin: bump to EAPI 8; tweaks MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Maciej Barć --- .../closure-compiler-bin-20211107-r1.ebuild | 43 ++++++++++++++++++++++ .../closure-compiler-bin-20211107.ebuild | 38 ------------------- 2 files changed, 43 insertions(+), 38 deletions(-) create mode 100644 dev-lang/closure-compiler-bin/closure-compiler-bin-20211107-r1.ebuild delete mode 100644 dev-lang/closure-compiler-bin/closure-compiler-bin-20211107.ebuild (limited to 'dev-lang') diff --git a/dev-lang/closure-compiler-bin/closure-compiler-bin-20211107-r1.ebuild b/dev-lang/closure-compiler-bin/closure-compiler-bin-20211107-r1.ebuild new file mode 100644 index 000000000000..1790b462aa70 --- /dev/null +++ b/dev-lang/closure-compiler-bin/closure-compiler-bin-20211107-r1.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit java-pkg-2 + +MY_PN="${PN%-bin}" +MY_P="${MY_PN}-v${PV}" + +DESCRIPTION="JavaScript optimizing compiler" +HOMEPAGE="https://developers.google.com/closure/compiler/ + https://github.com/google/closure-compiler/" +SRC_URI="https://repo1.maven.org/maven2/com/google/javascript/${MY_PN}/v${PV}/${MY_P}.jar" +S="${WORKDIR}" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND=" + >=virtual/jre-1.8:* +" + +src_unpack() { + : +} + +src_compile() { + : +} + +src_install() { + java-pkg_jarinto "/opt/${PN}-${SLOT}/lib" + java-pkg_newjar "${DISTDIR}/${MY_P}.jar" "${PN}.jar" + + local -a dolauncher_opts=( + "${MY_PN}" + --jar "/opt/${PN}-${SLOT}/lib/${PN}.jar" + -into /opt + ) + java-pkg_dolauncher "${dolauncher_opts[@]}" +} diff --git a/dev-lang/closure-compiler-bin/closure-compiler-bin-20211107.ebuild b/dev-lang/closure-compiler-bin/closure-compiler-bin-20211107.ebuild deleted file mode 100644 index caecdb89ffdd..000000000000 --- a/dev-lang/closure-compiler-bin/closure-compiler-bin-20211107.ebuild +++ /dev/null @@ -1,38 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -inherit java-pkg-2 - -MY_PN="${PN%-bin}" -MY_P="${MY_PN}-v${PV}" - -DESCRIPTION="JavaScript optimizing compiler" -HOMEPAGE="https://developers.google.com/closure/compiler/ https://github.com/google/closure-compiler" -SRC_URI="https://repo1.maven.org/maven2/com/google/javascript/${MY_PN}/v${PV}/${MY_P}.jar" - -LICENSE="Apache-2.0" -SLOT="0" -KEYWORDS="~amd64 ~x86" - -RDEPEND=">=virtual/jre-1.8" - -S="${WORKDIR}" - -src_unpack() { - : -} - -src_compile() { - : -} - -src_install() { - java-pkg_jarinto /opt/${PN}-${SLOT}/lib - java-pkg_newjar "${DISTDIR}"/${MY_P}.jar ${PN}.jar - java-pkg_dolauncher \ - ${MY_PN} \ - --jar /opt/${PN}-${SLOT}/lib/${PN}.jar \ - -into /opt -} -- cgit v1.2.3-65-gdbad