Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Eclim 1.7.2

By: a guest on Jun 6th, 2012  |  syntax: None  |  size: 2.37 KB  |  views: 82  |  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.7.2
  5. pkgrel=1
  6. pkgdesc="Brings Eclipse functionality to Vim"
  7. url="http://eclim.org/"
  8. license=('GPL3')
  9. arch=(i686 x86_64)
  10. depends=('vim' 'eclipse')
  11. makedepends=('apache-ant' 'python2-sphinx')
  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=$pkgname.install
  19. source=("http://downloads.sourceforge.net/project/$pkgname/$pkgname/$pkgver/${pkgname}_$pkgver.tar.gz")
  20.         md5sums=('35882a173e8d340ceee527165cf359f8')
  21. build() {
  22.     cd $srcdir/${pkgname}_$pkgver
  23.    
  24.     # Manage plugins
  25.     # jdt, ant and maven only require eclipse so they can be enabled without worries
  26.     # might want to edit the _plugins array with those that suit your needs
  27.     # options are : jdt, ant, maven, pdt, cdt, wst, dltk, dltkruby
  28.     _plugins='jdt,ant,maven'
  29.  
  30.     # Eventually enabling additional plugins, be sure to comment this if you're defining your own
  31.     _plugins=$(pacman -Qs eclipse- | sed -n 's/.*\(pdt\|cdt\|wst\|dltk\(-ruby\)*\).*/\1/p' | tr '\n-' ',\0')$_plugins
  32.  
  33.     # Get the ANT_HOME environment variable
  34.     source /etc/profile.d/apache-ant.sh
  35.  
  36.     # Build (necessary, we need to build with the correct environment variables
  37.     mkdir -p $pkgdir/usr/share/eclipse
  38.     mkdir -p $pkgdir/usr/share/vim/vimfiles
  39.  
  40.     chmod +x src/nailgun/configure bin/sphinx
  41.  
  42.     # recompiling nailgun to make sure the executable is compliant with our architecture
  43.     cd src/nailgun
  44.     ./configure
  45.     make
  46.     cd ../..
  47.  
  48.     sed -e 's|${user.home}/\.|${vim.files}/|g' \
  49.         -i src/ant/build.gant
  50.  
  51.     ant -Declipse.home=/usr/share/eclipse \
  52.         -Dvim.files=/usr/share/vim/vimfiles \
  53.         -Dplugins=$_plugins \
  54.         build
  55.  
  56.     ant -Declipse.home=$pkgdir/usr/share/eclipse \
  57.         -Dvim.files=$pkgdir/usr/share/vim/vimfiles \
  58.         -Dplugins=$_plugins \
  59.         deploy
  60.  
  61.     # fix eclim paths
  62.     sed -i -e "s|$pkgdir||g" $pkgdir/usr/share/vim/vimfiles/eclim/plugin/eclim.vim
  63.  
  64.     # delete Windows stuff
  65.     for i in $(find $pkgdir -regex ".*bat\|.*cmd\|.*exe"); do  rm -f $i ; done
  66. }
clone this paste RAW Paste Data