You are not logged in.
Groovy is a new Java based scripting language
it installs into /opt
PKGBUILD
pkgname=groovy
pkgver=1.0
pkgrel=7
pkgdesc="Groovy is a Java based scripting language, similar to Python,Ruby and Smalltalk"
url="http://groovy.codehaus.org"
license="BSD/Apache style licence"
depends=('j2sdk>=1.4.0')
source=(http://dist.codehaus.org/groovy/distributions/$pkgname-$pkgver-beta-$pkgrel.tar.gz)
md5sums=('ad0b92eb160c74e7692254942314ce03')
build() {
mkdir $startdir/pkg/opt
cd $startdir/pkg/opt
mv $startdir/src/$pkgname-$pkgver-beta-$pkgrel $pkgname
rm $startdir/pkg/opt/$pkgname/bin/*.bat
chmod 755 $startdir/pkg/opt/$pkgname/bin/*
install -D -m755 $startdir/${pkgname}.profile $startdir/pkg/etc/profile.d/${pkgname}.sh
}
groovy.profile
export GROOVY_HOME=/opt/groovy
export PATH=$PATH:$GROOVY_HOME/bin
export CLASSPATH=$CLASSPATH:$GROOVY_HOME/lib
check out the groovy homepage for more info and tutorials
edit.. updated the PKGBUILD due to some minor flaws
Offline
I find that it doesn't work to use compiled groovy classes with Java unless you add some classes to the classpath. Since I don't know what classes these are, I just added all of them, resulting in the following groovy.profile:
export GROOVY_HOME=/opt/groovy
export PATH=$PATH:$GROOVY_HOME/bin
for name in $GROOVY_HOME/lib/*.jar ; do
CLASSPATH=$CLASSPATH:$name
done
export CLASSPATH
(it's PROBABLY only groovy-version.jar and asm-version.jar that need to be on the classpath, but I don't know).
Dusty
Offline