From owner-svn-ports-head@freebsd.org Mon Feb 18 17:01:55 2019 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7266814E3A92; Mon, 18 Feb 2019 17:01:55 +0000 (UTC) (envelope-from pi@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 0FB7771FAD; Mon, 18 Feb 2019 17:01:55 +0000 (UTC) (envelope-from pi@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id B295E8C76; Mon, 18 Feb 2019 17:01:54 +0000 (UTC) (envelope-from pi@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id x1IH1s8a011792; Mon, 18 Feb 2019 17:01:54 GMT (envelope-from pi@FreeBSD.org) Received: (from pi@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id x1IH1rPF011788; Mon, 18 Feb 2019 17:01:53 GMT (envelope-from pi@FreeBSD.org) Message-Id: <201902181701.x1IH1rPF011788@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: pi set sender to pi@FreeBSD.org using -f From: Kurt Jaeger Date: Mon, 18 Feb 2019 17:01:53 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r493275 - in head/shells: . ammonite X-SVN-Group: ports-head X-SVN-Commit-Author: pi X-SVN-Commit-Paths: in head/shells: . ammonite X-SVN-Commit-Revision: 493275 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 0FB7771FAD X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-2.97 / 15.00]; local_wl_from(0.00)[FreeBSD.org]; NEURAL_HAM_MEDIUM(-1.00)[-0.998,0]; NEURAL_HAM_SHORT(-0.97)[-0.972,0]; ASN(0.00)[asn:11403, ipnet:2610:1c1:1::/48, country:US]; NEURAL_HAM_LONG(-1.00)[-0.999,0] X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Feb 2019 17:01:55 -0000 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 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 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)