development/grails: Updated for version 3.2.8.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
DhabyX 2017-04-06 08:56:05 +07:00 committed by Willy Sudiarto Raharjo
parent dc5937f46e
commit df231b38ab
5 changed files with 27 additions and 15 deletions

View file

@ -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

View file

@ -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}

View file

@ -1,4 +1,3 @@
#!/bin/csh
setenv GRAILS_HOME GRAILS_INSTALL_PATH
setenv PATH ${PATH}:${GRAILS_HOME}/bin

View file

@ -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"

View file

@ -1,4 +1,3 @@
#!/bin/sh
export GRAILS_HOME=GRAILS_INSTALL_PATH
export PATH="${PATH}:${GRAILS_HOME}/bin"