From b2e9007b2cb63552f485ebc26cc06f329781ebc3 Mon Sep 17 00:00:00 2001 From: Bas Steins <592313+sebst@users.noreply.github.com> Date: Fri, 20 Sep 2024 17:38:10 +0200 Subject: [PATCH] +scala-lang.org (#7360) * +scala-lang.org * +scala-lang.org * sbt provided by scala-sbt.org --------- Co-authored-by: Jacob Heider --- projects/scala-lang.org/package.yml | 37 +++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 projects/scala-lang.org/package.yml diff --git a/projects/scala-lang.org/package.yml b/projects/scala-lang.org/package.yml new file mode 100644 index 0000000000..583632ffc8 --- /dev/null +++ b/projects/scala-lang.org/package.yml @@ -0,0 +1,37 @@ +# vendored +# distributable: +# url: https://github.com/scala/scala3/archive/refs/tags/{{ version.tag }}.tar.gz +# strip-components: 1 + +warnings: + - vendored + +interpretes: + extensions: scala + args: scala + +provides: + - bin/scalac + - bin/scala + - bin/scala-cli + - bin/sbtn + - bin/amm + - scalafmt + +versions: + github: scala/scala3 + +dependencies: + openjdk.org: '*' + +build: + dependencies: + curl.se: '*' + script: + - curl -fLo coursier https://github.com/coursier/launchers/raw/master/coursier + - chmod +x coursier + - ./coursier setup --yes --install-dir {{prefix}}/bin + - ./coursier install scala:{{version}} scalac:{{version}} --install-dir {{prefix}}/bin + - ./coursier install scala-cli sbtn scalafmt --install-dir {{prefix}}/bin + +test: scalac -version | grep {{version}}