Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 33894

Summary: New ebuild for eclipse-3.0M4 binary release
Product: Gentoo Linux Reporter: archan <archanp>
Component: New packagesAssignee: Karl Trygve Kalleberg (RETIRED) <karltk>
Status: RESOLVED WONTFIX    
Severity: enhancement CC: archanp
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: http://download2.eclipse.org/downloads/drops/S-3.0M4-200310101454/index.php
Whiteboard:
Package list:
Runtime testing required: ---

Description archan 2003-11-19 20:26:35 UTC
I have cleaned up the existing eclipse-sdk-bin-2.1.ebuild and updated it to 3.0 
stream release. Following is the ebuild - 
/usr/local/portage/dev-util/eclipse-sdk-bin/eclipse-sdk-bin-3.0-r4.ebuild

---cut here---
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2

DESCRIPTION="Eclipse Tools Platform, full binary"
HOMEPAGE="http://www.eclipse.org/"
SRC_URI="http://download2.eclipse.org/downloads/drops/S-3.
0M4-200310101454/eclipse-SDK-3.0M4-linux-gtk.zip"
IUSE=""

SLOT="0"
LICENSE="CPL-1.0"
KEYWORDS="~x86c"

DEPEND="${RDEPEND}
        >=virtual/jdk-1.3
        ppc? ( app-shells/tcsh )"

RDEPEND=">=virtual/jdk-1.4*
        >=x11-libs/gtk+-2*"

S=${WORKDIR}/eclipse

src_install() {
        dodir /opt/eclipse

        cp -dpR features install.ini  eclipse \
                icon.xpm plugins startup.jar \
                ${D}/opt/eclipse/

        dohtml cpl-v10.html notice.html readme/*

        dodir /etc/env.d
        echo -e "LDPATH=/opt/eclipse\nPATH=/opt/eclipse\nROOTPATH=/opt/eclipse" 
> ${D}/etc/env.d/20eclipse
}

---cut here---

As this binary release is for Linux-x86/gtk, there is no need to use gnome and 
ppc specific code in the ebuild. This ebuild works without gnome.

Reproducible: Always
Steps to Reproduce:
1. ebuild /usr/portage/dev-util/eclipse-sdk-bin/eclipse-sdk-bin-2.1.ebuild 
digest
2. emerge unmerge eclipse-sdk-bin [if 2.1.2 version is installed]
3. emerge /usr/portage/dev-util/eclipse-sdk-bin/eclipse-sdk-bin-2.1.ebuild

Actual Results:  
3.0M4 version eclipse-sdk is installed in /opt/eclipse

Expected Results:  
3.0M4 version eclipse-sdk is installed in /opt/eclipse
Comment 1 archan 2003-11-19 21:22:06 UTC
Updated version of ebuild is as follows - [DEPEND argument fix]

---cut here---
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2

DESCRIPTION="Eclipse Tools Platform, full binary"
HOMEPAGE="http://www.eclipse.org/"
SRC_URI="http://download2.eclipse.org/downloads/drops/S-3.0M4-200310101454/eclipse-SDK-3.0M4-linux-gtk.zip"
IUSE=""

SLOT="0"
LICENSE="CPL-1.0"
KEYWORDS="~x86c"

DEPEND="${RDEPEND}

RDEPEND=">=virtual/jdk-1.4*
        >=x11-libs/gtk+-2*"

S=${WORKDIR}/eclipse

src_install() {
        dodir /opt/eclipse

        cp -dpR features install.ini  eclipse \
                icon.xpm plugins startup.jar \
                ${D}/opt/eclipse/

        dohtml cpl-v10.html notice.html readme/*

        dodir /etc/env.d
        echo -e "LDPATH=/opt/eclipse\nPATH=/opt/eclipse\nROOTPATH=/opt/eclipse" > ${D}/etc/env.d/20eclipse
}

---cut here---
Comment 2 archan 2003-11-19 22:44:14 UTC
Ah!! Another typo FIX!!

---cut here---
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2

DESCRIPTION="Eclipse Tools Platform, full binary"
HOMEPAGE="http://www.eclipse.org/"
SRC_URI="http://download2.eclipse.org/downloads/drops/S-3.0M4-200310101454/eclipse-SDK-3.0M4-linux-gtk.zip"
IUSE=""

SLOT="0"
LICENSE="CPL-1.0"
KEYWORDS="~x86c"

DEPEND="${RDEPEND}"
RDEPEND=">=virtual/jdk-1.4*
         >=x11-libs/gtk+-2*"

S=${WORKDIR}/eclipse

src_install() {
    dodir /opt/eclipse

    cp -dpR features install.ini  eclipse \
        icon.xpm plugins startup.jar \
        ${D}/opt/eclipse/

    dohtml cpl-v10.html notice.html readme/*

    dodir /etc/env.d
    echo -e "LDPATH=/opt/eclipse\nPATH=/opt/eclipse\nROOTPATH=/opt/eclipse" > ${D}/etc/env.d/20eclipse
}

---cut here---
Comment 3 Karl Trygve Kalleberg (RETIRED) gentoo-dev 2003-11-28 06:00:24 UTC
First off, thanks for your contribution. We really enjoy getting user contributions.

However, in this case, I'd like to as if you please could modify your ebuild to build eclipse (everything, also the java parts) from sources, like the dev-util/eclipse-sdk does? 

I am sorry it taken me so long to remove the dev-util/eclipse-sdk-bin, but I'll
remove it shortly, to avoid this kind of confusion again.

As Gentoo is a multi-arch distribution, we strive to support all arches for all packages, if at all possible. This usually means building all packages from sources (also, the entire concept behind Gentoo is tweaking packages easily, for getting an optimal result).

For a list of reasons for building the Java code from sources, see
http://dev.gentoo.org/~karltk/why-build-java-code.html

Please reopen this bug with an attachment of an ebuild that builds the 3.0M4 from sources.