development/eclim: Fixed jdt plugin not getting built.

Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
This commit is contained in:
Andrew Clemons 2017-03-24 20:36:10 +00:00 committed by David Spencer
parent 143e052c02
commit ed50d8f1c6
2 changed files with 14 additions and 7 deletions

View File

@ -14,4 +14,4 @@ or
ECLIPSE_HOME=/opt/eclipse-cpp ./eclim.SlackBuild
apache-ant and Sphinx are only needed at build-time, not runtime.
apache-ant and Sphinx are only needed at build-time, not runtime.

View File

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