Package Details: ammonite 1.3.2-2

Git Clone URL: https://aur.archlinux.org/ammonite.git (read-only)
Package Base: ammonite
Description: A cleanroom re-implementation of the Scala REPL from first principles.
Upstream URL: https://github.com/lihaoyi/Ammonite
Keywords: ammonite repl scala
Licenses: MIT
Submitter: wenLiangcan
Maintainer: yiqiaowang
Last Packager: yiqiaowang
Votes: 12
Popularity: 0.678931
First Submitted: 2015-08-07 08:58
Last Updated: 2018-10-20 20:32

Dependencies (1)

Required by (0)

Sources (2)

Latest Comments

02m commented on 2018-10-17 15:58

Here is another patch that fixes running amm under fish (https://github.com/lihaoyi/Ammonite/issues/813), until upstream is fixed: https://gist.github.com/01b8f96d46f887f39ef83648fb218a50

02m commented on 2018-10-17 15:42

Here is the patch to upgrade to the latest 1.2.1: https://gist.github.com/54fab8b5d6ebf8f970b5f71398797f45

semptic commented on 2018-06-13 11:00

This is not working with fish anymore (look at this issue).

The reason is the missing shebang.

Lasering commented on 2018-06-12 10:55

Why restrict it to java-environment 8. I have ammonite 1.1.0 installed and working with Java 10. You could set: depends=("scala>=${_scalaver}" 'java-environment>=8')

landaro commented on 2018-06-05 09:05

Are there any plans to update this to 1.1.2 at some point?

SeZuo commented on 2018-03-18 18:17

pkgver=1.0.5 sha256sums=('f37f3efd4e25398bfc04819a58ad65a353eb4ba213fd39fe5661d3a81b000c2c'

ender4 commented on 2017-11-19 06:20

Here's a patch to update to 1.0.3 and also force it to use java 8 even if java 9 is the default.

diff --git a/PKGBUILD b/PKGBUILD
index df3a026..ee71d46 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,20 +1,24 @@
pkgname=ammonite
-pkgver=1.0.0
+pkgver=1.0.3
pkgrel=1
pkgdesc="A cleanroom re-implementation of the Scala REPL from first principles. "
arch=('any')
url="https://github.com/lihaoyi/Ammonite"
license=('MIT')
_scalaver=2.12
-depends=("scala>=${_scalaver}")
+depends=("scala>=${_scalaver}" java-environment=8)
source=("ammonite-repl-${pkgver}"::"https://github.com/lihaoyi/Ammonite/releases/download/${pkgver}/${_scalaver}-${pkgver}"
'https://github.com/lihaoyi/Ammonite/raw/master/LICENSE')
noextract=("ammonite-repl-${pkgver}")
-sha256sums=('0c5ca294becac79a4c43a8fd77766f6406b724a9ff431dcb55e43dadd458e434'
+sha256sums=('69ee90b067cb5546480c54887a3325f87e272464452fbeaaa0628379936bae3c'
'90320c4bcccf8df57cc5d6f7b0b1778231ae87c64fe5405bae45af4ff9f87e8e')
install="${pkgname}.install"

package() {
+ if [[ -z $JAVA_HOME ]]; then
+ JAVA_HOME=$(ls -d /usr/lib/jvm/java-8-* | head -n 1)
+ fi
+ sed -i "2s|^exec java|exec $JAVA_HOME/bin/java|" "ammonite-repl-${pkgver}"
install -Dm755 "ammonite-repl-${pkgver}" "${pkgdir}/usr/bin/amm"
install -Dm644 'LICENSE' "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}

galaux commented on 2016-09-11 13:19

Hello,

With license "MIT", please provide a `LICENSE` file in `/usr/share/licenses/ammonite/` [0].

That is just my 2 cents but adding an install script just to let user know the name of the main binary looks a bit superfluous to me :)

[0] https://wiki.archlinux.org/index.php/PKGBUILD#license

Thanks for this package!

kvbx commented on 2016-07-14 12:01

The build fails for me with
```
META-INF/: Can't replace existing directory with non-directory
bsdtar: Error exit delayed from previous errors.
```

applying this patch to PKGBUILD resolves the issue:
```
10a11
> noextract=("ammonite-repl-${pkgver}-${_scalaver}")
```

Det commented on 2016-03-29 04:12

The pkgdesc should read just "Cleanroom re-implementation of the Scala REPL from first principles": https://wiki.archlinux.org/index.php/PKGBUILD#pkgdesc