diff options
Diffstat (limited to 'development')
-rw-r--r-- | development/groovy/README | 10 | ||||
-rw-r--r-- | development/groovy/groovy.SlackBuild | 64 | ||||
-rw-r--r-- | development/groovy/groovy.info | 10 | ||||
-rw-r--r-- | development/groovy/profile.d/groovy.csh | 3 | ||||
-rw-r--r-- | development/groovy/profile.d/groovy.sh | 3 | ||||
-rw-r--r-- | development/groovy/slack-desc | 19 |
6 files changed, 109 insertions, 0 deletions
diff --git a/development/groovy/README b/development/groovy/README new file mode 100644 index 0000000000..3768c5a27c --- /dev/null +++ b/development/groovy/README @@ -0,0 +1,10 @@ +Groovy is a dynamic language for the Java platform. + +This sets GROOVY_HOME=/usr/<libdir>/groovy and PATH to include +/usr/<libdir>/groovy/bin. + +The installation is like Java Runtime/SDK, in that it places everything by +default in /usr/<libdir>/groovy. + +The lib directory is set dependent upon the package architecture: /usr/lib +on x86 and /usr/lib64 on x86_64. diff --git a/development/groovy/groovy.SlackBuild b/development/groovy/groovy.SlackBuild new file mode 100644 index 0000000000..17cc277cdc --- /dev/null +++ b/development/groovy/groovy.SlackBuild @@ -0,0 +1,64 @@ +#!/bin/sh +# +# Written by Jockey S. Kyd (jockey dot kyd at gmail dot com) +# Public domain +# + +PRGNAM=groovy +VERSION=1.8.2 +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +if [ -z "$ARCH" ]; then + case "$(uname -m)" in + i?86) ARCH=i486 ;; + arm*) ARCH=arm ;; + *) ARCH=$(uname -m) ;; + esac +fi + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +if [ "$ARCH" = "x86_64" ]; then + LIBDIRSUFFIX="64" +else + LIBDIRSUFFIX="" +fi + +set -e +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $PRGNAM-$VERSION +unzip $CWD/$PRGNAM-binary-$VERSION.zip +cd $PRGNAM-$VERSION +chown -R root:root . +find . \ + \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \ + -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ + -exec chmod 644 {} \; + +mkdir -p $PKG/usr/lib$LIBDIRSUFFIX/$PRGNAM +mv * $PKG/usr/lib$LIBDIRSUFFIX/$PRGNAM +cd .. +rmdir $PRGNAM-$VERSION + +# no need to install these with a .new extension +mkdir -p $PKG/etc/profile.d +cp -a $CWD/profile.d/$PRGNAM.*sh $PKG/etc/profile.d +sed -i "s|@LIBDIR@|/usr/lib$LIBDIRSUFFIX|" $PKG/etc/profile.d/$PRGNAM.*sh +chmod 0755 $PKG/etc/profile.d/$PRGNAM.*sh +chown root:root $PKG/etc/profile.d/$PRGNAM.*sh + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} diff --git a/development/groovy/groovy.info b/development/groovy/groovy.info new file mode 100644 index 0000000000..b20159f1b7 --- /dev/null +++ b/development/groovy/groovy.info @@ -0,0 +1,10 @@ +PRGNAM="groovy" +VERSION="1.8.2" +HOMEPAGE="http://groovy.codehaus.org/" +DOWNLOAD="http://dist.groovy.codehaus.org/distributions/groovy-binary-1.8.2.zip" +MD5SUM="6f02a0ecd6c2f9192f3ef3e58eeaec06" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +MAINTAINER="Jockey S. Kyd" +EMAIL="jockey.kyd@gmail.com" +APPROVED="Erik Hanson" diff --git a/development/groovy/profile.d/groovy.csh b/development/groovy/profile.d/groovy.csh new file mode 100644 index 0000000000..ed40d31646 --- /dev/null +++ b/development/groovy/profile.d/groovy.csh @@ -0,0 +1,3 @@ +#!/bin/csh +setenv GROOVY_HOME @LIBDIR@/groovy +setenv PATH ${PATH}:${GROOVY_HOME}/bin diff --git a/development/groovy/profile.d/groovy.sh b/development/groovy/profile.d/groovy.sh new file mode 100644 index 0000000000..4c145d38ea --- /dev/null +++ b/development/groovy/profile.d/groovy.sh @@ -0,0 +1,3 @@ +#!/bin/sh +export GROOVY_HOME=@LIBDIR@/groovy +export PATH=${PATH}:${GROOVY_HOME}/bin diff --git a/development/groovy/slack-desc b/development/groovy/slack-desc new file mode 100644 index 0000000000..76b0a1d15d --- /dev/null +++ b/development/groovy/slack-desc @@ -0,0 +1,19 @@ +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. Line +# up the first '|' above the ':' following the base package name, and the '|' +# on the right side marks the last column you can put a character in. You must +# make exactly 11 lines for the formatting to be correct. It's also +# customary to leave one space after the ':' except on otherwise blank lines. + + |-----handy-ruler------------------------------------------------------| +groovy: groovy (The Groovy programming language) +groovy: +groovy: Groovy is like a super version of Java. It can leverage Java's +groovy: enterprise capabilities but also has cool productivity features like +groovy: closures, builders and dynamic typing. If you are a developer, tester +groovy: or script guru, you have to love Groovy. +groovy: +groovy: http://groovy.codehaus.org/ +groovy: +groovy: +groovy: |