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

eclim-helios

By: a guest on Jul 10th, 2010  |  syntax: None  |  size: 2.10 KB  |  views: 86  |  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.   msg "srcdir: $srcdir"
  26.  
  27.   if [ -d $pkgname ] ; then
  28.     cd $pkgname && git pull origin
  29.     msg "The local files are updated."
  30.   else
  31.     git clone git://github.com/ervandew/eclim.git
  32.     # switch to the helios branch
  33.     cd $pkgname && git checkout helios
  34.   fi
  35.  
  36.   msg "GIT checkout done or server timeout"
  37.   msg "Starting make..."
  38.  
  39.   rm -rf "$srcdir/$pkgname-build"
  40.   git clone "$srcdir/$pkgname" "$srcdir/$pkgname-build"
  41.   cd "$srcdir/$pkgname-build"
  42.  
  43.   #
  44.   # BUILD HERE
  45.   #
  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.  
  55.   # Get the ANT_HOME environment variable
  56.   source /etc/profile.d/apache-ant.sh
  57.  
  58.   # Build
  59.   mkdir -p $pkgdir/usr/share/eclipse
  60.   mkdir -p $pkgdir/usr/share/vim/vimfiles
  61.  
  62.   ant -Declipse.home=/usr/share/eclipse \
  63.       -Dvim.files=/usr/share/vim/vimfiles \
  64.       -Dplugins=${_plugins} \
  65.       build
  66.  
  67.   ant -Declipse.home=$pkgdir/usr/share/eclipse \
  68.       -Dvim.files=$pkgdir/usr/share/vim/vimfiles \
  69.       -Dplugins=${_plugins} \
  70.       deploy
  71.  
  72.   # delete Windows stuff
  73.   for i in $(find $pkgdir -regex ".*bat\|.*cmd\|.*exe"); do  rm -f $i ; done
  74. }
clone this paste RAW Paste Data