diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-03-11 12:45:52 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-03-11 12:45:52 +0000 |
commit | 8b4349b75818953123e2d4b80963181a9640c8e3 (patch) | |
tree | bd5d9faded1a62202daa603120c8ccd5216c79e9 /dev-lang/kotlin-bin/kotlin-bin-1.9.23.ebuild | |
parent | e96f09a840f1ac865c504febe44bad831c63750e (diff) |
gentoo auto-resync : 11:03:2024 - 12:45:51
Diffstat (limited to 'dev-lang/kotlin-bin/kotlin-bin-1.9.23.ebuild')
-rw-r--r-- | dev-lang/kotlin-bin/kotlin-bin-1.9.23.ebuild | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/dev-lang/kotlin-bin/kotlin-bin-1.9.23.ebuild b/dev-lang/kotlin-bin/kotlin-bin-1.9.23.ebuild new file mode 100644 index 000000000000..7e3629cfadfc --- /dev/null +++ b/dev-lang/kotlin-bin/kotlin-bin-1.9.23.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2024 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 +} |