commit:     e9a14615bd706c927375582edc822f8410828e91
Author:     Maciej Barć <xgqt <AT> gentoo <DOT> org>
AuthorDate: Sun Feb 11 23:18:19 2024 +0000
Commit:     Maciej Barć <xgqt <AT> gentoo <DOT> org>
CommitDate: Sun Feb 11 23:23:13 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e9a14615

dev-lang/closure-compiler-bin: bump to 20231112

Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org>

 dev-lang/closure-compiler-bin/Manifest             |  1 +
 .../closure-compiler-bin-20231112.ebuild           | 43 ++++++++++++++++++++++
 2 files changed, 44 insertions(+)

diff --git a/dev-lang/closure-compiler-bin/Manifest 
b/dev-lang/closure-compiler-bin/Manifest
index 6b07424dc362..9700fdf735d6 100644
--- a/dev-lang/closure-compiler-bin/Manifest
+++ b/dev-lang/closure-compiler-bin/Manifest
@@ -1 +1,2 @@
 DIST closure-compiler-v20211107.jar 13141765 BLAKE2B 
0875fe9cc1963383185d387311ca693857c31cd811605a0896b331ebee92a10bda6182dc6d9b9f4e097b68da278764c56237f398e0042f16a30dea04428d6694
 SHA512 
6fda64ba9233874acd910f3579397b957667e0a19dcc9884cd1c5ed6087b5d2ae66093ac43d0381611a3adeb02be59a750c98704bda481be1b30601c8138aeb1
+DIST closure-compiler-v20231112.jar 14084315 BLAKE2B 
e56777723c2c306d8c7ddb700778bc2cea9c96967f17d78e4e3dc31e9dcf1debe73ec6ff1b54b1b89f7407add12c3c16ebe4111b397bfca85d695278744db69f
 SHA512 
e07ff9f57cf7672a79bc72fc8d5f447134df3009b72e50b7bbba644ebb6cbc080b3870f0dd7a47aa85a0b7d1b2e26bbeb0b4d057864e3d29fb5249c1ec8e3e13

diff --git a/dev-lang/closure-compiler-bin/closure-compiler-bin-20231112.ebuild 
b/dev-lang/closure-compiler-bin/closure-compiler-bin-20231112.ebuild
new file mode 100644
index 000000000000..1790b462aa70
--- /dev/null
+++ b/dev-lang/closure-compiler-bin/closure-compiler-bin-20231112.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[@]}"
+}

Reply via email to