diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-07-26 14:59:08 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-07-26 14:59:08 +0100 |
commit | 1503b28e7a30c164cab750c27268f704b8a5cec6 (patch) | |
tree | d06a47a18b0fb792e95f88ea6e18af234eb0b9d5 /dev-lang/ammonite-repl-bin/ammonite-repl-bin-2.5.4-r1.ebuild | |
parent | 34ce8f465101950c92cb66c657d3244b5a8397db (diff) |
gentoo auto-resync : 26:07:2022 - 14:59:07
Diffstat (limited to 'dev-lang/ammonite-repl-bin/ammonite-repl-bin-2.5.4-r1.ebuild')
-rw-r--r-- | dev-lang/ammonite-repl-bin/ammonite-repl-bin-2.5.4-r1.ebuild | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/dev-lang/ammonite-repl-bin/ammonite-repl-bin-2.5.4-r1.ebuild b/dev-lang/ammonite-repl-bin/ammonite-repl-bin-2.5.4-r1.ebuild new file mode 100644 index 000000000000..7bda042dadbb --- /dev/null +++ b/dev-lang/ammonite-repl-bin/ammonite-repl-bin-2.5.4-r1.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DESCRIPTION="Scala language-based scripting and REPL" +HOMEPAGE="https://ammonite.io/" + +SRC_URI=" + scala2-13? ( https://github.com/com-lihaoyi/Ammonite/releases/download/${PV}/2.13-${PV} -> ${P}-2.13 ) + scala3-0? ( https://github.com/com-lihaoyi/Ammonite/releases/download/${PV}/3.0-${PV} -> ${P}-3.0 ) + scala3-1? ( https://github.com/com-lihaoyi/Ammonite/releases/download/${PV}/3.1-${PV} -> ${P}-3.1 ) +" + +KEYWORDS="amd64 x86" +LICENSE="MIT" +SLOT="0" + +S="${WORKDIR}" + +RDEPEND=">=virtual/jre-1.8:*" + +IUSE="+scala2-13 scala3-0 +scala3-1" +REQUIRED_USE="|| ( scala2-13 scala3-0 scala3-1 )" + +src_unpack() { + : +} + +src_install() { + local last_amm + if use scala3-1; then + newbin "${DISTDIR}"/${P}-3.1 amm-3.1 + last_amm=amm-3.1 + fi + if use scala3-0; then + newbin "${DISTDIR}"/${P}-3.0 amm-3.0 + last_amm=amm-3.0 + fi + if use scala2-13; then + newbin "${DISTDIR}"/${P}-2.13 amm-2.13 + last_amm=amm-2.13 + fi + dosym $last_amm /usr/bin/amm +} |