diff options
author | DhabyX <slack.dhabyx@gmail.com> | 2017-04-06 08:56:05 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2017-04-06 21:03:12 +0700 |
commit | df231b38ab480df25205cde096eacff631a0bd59 (patch) | |
tree | 6cd57bc7f893d75fc497fa2b00fc619ebe5bff83 | |
parent | dc5937f46e08d795d0abcbf559b5c9a9253e175c (diff) |
development/grails: Updated for version 3.2.8.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r-- | development/grails/README | 8 | ||||
-rw-r--r-- | development/grails/grails.SlackBuild | 24 | ||||
-rw-r--r-- | development/grails/grails.csh.new | 1 | ||||
-rw-r--r-- | development/grails/grails.info | 8 | ||||
-rw-r--r-- | development/grails/grails.sh.new | 1 |
5 files changed, 27 insertions, 15 deletions
diff --git a/development/grails/README b/development/grails/README index 9727d001e1475..07289940e084f 100644 --- a/development/grails/README +++ b/development/grails/README @@ -2,6 +2,12 @@ Grails (Groovy on Rails) Web framework based on the Groovy It is intended to be a high-productivity framework by following -the "coding by convention" paradigm, providing a stand-alone +the "coding by convention" paradigm, providing a stand-alone development environment and hiding much of the configuration detail from the developer. + +You need setup GRAILS_HOME environment variable; this SlackBuild +provides one for sh and csh. You can logout and login again or +simply run: + +# source /etc/profile.d/grails.sh diff --git a/development/grails/grails.SlackBuild b/development/grails/grails.SlackBuild index 5f20850fce858..d46566a6f206e 100644 --- a/development/grails/grails.SlackBuild +++ b/development/grails/grails.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for grails -# Copyright (c) 2010-2013, Dhaby Xiloj <slack.dhabyx@gmail.com> +# Copyright (c) 2010-2017, Dhaby Xiloj <slack.dhabyx@gmail.com> # All rights reserved. # # Redistribution and use in source and binary forms, with or without @@ -24,7 +24,7 @@ # This script is just a binary repackaging. PRGNAM=grails -VERSION=${VERSION:-2.3.3} +VERSION=${VERSION:-3.2.8} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -41,9 +41,9 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -DOCS="INSTALL LICENSE README doc" +DOCS="INSTALL LICENSE" -if [ "$ARCH" = "i486" ]; then +if [ "$ARCH" = "i586" ]; then LIBDIRSUFFIX="" elif [ "$ARCH" = "i686" ]; then LIBDIRSUFFIX="" @@ -53,7 +53,7 @@ else LIBDIRSUFFIX="" fi -set -e +set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT @@ -70,8 +70,14 @@ find -L . \ # Putting everyting in place mkdir -p $PKG/usr/lib$LIBDIRSUFFIX/$PRGNAM -cp -R {bin,conf,dist,dsl-support,lib,media,plugins,scripts,src,build.properties} \ +cp -R {bin,dist,lib,media,src} \ $PKG/usr/lib$LIBDIRSUFFIX/$PRGNAM +mkdir -p $PKG/usr/bin/ +ln -sf /usr/lib$LIBDIRSUFFIX/$PRGNAM/bin/$PRGNAM $PKG/usr/bin/$PRGNAM + +mkdir -p $PKG/usr/share/pixmaps +cp media/icons/*.png $PKG/usr/share/pixmaps + mkdir -p $PKG/etc/profile.d cp $CWD/grails.{csh,sh}.new $PKG/etc/profile.d/ sed -i "s|GRAILS_INSTALL_PATH|/usr/lib$LIBDIRSUFFIX/$PRGNAM|" \ @@ -79,9 +85,10 @@ sed -i "s|GRAILS_INSTALL_PATH|/usr/lib$LIBDIRSUFFIX/$PRGNAM|" \ chmod a+x $PKG/etc/profile.d/grails.* # Removing unnecessary .bat files -find $PKG/usr/lib$LIBDIRSUFFIX/$PRGNAM/ -iname "*.bat" -exec rm {} \; +rm -f $PKG/usr/lib$LIBDIRSUFFIX/$PRGNAM/bin/$PRGNAM.bat -mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM +unzip $CWD/$PRGNAM-docs-$VERSION.zip -d $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM cp -ar $DOCS $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild @@ -91,4 +98,3 @@ cat $CWD/doinst.sh > $PKG/install/doinst.sh cd $PKG /sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} - diff --git a/development/grails/grails.csh.new b/development/grails/grails.csh.new index 2b8bc53f10abf..3e59823ab3c6d 100644 --- a/development/grails/grails.csh.new +++ b/development/grails/grails.csh.new @@ -1,4 +1,3 @@ #!/bin/csh setenv GRAILS_HOME GRAILS_INSTALL_PATH -setenv PATH ${PATH}:${GRAILS_HOME}/bin diff --git a/development/grails/grails.info b/development/grails/grails.info index 971358697c126..8037664ef1004 100644 --- a/development/grails/grails.info +++ b/development/grails/grails.info @@ -1,8 +1,10 @@ PRGNAM="grails" -VERSION="2.3.3" +VERSION="3.2.8" HOMEPAGE="http://www.grails.org/" -DOWNLOAD="http://dist.springframework.org.s3.amazonaws.com/release/GRAILS/grails-2.3.3.zip" -MD5SUM="dad203982e96bd7eae13450021550605" +DOWNLOAD="https://github.com/grails/grails-core/releases/download/v3.2.8/grails-3.2.8.zip \ + https://github.com/grails/grails-doc/releases/download/v3.2.8/grails-docs-3.2.8.zip" +MD5SUM="8286dad8b1307b7a11fe039161835112 \ + ce1e6f6b582de8b64b62ff9d4d3225a9" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="jdk" diff --git a/development/grails/grails.sh.new b/development/grails/grails.sh.new index 81dc12933cb64..080d34330c30e 100644 --- a/development/grails/grails.sh.new +++ b/development/grails/grails.sh.new @@ -1,4 +1,3 @@ #!/bin/sh export GRAILS_HOME=GRAILS_INSTALL_PATH -export PATH="${PATH}:${GRAILS_HOME}/bin" |