You are not logged in.

#1 2007-10-24 14:07:50

blue-dev
Member
Registered: 2007-07-18
Posts: 13

Eclipse package

Hi,
(hope I'm right here)
I installed Eclipse yesterday and was really surprised how old the package is.
The maintainer hasn't apparently been able to update it for about 6 months so I updated the PKGBUILD myself, compiled it and its working fine.

The new PKGBUILD:

# $Id: PKGBUILD,v 1.19 2007/03/20 04:07:03 paul Exp $
# Contributor: Andrew Wright <andreww@photism.org>
# Maintainer: Paul Mattal <paul@archlinux.org>

pkgname=eclipse
pkgver=3.3.1
pkgrel=1
pkgdesc="Eclipse IDE development platform"
arch=(i686 x86_64)
url="http://eclipse.org"
depends=('j2sdk>=1.5' gtk2)
install=$pkgname.install
makedepends=(zip libgnomeui apache-ant)
source=(ftp://ftp.osuosl.org/pub/$pkgname/$pkgname/downloads/drops/R-3.3.1-200709211145/$pkgname-sourceBuild-srcIncluded-$pkgver.zip \
    eclipse.sh \
    eclipse.desktop)
md5sums=('764b585d9a05cd518650e31c32899a29' \
     'f08e49e6dad13dda8b2e4036b2a3f28c' \
     '0bee44d3b8839d6b217b6a5efb27407f')

build() {
  export _JAVA_VERSION=$($JAVA_HOME/bin/java -version 2>&1 \
      | head -n 1 | cut -f 3 -d " " | cut -f 2 -d \" | cut -f 1 -d _ \
    | cut -b 1-3)

  cd $startdir/src || return 1
  unset ANT_HOME

  if [ "$CARCH" == "x86_64" ]; then
      export MAKEFLAGS="-j1"
      ./build -os linux -ws gtk -arch x86_64 -java5home /opt/java || return 1
    else ./build -os linux -ws gtk -arch x86 || return 1
  fi

  mkdir $startdir/pkg/opt
  if [ "$CARCH" == "x86_64" ]; then
      cp result/linux-gtk-x86_64-sdk.tar.gz $startdir/pkg/opt
    else cp result/linux-gtk-x86-sdk.tar.gz $startdir/pkg/opt
  fi

  cd $startdir/pkg/opt
  if [ "$CARCH" == "x86_64" ]; then
      tar zxf linux-gtk-x86_64-sdk.tar.gz
      rm linux-gtk-x86_64-sdk.tar.gz
    else tar zxf linux-gtk-x86-sdk.tar.gz
         rm linux-gtk-x86-sdk.tar.gz
  fi

  rm -r eclipse/readme

  install -D -m755 $startdir/src/eclipse.sh $startdir/pkg/etc/profile.d/eclipse.sh
  install -D -m644 $startdir/src/eclipse.desktop $startdir/pkg/usr/share/applications/eclipse.desktop
}

All other files are up-to-date I guess.
Kind Regards blue-dev.

Offline

#2 2007-10-24 14:20:53

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,384
Website

Re: Eclipse package

Any chance of an eclipse-cdt PKGBUILD (I am feeling really lazy...)

Offline

#3 2007-10-24 16:30:00

Abadaar
Member
From: Stockholm, Sweden
Registered: 2006-11-10
Posts: 28

Re: Eclipse package

This is my PKGBUILD for eclipse-cdt and it works for me at least. smile

# $Id: PKGBUILD,v 1.9 2007/04/03 19:58:22 andyrtr Exp $
# Contributor: Paul Mattal <paul@mattal.com>
# Maintainer: Paul Mattal <paul@archlinux.org>
pkgname=eclipse-cdt
pkgver=4.0.0
pkgrel=1
pkgdesc="C/C++ Plugin for Eclipse"
arch=(i686 x86_64)
url="http://www.eclipse.org/cdt"
license=""
depends=('eclipse-bin>=3.3' glibc)
makedepends=()
conflicts=()
replaces=()
backup=()
install=
[ "$CARCH" = "i686" ] && source=(http://sunsite.informatik.rwth-aachen.de:3080/eclipse/tools/cdt/releases/europa/dist/cdt-master-$pkgver.zip)
[ "$CARCH" = "i686" ] && md5sums=('331cff6cc2e6d7fa6986d4f446624cab')

[ "$CARCH" = "x86_64" ] && source=(http://download.eclipse.org/tools/cdt/releases/callisto/dist/$pkgver/org.eclipse.cdt-$pkgver-linux.x86_64.tar.gz)
[ "$CARCH" = "x86_64" ] && md5sums=('331cff6cc2e6d7fa6986d4f446624cab')


build() {
  mkdir -p $startdir/pkg/opt || return 1
  cp -a $startdir/src/eclipse $startdir/pkg/opt || return 1
  # remove license files also included with eclipse
  rm $startdir/pkg/opt/eclipse/{epl-v10.html,notice.html} || return 1
}

Offline

#4 2007-10-25 00:06:13

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,384
Website

Re: Eclipse package

Thanks.  Just pointing out that something has got to be wrong with the md5sums there...

Edit: No, they are actually the same file so there is no need for two different download locations

Last edited by Allan (2007-10-25 07:23:59)

Offline

#5 2007-10-25 07:58:01

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,384
Website

Re: Eclipse package

On both my computers, the eclipse PKGBUILD seems to freeze at the "Assembling" stage of the build.  No process is using any cpu time for quite a while and the PKGBUILD hasn't finished.  Anyone else see this/know a solution?

Offline

#6 2007-10-25 12:38:59

blue-dev
Member
Registered: 2007-07-18
Posts: 13

Re: Eclipse package

The assembling took about 15 Minutes @ my Intel P4 3 Ghz Cpu.
While assembling there is no output so it just seems like its frozen but actually it isn't, you just have to wait.

Edit: If you need the normal eclipse package I can simply upload it somewhere, but only if you have the 32-bit Archlinux version.

Last edited by blue-dev (2007-10-25 12:40:33)

Offline

#7 2007-10-25 14:14:04

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,384
Website

Re: Eclipse package

Well its been going for over six hours on my dual P4 3Ghz...  Using "top" I can see nothing more is happening. 

Thanks for the offer to upload the file somewhere, but I should probably skip it anyway.  I am in the middle of a lot of coding and I will never get it finished if I keep playing with my system!

Offline

#8 2007-10-28 08:52:51

Largon
Member
From: Czech Republic
Registered: 2004-11-03
Posts: 18
Website

Re: Eclipse package

What's the point in compling Eclipse instead of using compiled bytecode from eclipse.org? Currently I'm using eclipse-bin 3.3.1 from AUR (also with subclipse, rdt and cdt) without any problem.

Offline

Board footer

Powered by FluxBB