dev-lang/kotlin-bin: bump to 2.2.21

Signed-off-by: Maciej Barć <xgqt@gentoo.org>
This commit is contained in:
Maciej Barć
2025-10-23 20:38:03 +02:00
parent 4752176f01
commit 086cc6027c
2 changed files with 60 additions and 0 deletions

View File

@@ -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

View File

@@ -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
}