commit: 8849ff9172a260fe19613160b9aa806c4cceb2e1 Author: Maciej Barć <xgqt <AT> gentoo <DOT> org> AuthorDate: Thu Jun 26 22:25:16 2025 +0000 Commit: Maciej Barć <xgqt <AT> gentoo <DOT> org> CommitDate: Fri Jun 27 00:52:36 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8849ff91
dev-lang/kotlin-bin: bump to 2.2.0 Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org> dev-lang/kotlin-bin/Manifest | 1 + dev-lang/kotlin-bin/kotlin-bin-2.2.0.ebuild | 59 +++++++++++++++++++++++++++++ 2 files changed, 60 insertions(+) diff --git a/dev-lang/kotlin-bin/Manifest b/dev-lang/kotlin-bin/Manifest index 6119159a6969..8e26060adfb8 100644 --- a/dev-lang/kotlin-bin/Manifest +++ b/dev-lang/kotlin-bin/Manifest @@ -1,2 +1,3 @@ DIST kotlin-compiler-2.1.20.zip 86919262 BLAKE2B aef3c25f0443e01c437bd354683d0a019eb83988366f0bc68eaf173e7d740a108f183db3bbc4891a552156e8aad7779155da88c13f54fd5d2b79d246f670416d SHA512 6f11a90ff16cd88f3f1a16bb3dd13673d9de02caa280abd080bff2af576c24004f7cff66fcc1e99f8bd5d51010468ae9d18a5191091ab779450bac9adc0e0263 DIST kotlin-compiler-2.1.21.zip 86162444 BLAKE2B f527f9f6de06ea82963b0582443df421fdb969d00c4c2d0fadac535b311fad03f8e1aeb85ac78e47c0b27b36e225f1135988aeca4512b7d52e87b276100eb60c SHA512 6b1f85bc3f02fbba654aa3779f3b94f5d3d73e83ef66647f05ba0d7fc941fd1d90caaff0edf16f49a8d5082ee94d446c84e0c95390b0989bb554da2aaacd05fb +DIST kotlin-compiler-2.2.0.zip 78044187 BLAKE2B cc2520d0b93299c715b6be809c94ef0ce2e52f69687429f7e8e1f3fefa9e2e951748b8b0cbef40e51bf47a849210e9e064048707b133a8180c14215c0e763bc5 SHA512 3d5c25cc34e1b916646a1fc5ad8428df52136034fe03e95dcb2b0682eaecb8eeeaf3720422a415872514326e26bb84bb9f6ea46ac5926a77109f56c8421db3e7 diff --git a/dev-lang/kotlin-bin/kotlin-bin-2.2.0.ebuild b/dev-lang/kotlin-bin/kotlin-bin-2.2.0.ebuild new file mode 100644 index 000000000000..5efa76704267 --- /dev/null +++ b/dev-lang/kotlin-bin/kotlin-bin-2.2.0.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 +}
