summaryrefslogtreecommitdiff
path: root/development/eclim/eclim.SlackBuild
diff options
context:
space:
mode:
authorAndrew Clemons <andrew.clemons@gmail.com>2017-07-10 23:28:58 +0100
committerDavid Spencer <idlemoor@slackbuilds.org>2017-07-12 16:39:21 +0100
commit452f64849e9b0747121c8abdf1cccf26ee505efd (patch)
tree59b6ad401f3d88fc538ab6860a0d7efd7f60736b /development/eclim/eclim.SlackBuild
parentef36b55c53d4f565a9c4a66a7c38288cf0b78b73 (diff)
downloadslackbuilds-452f64849e9b0747121c8abdf1cccf26ee505efd.tar.gz
development/eclim: Updated for version gitc977952.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'development/eclim/eclim.SlackBuild')
-rw-r--r--development/eclim/eclim.SlackBuild38
1 files changed, 27 insertions, 11 deletions
diff --git a/development/eclim/eclim.SlackBuild b/development/eclim/eclim.SlackBuild
index 28844290d7..1b2683c1ec 100644
--- a/development/eclim/eclim.SlackBuild
+++ b/development/eclim/eclim.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for eclim
-# Copyright 2016 Andrew Clemons, Wellington, New Zealand
+# Copyright 2016-2017 Andrew Clemons, Wellington New Zealand
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,8 +23,11 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=eclim
-VERSION=${VERSION:-2.6.0}
-BUILD=${BUILD:-5}
+# temporarily build the oxygen branch until released so i don't hold up
+# updating the eclipse slackbuilds any longer
+GITREV=${GITREV:-c977952934d6317380458618484bd577e2cab2d0}
+VERSION=${VERSION:-git$(echo "$GITREV" | sed 's/^\(.\{7\}\).*$/\1/')}
+BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -59,9 +62,15 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf "$PRGNAM"_"$VERSION"
-tar xvf $CWD/"$PRGNAM"_"$VERSION".tar.gz
-cd $"$PRGNAM"_"$VERSION"
+rm -rf $PRGNAM-$GITREV
+tar xvf $CWD/$PRGNAM-$GITREV.tar.gz
+cd $PRGNAM-$GITREV
+
+# this is a git submodule, but not filled when directly downloading a revision
+rm -rf doc/theme
+tar xvf $CWD/sphinx-bootstrap-theme-f32f006f06092eb57814b41fe66e1b423d622e88.tar.gz
+mv sphinx-bootstrap-theme-f32f006f06092eb57814b41fe66e1b423d622e88 doc/theme
+
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
@@ -69,6 +78,11 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+# manually set the version - will be removed when 2.7.0 is finally released
+echo "2.6.0" > .version
+sed -i 's/^ version = dotversion.getText.*$/ version = "2.6.0.24-gc977952"/' ant/build.gant
+sed -i 's/^ release = version/ release = "2.6.0"/' ant/build.gant
+
# http://eclim.org/install.html#install-source
(
# rebuild nailgun
@@ -119,12 +133,14 @@ mkdir -p $PKG$ECLIPSE_HOME
ant docs vimdocs -Declipse.home=$ECLIPSE_HOME -Dvim.files=$PKG/usr/share/vim/vimfiles
ant deploy -Declipse.home=$PKG$ECLIPSE_HOME -Dvim.files=$PKG/usr/share/vim/vimfiles
+# manually set the version - will be removed when 2.7.0 is finally released
+ECLIM_VERSION=2.6.0.24-gc977952
# tidy up
-sed -i "s#$PKG##" $PKG$ECLIPSE_HOME/plugins/org.eclim_$VERSION/bin/eclimd \
- $PKG$ECLIPSE_HOME/plugins/org.eclim_$VERSION/plugin.properties \
- $PKG/usr/share/vim/vimfiles/eclim/plugin/eclim.vim
-sed -i "s#\${eclipse.home}#$ECLIPSE_HOME#" $PKG$ECLIPSE_HOME/plugins/org.eclim_$VERSION/bin/native/linux/eclimd $PKG$ECLIPSE_HOME/plugins/org.eclim_$VERSION/bin/native/linux/eclimd.desktop
-find $PKG$ECLIPSE_HOME/plugins/org.eclim_$VERSION/nailgun \! -name ng -mindepth 1 -print0 | xargs -0 rm -rf
+sed -i "s#$PKG##" $PKG$ECLIPSE_HOME/plugins/org.eclim_$ECLIM_VERSION/bin/eclimd \
+ $PKG$ECLIPSE_HOME/plugins/org.eclim_$ECLIM_VERSION/plugin.properties \
+ $PKG/usr/share/vim/vimfiles/eclim/plugin/eclim.vim
+sed -i "s#\${eclipse.home}#$ECLIPSE_HOME#" $PKG$ECLIPSE_HOME/plugins/org.eclim_$ECLIM_VERSION/bin/native/linux/eclimd $PKG$ECLIPSE_HOME/plugins/org.eclim_$ECLIM_VERSION/bin/native/linux/eclimd.desktop
+find $PKG$ECLIPSE_HOME/plugins/org.eclim_$ECLIM_VERSION/nailgun \! -name ng -mindepth 1 -print0 | xargs -0 rm -rf
rm -rf build/doc/site/.doctrees
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION