Want more features on Pastebin? Sign Up, it's FREE!
Guest

eclim git PKGBUILD

By: a guest on Jun 29th, 2010  |  syntax: Bash  |  size: 2.17 KB  |  views: 63  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # Maintainer: Andrea Fagiani <andfagiani_at_gmail_dot_com>
  2.  
  3. pkgname=eclim
  4. pkgver=1.5.8.9
  5. pkgrel=1
  6. pkgdesc="Brings Eclipse functionality to Vim"
  7. arch=('i686' 'x86_64')
  8. url="http://eclim.org/"
  9. license=('GPL')
  10. depends=('vim' 'eclipse')
  11. makedepends=('git' 'apache-ant')
  12. optdepends=('eclipse-pdt: Eclipse PHP Development Tools support'
  13.             'eclipse-cdt: Eclipse C/C++ Plugin support'
  14.             'eclipse-dltk-core: Eclipse Dynamic Languagues Toolkit support'
  15.             'eclipse-dltk-ruby: Eclipse Ruby support'
  16.             'eclipse-wtp-wst: Eclipse Web Developer Tools support')
  17. conflicts=('eclim-git')
  18. install=eclim.install
  19. source=(resources.patch)
  20. md5sums=('82ad75037bef68979aedc4f08a121a10')
  21.  
  22. build() {
  23.   cd "$srcdir"
  24.   msg "Connecting to GIT server...."
  25.  
  26.   if [ -d $pkgname ] ; then
  27.     cd $pkgname && git pull origin
  28.     msg "The local files are updated."
  29.   else
  30.     git clone git://github.com/ervandew/eclim.git
  31.   fi
  32.  
  33.   msg "GIT checkout done or server timeout"
  34.   msg "Starting make..."
  35.  
  36.   rm -rf "$srcdir/$pkgname-build"
  37.   git clone "$srcdir/$pkgname" "$srcdir/$pkgname-build"
  38.   cd "$srcdir/$pkgname-build"
  39.  
  40.   #
  41.   # BUILD HERE
  42.   #
  43.  
  44.   # switch to the helios branch
  45.   git checkout helios
  46.  
  47.   patch -Np1 -i ${srcdir}/resources.patch
  48.  
  49.   # Manage plugins
  50.   # you should edit this yourself has other plugins could lead to breakage or simply would not work
  51.   _plugins='jdt,ant,maven'
  52.  
  53.   # Eventually enabling additional plugins, be sure to comment this if you're defining your own
  54.   #_plugins=$(pacman -Qs eclipse- | sed -n 's/.*\(pdt\|cdt\|wst\|dltk\(-ruby\)*\).*/\1/p' | tr '\n-' ',\0')$_plugins
  55.  
  56.   # Get the ANT_HOME environment variable
  57.   source /etc/profile.d/apache-ant.sh
  58.  
  59.   # Build
  60.   mkdir -p $pkgdir/usr/share/eclipse
  61.   mkdir -p $pkgdir/usr/share/vim/vimfiles
  62.  
  63.   ant -Declipse.home=/usr/share/eclipse \
  64.       -Dvim.files=/usr/share/vim/vimfiles \
  65.       -Dplugins=${_plugins} \
  66.       build
  67.  
  68.   ant -Declipse.home=$pkgdir/usr/share/eclipse \
  69.       -Dvim.files=$pkgdir/usr/share/vim/vimfiles \
  70.       -Dplugins=${_plugins} \
  71.       deploy
  72.  
  73.   # delete Windows stuff
  74.   for i in $(find $pkgdir -regex ".*bat\|.*cmd\|.*exe"); do  rm -f $i ; done
  75. }
clone this paste RAW Paste Data