From 086cc6027cac76ff063ff0712493bb50f86f4d41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20Bar=C4=87?= Date: Thu, 23 Oct 2025 20:38:03 +0200 Subject: [PATCH] dev-lang/kotlin-bin: bump to 2.2.21 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Maciej Barć --- dev-lang/kotlin-bin/Manifest | 1 + dev-lang/kotlin-bin/kotlin-bin-2.2.21.ebuild | 59 ++++++++++++++++++++ 2 files changed, 60 insertions(+) create mode 100644 dev-lang/kotlin-bin/kotlin-bin-2.2.21.ebuild diff --git a/dev-lang/kotlin-bin/Manifest b/dev-lang/kotlin-bin/Manifest index db264c1ba985b..e7b7064102816 100644 --- a/dev-lang/kotlin-bin/Manifest +++ b/dev-lang/kotlin-bin/Manifest @@ -1 +1,2 @@ DIST kotlin-compiler-2.2.20.zip 78709601 BLAKE2B 926e86639d4a668b1a48f367845a08281c8d32a69dc2c986af6f469e18e3745481c484e9f286d407f2ff771f5cd8a820ccda67ab3701277f071acc3d132d15ef SHA512 726ea63499893d444b6852ff861a54e4951e6f423e0fca9c140a020cfd91974cabba3de2602a3d93f14a57008565e03508ac29f9c1298bdbefba6f4910edbde8 +DIST kotlin-compiler-2.2.21.zip 78710880 BLAKE2B cd28a7e43811ce2f42594d604759f217c29b959c7e848b921d2a114b79d62d968aa6a9972e3c53f4a9a7828148766d1a5586fddd9c54c120bc8ba6fcf4548598 SHA512 8c6494f53d205a0baab64eeeda7b60dd4d3c5aae6f51f6ba62eed727e92252ffb40fa68cf4b2db8aca2ce534e2866d0ae743e787815b0af1e030c453e3af9899 diff --git a/dev-lang/kotlin-bin/kotlin-bin-2.2.21.ebuild b/dev-lang/kotlin-bin/kotlin-bin-2.2.21.ebuild new file mode 100644 index 0000000000000..5efa76704267e --- /dev/null +++ b/dev-lang/kotlin-bin/kotlin-bin-2.2.21.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit java-pkg-2 wrapper + +DESCRIPTION="Statically typed language that targets the JVM and JavaScript" +HOMEPAGE="https://kotlinlang.org/ + https://github.com/JetBrains/kotlin/" +SRC_URI="https://github.com/JetBrains/kotlin/releases/download/v${PV}/kotlin-compiler-${PV}.zip" +S="${WORKDIR}/kotlinc" + +LICENSE="Apache-2.0 BSD MIT NPL-1.1" +SLOT="0/${PV}" +KEYWORDS="~amd64 ~x86" + +RDEPEND=" + >=virtual/jre-1.8:* +" +DEPEND=" + >=virtual/jdk-1.8:* +" +BDEPEND=" + app-arch/unzip +" + +src_prepare() { + default + + rm bin/*.bat || die +} + +src_compile() { + : +} + +src_install() { + java-pkg_dojar lib/* + + # Follow the Java eclass JAR installation path. + local app_home="/usr/share/${PN}" + + exeinto "${app_home}/bin" + doexe bin/* + + local -a exes=( + kapt + kotlin + kotlinc + kotlinc-js + kotlinc-jvm + kotlin-dce-js + ) + local exe + for exe in "${exes[@]}" ; do + make_wrapper "${exe}" "${app_home}/bin/${exe}" + done +}