summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--development/eclim/README2
-rw-r--r--development/eclim/eclim.SlackBuild19
2 files changed, 14 insertions, 7 deletions
diff --git a/development/eclim/README b/development/eclim/README
index 6b3005b4b0..046479a8d3 100644
--- a/development/eclim/README
+++ b/development/eclim/README
@@ -14,4 +14,4 @@ or
ECLIPSE_HOME=/opt/eclipse-cpp ./eclim.SlackBuild
-apache-ant and Sphinx are only needed at build-time, not runtime. \ No newline at end of file
+apache-ant and Sphinx are only needed at build-time, not runtime.
diff --git a/development/eclim/eclim.SlackBuild b/development/eclim/eclim.SlackBuild
index ae479f22d4..28844290d7 100644
--- a/development/eclim/eclim.SlackBuild
+++ b/development/eclim/eclim.SlackBuild
@@ -24,7 +24,7 @@
PRGNAM=eclim
VERSION=${VERSION:-2.6.0}
-BUILD=${BUILD:-4}
+BUILD=${BUILD:-5}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -104,18 +104,25 @@ sed -i '/cacheDir=/d' build.xml
ECLIPSE_HOME=${ECLIPSE_HOME:-/opt/eclipse-java}
ECLIPSE_HOME=${ECLIPSE_HOME%/}
+# thanks to the archlinux maintainer (thanks to mikezackles)
+sed -i \
+ -e "s|File(getVariable('eclipse')|File('$ECLIPSE_HOME/'|g" \
+ -e 's|${user.home}/\.|${vim.files}/|g' \
+ -e '68,88d' \
+ ant/build.gant
+
ant build -Declipse.home=$ECLIPSE_HOME -Dvim.files=/usr/share/vim/vimfiles
mkdir -p $PKG/usr/share/vim/vimfiles
-
-ant docs vimdocs -Declipse.home=$ECLIPSE_HOME -Dvim.files=$PKG/usr/share/vim/vimfiles
-
mkdir -p $PKG$ECLIPSE_HOME
-ant deploy.eclipse -Declipse.home=$PKG$ECLIPSE_HOME -Dvim.files=$PKG/usr/share/vim/vimfiles
+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
# tidy up
-sed -i "s#$PKG##" $PKG$ECLIPSE_HOME/plugins/org.eclim_$VERSION/bin/eclimd $PKG$ECLIPSE_HOME/plugins/org.eclim_$VERSION/plugin.properties
+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
rm -rf build/doc/site/.doctrees