diff options
| author | Maciej Barć <xgqt@gentoo.org> | 2025-09-18 21:11:02 +0200 |
|---|---|---|
| committer | Maciej Barć <xgqt@gentoo.org> | 2025-09-18 23:50:21 +0200 |
| commit | e2b155885660f8b02bd6d39404b9bae9c7eff99a (patch) | |
| tree | 166db4c62dbb62f1936aefd0aedadef2bc4d3372 /dev-lang/kotlin-bin/kotlin-bin-2.2.20.ebuild | |
| parent | fb99cc65368880c69f279a09490641c6ece0308f (diff) | |
| download | gentoo-e2b155885660f8b02bd6d39404b9bae9c7eff99a.tar.gz gentoo-e2b155885660f8b02bd6d39404b9bae9c7eff99a.tar.bz2 gentoo-e2b155885660f8b02bd6d39404b9bae9c7eff99a.zip | |
dev-lang/kotlin-bin: bump to 2.2.20
Signed-off-by: Maciej Barć <xgqt@gentoo.org>
Diffstat (limited to 'dev-lang/kotlin-bin/kotlin-bin-2.2.20.ebuild')
| -rw-r--r-- | dev-lang/kotlin-bin/kotlin-bin-2.2.20.ebuild | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/dev-lang/kotlin-bin/kotlin-bin-2.2.20.ebuild b/dev-lang/kotlin-bin/kotlin-bin-2.2.20.ebuild new file mode 100644 index 000000000000..5efa76704267 --- /dev/null +++ b/dev-lang/kotlin-bin/kotlin-bin-2.2.20.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 +} |
