-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

James wrote:
> Is this the best(current) guide to follow?
> http://gentoo-wiki.com/HOWTO_Installing_3rd_Party_Ebuilds
> 
> 
> This guide tell you to copy of the files sub-dir:
> cp /usr/portage/dev-util/eclipse-sdk/files
> /usr/local/portage/dev-util/eclipse-sdk/files
> 
> Is this correct? It'd seem like the Eclipse(Europa 3.3)
> would need a new set of files in the sub-dir 'files', no?
> 
> 
> Will my 'dev-util/eclipse-sdk-3.2.1-r2/' remain pristine and usable?
> 
> 
> When "the devs"  do provide an elcipse 3.3 version in portage
> I'll just comment out the OVERLAY line in 'make.conf'
> and just emerge the official eclipse 3.3 from portage, or
> is there more to it than that? 
> 
> 
> 
> Any other caveats, I should know about?

The fact that its not in the main tree yet may indicate that there
are some rough edges that you may not want to be exposed to. The
ebuild in that overlay seems to have dependencies from both the
java-experimental overlay and the main java-overlay.

Rather than install a bunch of software from outside the main tree,
it's probably a lot safer to use an eclipse-sdk-bin ebuild like the
one I've attached. You'll have to manually download
eclipse-SDK-3.3-linux-gtk.tar.gz or similar from eclipse.org and
save it in ${DISTDIR} before you can digest the ebuild and install
it (the gentoo-wiki guide should help you with that).

Zac
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.7 (GNU/Linux)

iD8DBQFHKgph/ejvha5XGaMRAu3hAJkBqMTJuVsRyrCy/OlBWZjTCdcOtwCg6EqQ
gmCBEnDMqcZAGoWyc7Mv/hE=
=DN1h
-----END PGP SIGNATURE-----
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit eutils

SRC_URI="eclipse-SDK-3.3-linux-gtk.tar.gz"
DESCRIPTION="Eclipse Tools Platform"
LICENSE="EPL-1.0"
HOMEPAGE="http://www.eclipse.org/";
KEYWORDS="~x86"
RESTRICT="fetch"

SLOT=${PV}
S=${WORKDIR}
ECLIPSE_DIR=/opt/eclipse-${SLOT}

src_compile() {
        true
}

pkg_nofetch() {
        einfo "Please download ${A} from:"
        einfo ${HOMEPAGE}
        einfo "and move it to ${DISTDIR}"
}

src_install() {
        dodir "${ECLIPSE_DIR%/*}"
        mv eclipse "${D}/${ECLIPSE_DIR}"
        echo '#!/bin/sh' >> eclipse-${SLOT}
        echo 'export JAVA_HOME=$(java-config --jdk-home)' >> eclipse-${SLOT}
        echo 'export PATH="${JAVA_HOME}/bin:${PATH}"' >> eclipse-${SLOT}
        echo "exec ${ECLIPSE_DIR}/eclipse" >> eclipse-${SLOT}
        exeinto /usr/bin
        doexe eclipse-${SLOT}
        make_desktop_entry eclipse-${SLOT} "Eclipse ${PV}" 
"${ECLIPSE_DIR}/icon.xpm"
}

Attachment: eclipse-sdk-bin-3.3.ebuild.sig
Description: Binary data

Reply via email to