Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Maintainer: Andrea Fagiani <andfagiani_at_gmail_dot_com>
- pkgname=eclim
- pkgver=1.5.8.9
- pkgrel=1
- pkgdesc="Brings Eclipse functionality to Vim"
- arch=('i686' 'x86_64')
- url="http://eclim.org/"
- license=('GPL')
- depends=('vim' 'eclipse')
- makedepends=('git' 'apache-ant')
- optdepends=('eclipse-pdt: Eclipse PHP Development Tools support'
- 'eclipse-cdt: Eclipse C/C++ Plugin support'
- 'eclipse-dltk-core: Eclipse Dynamic Languagues Toolkit support'
- 'eclipse-dltk-ruby: Eclipse Ruby support'
- 'eclipse-wtp-wst: Eclipse Web Developer Tools support')
- conflicts=('eclim-git')
- install=eclim.install
- source=(resources.patch)
- md5sums=('82ad75037bef68979aedc4f08a121a10')
- build() {
- cd "$srcdir"
- msg "Connecting to GIT server...."
- msg "srcdir: $srcdir"
- if [ -d $pkgname ] ; then
- cd $pkgname && git pull origin
- msg "The local files are updated."
- else
- git clone git://github.com/ervandew/eclim.git
- # switch to the helios branch
- cd $pkgname && git checkout helios
- fi
- msg "GIT checkout done or server timeout"
- msg "Starting make..."
- rm -rf "$srcdir/$pkgname-build"
- git clone "$srcdir/$pkgname" "$srcdir/$pkgname-build"
- cd "$srcdir/$pkgname-build"
- #
- # BUILD HERE
- #
- patch -Np1 -i ${srcdir}/resources.patch
- # Manage plugins
- # you should edit this yourself has other plugins could lead to breakage or simply would not work
- _plugins='jdt,ant,maven'
- # Eventually enabling additional plugins, be sure to comment this if you're defining your own
- # Get the ANT_HOME environment variable
- source /etc/profile.d/apache-ant.sh
- # Build
- mkdir -p $pkgdir/usr/share/eclipse
- mkdir -p $pkgdir/usr/share/vim/vimfiles
- ant -Declipse.home=/usr/share/eclipse \
- -Dvim.files=/usr/share/vim/vimfiles \
- -Dplugins=${_plugins} \
- build
- ant -Declipse.home=$pkgdir/usr/share/eclipse \
- -Dvim.files=$pkgdir/usr/share/vim/vimfiles \
- -Dplugins=${_plugins} \
- deploy
- # delete Windows stuff
- for i in $(find $pkgdir -regex ".*bat\|.*cmd\|.*exe"); do rm -f $i ; done
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement