commit:     953e4d13d51e6b640e655e651126d453aacb959b
Author:     Maciej Barć <xgqt <AT> gentoo <DOT> org>
AuthorDate: Sat Aug 16 16:14:08 2025 +0000
Commit:     Maciej Barć <xgqt <AT> gentoo <DOT> org>
CommitDate: Sat Aug 16 22:08:43 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=953e4d13

dev-lang/kotlin-bin: bump to 2.2.10

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

 dev-lang/kotlin-bin/Manifest                 |  1 +
 dev-lang/kotlin-bin/kotlin-bin-2.2.10.ebuild | 59 ++++++++++++++++++++++++++++
 2 files changed, 60 insertions(+)

diff --git a/dev-lang/kotlin-bin/Manifest b/dev-lang/kotlin-bin/Manifest
index 705ebbc1692a..bb09d650e93a 100644
--- a/dev-lang/kotlin-bin/Manifest
+++ b/dev-lang/kotlin-bin/Manifest
@@ -1 +1,2 @@
 DIST kotlin-compiler-2.2.0.zip 78044187 BLAKE2B 
cc2520d0b93299c715b6be809c94ef0ce2e52f69687429f7e8e1f3fefa9e2e951748b8b0cbef40e51bf47a849210e9e064048707b133a8180c14215c0e763bc5
 SHA512 
3d5c25cc34e1b916646a1fc5ad8428df52136034fe03e95dcb2b0682eaecb8eeeaf3720422a415872514326e26bb84bb9f6ea46ac5926a77109f56c8421db3e7
+DIST kotlin-compiler-2.2.10.zip 78048449 BLAKE2B 
88ea852505ec086c64c7b1f7debc2dd7b470e1d230b1b4170e763f1487c642b21d505f06ce751a5836153efe212c3288ec493a3147e6ba09bb2b92216652e5de
 SHA512 
cd8264caeebfc909e8895fd72e91ecf4f8e041d758d6dbda2b221849a28760eb33a5dad6e226eefc8f3b7b95863766fcae4e2681ca5b048c2c6778610497ba94

diff --git a/dev-lang/kotlin-bin/kotlin-bin-2.2.10.ebuild 
b/dev-lang/kotlin-bin/kotlin-bin-2.2.10.ebuild
new file mode 100644
index 000000000000..5efa76704267
--- /dev/null
+++ b/dev-lang/kotlin-bin/kotlin-bin-2.2.10.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
+}

Reply via email to