Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Feb 2019 17:01:53 +0000 (UTC)
From:      Kurt Jaeger <pi@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r493275 - in head/shells: . ammonite
Message-ID:  <201902181701.x1IH1rPF011788@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pi
Date: Mon Feb 18 17:01:53 2019
New Revision: 493275
URL: https://svnweb.freebsd.org/changeset/ports/493275

Log:
  New port: shells/ammonite
  
  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.
  
  WWW: https://ammonite.io/
  
  PR:		235759
  Submitted by:	Jens Grassel <jan0sch@mykolab.com>

Added:
  head/shells/ammonite/
  head/shells/ammonite/Makefile   (contents, props changed)
  head/shells/ammonite/distinfo   (contents, props changed)
  head/shells/ammonite/pkg-descr   (contents, props changed)
  head/shells/ammonite/pkg-message   (contents, props changed)
Modified:
  head/shells/Makefile

Modified: head/shells/Makefile
==============================================================================
--- head/shells/Makefile	Mon Feb 18 16:47:28 2019	(r493274)
+++ head/shells/Makefile	Mon Feb 18 17:01:53 2019	(r493275)
@@ -4,6 +4,7 @@
     COMMENT = Shells
 
     SUBDIR += 44bsd-csh
+    SUBDIR += ammonite
     SUBDIR += bash
     SUBDIR += bash-completion
     SUBDIR += bash-static

Added: head/shells/ammonite/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/shells/ammonite/Makefile	Mon Feb 18 17:01:53 2019	(r493275)
@@ -0,0 +1,32 @@
+# $FreeBSD$
+
+PORTNAME=	ammonite
+DISTVERSION=	1.6.3
+CATEGORIES=	shells java
+MASTER_SITES=	https://github.com/lihaoyi/Ammonite/releases/download/${PORTVERSION}/
+DISTNAME=	2.12-${PORTVERSION}
+EXTRACT_SUFX=
+DIST_SUBDIR=	${PORTNAME}
+EXTRACT_ONLY=
+
+MAINTAINER=	freebsd-ports@jan0sch.de
+COMMENT=	Provides a system shell in the high-level Scala language
+
+LICENSE=	MIT
+
+USE_JAVA=	yes
+
+JAVA_VERSION=	1.8+
+NO_BUILD=	yes
+NO_ARCH=	yes
+PLIST_FILES=	bin/ammonite
+
+do-extract:
+	@${MKDIR} ${WRKSRC}
+	@${CP} ${DISTDIR}/${DIST_SUBDIR}/${DISTNAME} ${WRKSRC}
+
+do-install:
+	${INSTALL_SCRIPT} ${WRKSRC}/${DISTNAME} \
+		${STAGEDIR}${PREFIX}/bin/${PORTNAME}
+
+.include <bsd.port.mk>

Added: head/shells/ammonite/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/shells/ammonite/distinfo	Mon Feb 18 17:01:53 2019	(r493275)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1550239983
+SHA256 (ammonite/2.12-1.6.3) = adafccfdc70cdc83f072f6b0c340205d422fca56f743e269635dfb40dc63b171
+SIZE (ammonite/2.12-1.6.3) = 28929884

Added: head/shells/ammonite/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/shells/ammonite/pkg-descr	Mon Feb 18 17:01:53 2019	(r493275)
@@ -0,0 +1,10 @@
+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.
+
+WWW: https://ammonite.io/

Added: head/shells/ammonite/pkg-message
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/shells/ammonite/pkg-message	Mon Feb 18 17:01:53 2019	(r493275)
@@ -0,0 +1,19 @@
+To use ammonite as a shell you must(!) setup a configuration file
+~/.ammonite/predef.sc with a least the following minimal content:
+
+interp.load.ivy(
+  "com.lihaoyi" %% "ammonite-ops" % ammonite.Constants.version
+)
+interp.load.ivy(
+  "com.lihaoyi" %
+  s"ammonite-shell_${scala.util.Properties.versionNumberString}" %
+  ammonite.Constants.version
+)
+// This @ is necessary for Ammonite to process the `interp.load.ivy`
+// before continuing.
+@
+val shellSession = ammonite.shell.ShellSession()
+import shellSession._
+import ammonite.ops._
+import ammonite.shell._
+ammonite.shell.Configure(interp, repl, wd)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201902181701.x1IH1rPF011788>