A modern replacement for the Bash system shell. Provides a systems shell in
the high-level Scala language, letting you seamlessly mix system operations
with real code without the hassle or the frustration of trying to write
complex code in Bash.
Ammonite lets you use the Scala language for scripting purposes: in a
Read-Evaluate-Print-Loop (REPL), as scripts, as a library to use
in existing projects, or as a standalone systems shell.
To use ammonite fully you should setup a configuration file
~/.ammonite/predef.sc. Below is an example:
interp.load.ivy("com.lihaoyi" %% "os-lib" % "0.11.4")
interp.load.ivy("org.typelevel" %% "cats-core" % "2.13.0")
// This @ is necessary for Ammonite to process the `interp.load.ivy`
// before continuing.
@
import cats.*
import cats.data.*
import cats.syntax.all.*
devel/ammonite: Deprecate and set EXPIRATION_DATE
Upstream ceased development and noted to use lang/scala for REPL and
devel/mill for scripting.
PR: 294680
Approved by: freebsd-ports@jan0sch.de (maintainer)
Mk/**java.mk: Convert bsd.java.mk to USES
The following features have been added or changed:
- Instead of USE_JAVA use USES=java. This defaults to
USES=java:build,run if NO_BUILD is undefined. Else it defaults to
USES=java:run
- Instead of USE_ANT=yes use USES=java:ant which also implies
USES=java:build
- Instead of JAVA_BUILD=yes use USES=java:build. Does not imply run or
extract
- Instead of JAVA_EXTRACT=yes use USES=java:extract does not imply
build or run
- Instead of JAVA_RUN=yes use USES=java:run does not imply extract or
build
- Instead of USE_JAVA=<version> use USES=java and JAVA_VERSION=<version>
Approved by: mat (portmgr), glewis
Differential Revision: https://reviews.freebsd.org/D48201
devel/ammonite: Update to 3.0.0-M1
Changelog:
- This release is not binary compatible with Ammonite 2.5!
- Support for Scala 2.12.18, 2.12.19, 2.13.11, 2.13.12, 2.13.13, 3.3.1, 3.3.2,
3.3.3
- The Scala 3 version now no longer depends on dependencies built with Scala
2.13
- Various dependency updates
- Internal fixes and improvements
PR: 278360
*/*: Refactor java/openjdk7 removal
- java/openjdk7* has been removed from the tree since 2022-09-03 however
the relevant codebases in bsd.java.mk has not been removed and the
consumers has also not been updated to use the next jdk version. This
commit updates all relevant consumers to use JAVA_VERSION=8 instead of
JAVA_VERSION=1.7
- Since the introduction of jdk version 18 it looks like similar with
jdk version 8(java version string 1.8). This is prone to error as it
looks similar and is only seperated by a '.'. Remove using
JAVA_VERSION with dotted fomat of java version string and update all
consumers to utilize version 8 instead of 1.8.
Approved by: portmgr (blanket)
devel/ammonite: Update to 2.5.6
* Update coursier to 2.1.0-RC1 which also closes some potential security
vulnerabilities
* Improved Scala 3 support including @main annotation support
* Added support for Scala 3.2.1
PR: 268900
Reported by: freebsd-ports@jan0sch.de
MFH: 2023Q1 (security fix)
Remove WWW entries moved into port Makefiles
Commit b7f05445c00f has added WWW entries to port Makefiles based on
WWW: lines in pkg-descr files.
This commit removes the WWW: lines of moved-over URLs from these
pkg-descr files.
Approved by: portmgr (tcberner)
Add WWW entries to port Makefiles
It has been common practice to have one or more URLs at the end of the
ports' pkg-descr files, one per line and prefixed with "WWW:". These
URLs should point at a project website or other relevant resources.
Access to these URLs required processing of the pkg-descr files, and
they have often become stale over time. If more than one such URL was
present in a pkg-descr file, only the first one was tarnsfered into
the port INDEX, but for many ports only the last line did contain the
port specific URL to further information.
There have been several proposals to make a project URL available as
a macro in the ports' Makefiles, over time.
(Only the first 15 lines of the commit message are shown above )
shells/ammonite: Update to 2.5.1 and MOVE
The authors removed the shell functionality but it is still a good dev-tool.
Changelog
---------
* Added support for Scala 2.13.8
* Re-added old Main entry point for better compatibility with Ammonite 2.4 and
older
* Dropped built-in support for shell operations
* move from shells/ammonite to devel/ammonite
PR: 261191
Reported by: freebsd-ports@jan0sch.de (maintainer)