Bug 259417 - [NEW PORT] devel/scala-cli: Scala cli tool to build/package/compile/run Scala code
Summary: [NEW PORT] devel/scala-cli: Scala cli tool to build/package/compile/run Scala...
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL: https://scala-cli.virtuslab.org/
Keywords:
Depends on:
Blocks:
 
Reported: 2021-10-24 18:56 UTC by Chris
Modified: 2023-02-14 15:09 UTC (History)
1 user (show)

See Also:


Attachments
scala-cli diff to add initial support (1.58 KB, patch)
2021-10-24 18:56 UTC, Chris
no flags Details | Diff
Updated diff to add scala-cli initial support (1.61 KB, patch)
2021-10-27 17:25 UTC, Chris
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Chris 2021-10-24 18:56:34 UTC
Created attachment 229001 [details]
scala-cli diff to add initial support

scala-cli is a new project that recently had its first stable release: v0.0.7. The team that is behind this tool is the team that is maintaining the Scala 3 compiler, and the idea behind this tool is to sort of be a testing bed to test out features to either add to the official Scala cli, or this will simply become the official Scala cli. For now it's a separate tool.

https://github.com/VirtusLab/scala-cli/releases/tag/v0.0.7

You can do all sort of things with this like run a script, compile a file, package a file into an executable, or even a fat jar. It's build-tool-like. You can read more about the project on the website or check it out on their GitHub page.

- https://scala-cli.virtuslab.org/
- https://github.com/VirtusLab/scala-cli

Note atm this tool is extremely new, as in first announced this past week. For anyone wanting to try this out, for now you'll need to specific TCP for Bloop. So for example if you have a MyFile.scala and you'd like to run/compile it you'll need to do:

scala-cli --bloop-bsp-protocol tcp compile MyFile.scala

There is a pr to default this for FreeBSD.
Comment 1 Robert Clausecker freebsd_committer freebsd_triage 2021-10-27 16:58:15 UTC
For this port, you should do the same thing with DIST_SUBDIR as recommended on bug #259233.
Comment 2 Chris 2021-10-27 17:25:30 UTC
Created attachment 229078 [details]
Updated diff to add scala-cli initial support
Comment 3 Chris 2021-10-27 17:25:46 UTC
(In reply to Robert Clausecker from comment #1)

Done, thanks again for the input!
Comment 4 Robert Clausecker freebsd_committer freebsd_triage 2023-02-14 15:09:18 UTC
Are you still interested in getting this port in?  I just noticed nothing ever happened to it.  Perhaps I could help you getting it committed.