summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Trygve Kalleberg <karltk@gentoo.org>2004-07-17 18:24:27 +0000
committerKarl Trygve Kalleberg <karltk@gentoo.org>2004-07-17 18:24:27 +0000
commitb778d90819d986557a03e9aea3ed0addccda330e (patch)
tree2227752e9d6664887db6a3814afaf3407a20f762 /dev-util/eclipse-sdk
parentAdded ~ARCH for ppc64 (bug #57036). (diff)
downloadhistorical-b778d90819d986557a03e9aea3ed0addccda330e.tar.gz
historical-b778d90819d986557a03e9aea3ed0addccda330e.tar.bz2
historical-b778d90819d986557a03e9aea3ed0addccda330e.zip
Removed old ebuilds
Diffstat (limited to 'dev-util/eclipse-sdk')
-rw-r--r--dev-util/eclipse-sdk/ChangeLog7
-rw-r--r--dev-util/eclipse-sdk/Manifest26
-rw-r--r--dev-util/eclipse-sdk/eclipse-sdk-3.0.0_pre9.ebuild313
-rw-r--r--dev-util/eclipse-sdk/eclipse-sdk-3.0.0_rc1.ebuild317
-rw-r--r--dev-util/eclipse-sdk/eclipse-sdk-3.0.0_rc2.ebuild309
-rw-r--r--dev-util/eclipse-sdk/eclipse-sdk-3.0.0_rc3.ebuild313
-rw-r--r--dev-util/eclipse-sdk/files/digest-eclipse-sdk-3.0.0_pre91
-rw-r--r--dev-util/eclipse-sdk/files/digest-eclipse-sdk-3.0.0_rc11
-rw-r--r--dev-util/eclipse-sdk/files/digest-eclipse-sdk-3.0.0_rc21
-rw-r--r--dev-util/eclipse-sdk/files/digest-eclipse-sdk-3.0.0_rc31
10 files changed, 15 insertions, 1274 deletions
diff --git a/dev-util/eclipse-sdk/ChangeLog b/dev-util/eclipse-sdk/ChangeLog
index d6f87f1387fd..229d0fa2328f 100644
--- a/dev-util/eclipse-sdk/ChangeLog
+++ b/dev-util/eclipse-sdk/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for dev-util/eclipse-sdk
# Copyright 2003-2004 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-util/eclipse-sdk/ChangeLog,v 1.49 2004/07/09 16:32:10 karltk Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-util/eclipse-sdk/ChangeLog,v 1.50 2004/07/17 18:24:27 karltk Exp $
+
+ 17 Jul 2004; Karl Trygve Kalleberg <karltk@gentoo.org>
+ eclipse-sdk-3.0.0_pre9.ebuild, eclipse-sdk-3.0.0_rc1.ebuild,
+ eclipse-sdk-3.0.0_rc2.ebuild, eclipse-sdk-3.0.0_rc3.ebuild:
+ Removed.
*eclipse-sdk-2.1.3-r4 (09 Jul 2004)
diff --git a/dev-util/eclipse-sdk/Manifest b/dev-util/eclipse-sdk/Manifest
index 690013f798e4..485b596218ba 100644
--- a/dev-util/eclipse-sdk/Manifest
+++ b/dev-util/eclipse-sdk/Manifest
@@ -1,26 +1,18 @@
-MD5 484e47ada6365a86df9f845308adc7ff eclipse-sdk-3.0.0_rc3.ebuild 10735
+MD5 2bc2c4a537d668ce914d8fbb0f74a76a ChangeLog 10635
MD5 c542ab6f252aaad0790739a1f6702201 eclipse-sdk-2.1.3-r4.ebuild 9258
-MD5 0991896a28c83192bdff31a038289a7e eclipse-sdk-3.0.0_pre9.ebuild 10592
-MD5 f919182142d51ed7e92e72e4f9a802a9 eclipse-sdk-3.0.0_rc2.ebuild 10613
MD5 e8c9ed23291e8884deb225cb53db53dc eclipse-sdk-2.1.3-r3.ebuild 8828
MD5 22a8da58486fe12c944dac6d57435a40 eclipse-sdk-3.0.0.ebuild 10895
-MD5 69cecfe6f58b8032c3e2520d32db2f58 eclipse-sdk-3.0.0_rc1.ebuild 10867
-MD5 b3b19f4cfd7196553190d19763ee482a ChangeLog 10440
MD5 9cc8d5162e981d7b7fc1ef9fa1ac0e65 metadata.xml 919
-MD5 ab0f6620b4767e065bd533b06245b0fc files/01-distribute_ant_target-2.1.patch 1103
MD5 6c2995197ef0a038015ffff1dee7ac72 files/00-refactor_rename.patch 59577
-MD5 6ac05b530442f845b10b830e624ffe04 files/eclipse-2.desktop 222
-MD5 a8bdecb6304c91da92a3b153e154f544 files/02-konqueror_help_browser-3.0.patch 1560
-MD5 4359f5dff0419b45859cb8293690174a files/digest-eclipse-sdk-3.0.0_rc1 89
-MD5 37706eb7efb04f7734c9c296e1d802dd files/digest-eclipse-sdk-3.0.0_rc2 89
-MD5 053cb6bc468bfe44ceafc173b4a42b83 files/digest-eclipse-sdk-3.0.0_rc3 89
MD5 0e815a2260dbd0153de35c6de26fbd05 files/digest-eclipse-sdk-3.0.0 86
-MD5 a906ea8f3ba53fe4ea766495c8f991c8 files/digest-eclipse-sdk-3.0.0_pre9 88
-MD5 ed33fd609db26b85ef9b0c2a82a06b22 files/01-distribute_ant_target-3.0.patch 726
-MD5 bfc0f8c0e74a36e0eeebf31cf6a7616c files/digest-eclipse-sdk-2.1.3-r3 88
-MD5 bfc0f8c0e74a36e0eeebf31cf6a7616c files/digest-eclipse-sdk-2.1.3-r4 88
-MD5 429b757eb766856a6b29094b06402576 files/eclipse-3.desktop 222
MD5 8f66a016be8f50dc8f57353c8207c669 files/03-motif-java1.5-build.patch 1848
-MD5 59c18169fdf20b43544bb4891592dce4 files/02-konqueror_help_browser-2.1.patch 1013
+MD5 bfc0f8c0e74a36e0eeebf31cf6a7616c files/digest-eclipse-sdk-2.1.3-r4 88
MD5 8ddebeb4f299a5fe8d69270538037f14 files/eclipse-2 956
+MD5 6ac05b530442f845b10b830e624ffe04 files/eclipse-2.desktop 222
MD5 59dd8f6412f3150438363ffe94892db7 files/eclipse-3 950
+MD5 429b757eb766856a6b29094b06402576 files/eclipse-3.desktop 222
+MD5 bfc0f8c0e74a36e0eeebf31cf6a7616c files/digest-eclipse-sdk-2.1.3-r3 88
+MD5 ed33fd609db26b85ef9b0c2a82a06b22 files/01-distribute_ant_target-3.0.patch 726
+MD5 ab0f6620b4767e065bd533b06245b0fc files/01-distribute_ant_target-2.1.patch 1103
+MD5 59c18169fdf20b43544bb4891592dce4 files/02-konqueror_help_browser-2.1.patch 1013
+MD5 a8bdecb6304c91da92a3b153e154f544 files/02-konqueror_help_browser-3.0.patch 1560
diff --git a/dev-util/eclipse-sdk/eclipse-sdk-3.0.0_pre9.ebuild b/dev-util/eclipse-sdk/eclipse-sdk-3.0.0_pre9.ebuild
deleted file mode 100644
index 38156b8a27ed..000000000000
--- a/dev-util/eclipse-sdk/eclipse-sdk-3.0.0_pre9.ebuild
+++ /dev/null
@@ -1,313 +0,0 @@
-# Copyright 1999-2004 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-util/eclipse-sdk/eclipse-sdk-3.0.0_pre9.ebuild,v 1.5 2004/06/25 02:30:39 agriffis Exp $
-
-inherit eutils
-
-DESCRIPTION="Eclipse Tools Platform"
-HOMEPAGE="http://www.eclipse.org/"
-SRC_URI="http://mirror.tiscali.dk/eclipse/downloads/drops/S-3.0M9-200405211200/eclipse-sourceBuild-srcIncluded-3.0M9.zip"
-IUSE="gtk motif gnome kde mozilla jikes"
-SLOT="3"
-LICENSE="CPL-1.0"
-KEYWORDS="~x86"
-
-# karltk: ours is not to question why, merely do and die..
-RDEPEND=" || ( >=virtual/jdk-1.4.2 =dev-java/blackdown-jdk-1.4.2* )
- || (
- gtk? ( >=x11-libs/gtk+-2.2.4 )
- kde? ( kde-base/kdelibs x11-libs/openmotif )
- motif? ( x11-libs/openmotif )
- >=x11-libs/gtk+-2.2.4
- )
- gnome? ( =gnome-base/gnome-vfs-2* )
- "
-
-DEPEND="${RDEPEND}
- >=dev-java/ant-1.5.3
- >=sys-apps/findutils-4.1.7
- >=app-shells/tcsh-6.11
- mozilla? ( >=net-www/mozilla-1.5 )
- app-arch/unzip"
-
-pkg_setup() {
- ewarn "This package is _highly_ experimental."
- ewarn "If you are using Eclipse 2.1.x for any serious work, stop now."
- ewarn "You cannot expect to be productive with this packaging of 3.0!"
-
- # karltk: refactor, put in java-pkg.eclass?
- local version="$(java-config --java-version | grep 'java version' | sed -r 's/java version \"(.*)\"/\1/')"
- local ver_rx="([0-9]+)\.([0-9]+)\.([0-9]+)(.*)"
- local major=$(echo ${version} | sed -r "s/${ver_rx}/\1/")
- local minor=$(echo ${version} | sed -r "s/${ver_rx}/\2/")
- local patch=$(echo ${version} | sed -r "s/${ver_rx}/\3/")
- local extra=$(echo ${version} | sed -r "s/${ver_rx}/\4/")
-
- if [ ${major} -ge 1 ] && [ ${minor} -ge 4 ] && [ ${patch} -ge 2 ] ; then
- einfo "Detected JDK is sufficient to compile Eclipse (${version} >= 1.4.2)"
- else
- die "Detected JDK is too old to compile Eclipse, need at least 1.4.2!"
- fi
-}
-
-set_dirs() {
- gtk_launcher_src_dir="plugins/platform-launcher/library/gtk"
- motif_launch_src_dir="plugins/platform-launcher/library/motif"
- gtk_swt_src_dir="plugins/org.eclipse.swt/Eclipse SWT PI/gtk/library"
- motif_swt_src_dir="plugins/org.eclipse.swt/Eclipse SWT PI/motif/library"
-
- core_src_dir="plugins/org.eclipse.core.resources.linux/src"
-
- case $ARCH in
- sparc)
- gtk_swt_dest_dir="plugins/org.eclipse.swt.gtk/os/solaris/sparc"
- motif_swt_dest_dir="plugins/org.eclipse.swt.motif/os/solaris/sparc"
- core_dest_dir="plugins/org.eclipse.core.resources.linux/os/solaris/sparc"
- ;;
- x86)
- gtk_swt_dest_dir="plugins/org.eclipse.swt.gtk/os/linux/x86"
- motif_swt_dest_dir="plugins/org.eclipse.swt.motif/os/linux/x86"
- core_dest_dir="plugins/org.eclipse.core.resources.linux/os/linux/x86"
- ;;
- ppc)
- gtk_swt_dest_dir="plugins/org.eclipse.swt.gtk/os/linux/ppc"
- motif_swt_dest_dir="plugins/org.eclipse.swt.motif/os/linux/ppc"
- core_dest_dir="plugins/org.eclipse.core.resources.linux/os/linux/ppc/"
- ;;
- esac
-}
-
-src_unpack() {
- mkdir ${S}
- cd ${S}
- unpack ${A}
-
-# epatch ${FILESDIR}/01-distribute_ant_target-3.0.patch
-
- # karltk: doesn't work, is it required anymore?
-# if use kde ; then
-# epatch ${FILESDIR}/02-konqueror_help_browser-3.0.patch
-# fi
-
- # Needed for the IBM JDK
- addwrite "/proc/self/maps"
- addwrite "/proc/cpuinfo"
-
- # Clean up all pre-built code
- ant -q -DinstallWs=gtk -DinstallOs=linux clean
- ant -q -DinstallWs=motif -DinstallOs=linux clean
- find ${S} -name '*.so' -exec rm -f {} \;
- find ${S} -name '*.so.*' -exec rm -f {} \;
- find ${S} -type f -name 'eclipse' -exec rm {} \;
- rm -f eclipse
-
- # Load environment varis for various directories
- set_dirs
-
- # Move around some source code that should have been handled by the build system
- cd ${S}/"${gtk_swt_src_dir}" || die "Directory ${gtk_swt_src_dir} not found"
- cp ${S}/plugins/org.eclipse.swt/Eclipse\ SWT/common/library/* .
- cp ${S}/plugins/org.eclipse.swt/Eclipse\ SWT\ Mozilla/common/library/* .
- cp ${S}/plugins/org.eclipse.swt/Eclipse\ SWT\ Program/gnome/library/* .
- cp ${S}/plugins/org.eclipse.swt/Eclipse\ SWT\ AWT/gtk/library/* .
-
- if use gnome ; then
- gnome_lib=`pkg-config --libs gnome-vfs-module-2.0 libgnome-2.0 libgnomeui-2.0 | sed -e "s:-pthread:-lpthread:" -e "s:-Wl,--export:--export:"`
- fi
-
- if use gtk ; then
- gtk_lib=`pkg-config --libs gtk+-2.0 gthread-2.0 | sed -e "s:-pthread:-lpthread:" -e "s:-Wl,--export:--export:"`
- atk_lib=`pkg-config --libs atk gtk+-2.0 | sed -e "s:-Wl,--export:--export:"`
- fi
-
- sed -e "s:/bluebird/teamswt/swt-builddir/IBMJava2-141:$JAVA_HOME:" \
- -e "s:/bluebird/teamswt/swt-builddir/jdk1.5.0:$JAVA_HOME:" \
- -e "s:/mozilla/mozilla/1.6/linux_gtk2/mozilla/dist:$MOZILLA_FIVE_HOME:" \
- -e "s:/usr/lib/mozilla-1.6:$MOZILLA_FIVE_HOME:" \
- -e "s:\`pkg-config --libs gtk+-2.0 gthread-2.0\`:${gtk_lib}:" \
- -e "s:\`pkg-config --libs atk gtk+-2.0\`:${atk_lib}:" \
- -e "s:\`pkg-config --libs gnome-vfs-module-2.0 libgnome-2.0 libgnomeui-2.0\`:${gnome_lib}:" \
- -e "s:-I\$(JAVA_HOME)/include:-I\$(JAVA_HOME)/include -I\$(JAVA_HOME)/include/linux:" \
- -e "s:-I\$(JAVA_HOME)\t:-I\$(JAVA_HOME)/include -I\$(JAVA_HOME)/include/linux:" \
- -e "s:-L\$(MOZILLA_HOME)/lib -lembed_base_s:-L\$(MOZILLA_HOME):" \
- -e "s:MOZILLACFLAGS = -O:MOZILLACFLAGS = -O -fPIC:" \
- -e "s:\$(JAVA_HOME)/jre/bin:\$(JAVA_HOME)/jre/lib/i386:" \
- -i make_gtk.mak
-
- cd ${S}/"${motif_swt_src_dir}"
- cp ${S}/plugins/org.eclipse.swt/Eclipse\ SWT/common/library/* .
- sed -e "s:/bluebird/teamswt/swt-builddir/IBMJava2-141:$JAVA_HOME:" \
- -e "s:/bluebird/teamswt/swt-builddir/motif21:/usr/X11R6:" \
- -e "s:/usr/lib/qt-3.1:/usr/qt/3:" \
- -e "s:-lkdecore:-L\`kde-config --prefix\`/lib -lkdecore:" \
- -e "s:-I/usr/include/kde:-I\`kde-config --prefix\`/include:" \
- -e "s:-I\$(JAVA_HOME)/include:-I\$(JAVA_HOME)/include -I\$(JAVA_HOME)/include/linux:" \
- -e "s:-I\$(JAVA_HOME)\t:-I\$(JAVA_HOME)/include -I\$(JAVA_HOME)/include/linux:" \
- -e "s:-L\$(MOZILLA_HOME)/lib -lembed_base_s:-L\$(MOZILLA_HOME):" \
- -e "s:-L\$(JAVA_HOME)/jre/bin:-L\$(JAVA_HOME)/jre/lib/i386:" \
- -i make_linux.mak
-
- cd ${S}
- find -type f -name about.mappings -exec sed -e "s/@build@/Gentoo Linux ${PF}/" -i \{\} \;
-}
-
-build_gtk_frontend() {
-
- einfo "Building gtk+ SWT"
-
- # Build the eclipse gtk binary
- cd ${S}/plugins/platform-launcher/library/gtk
- tcsh -f build.csh -output eclipse-gtk -arch $ARCH || die "Failed to build eclipse-gtk"
-
- cd ${S}/"${gtk_swt_src_dir}"
- make -f make_gtk.mak make_swt || die "Failed to build platform-independent SWT support"
- make -f make_gtk.mak make_atk || die "Failed to build atk support"
-
- if use gnome ; then
- einfo "Building GNOME VFS support"
- make -f make_gtk.mak make_gnome || die "Failed to build GNOME VFS support"
- fi
-
- if use mozilla ; then
- einfo "Building Mozilla component"
- make -f make_gtk.mak make_mozilla || die "Failed to build Mozilla support"
- fi
-
- # move the *.so files to the right path so eclipse can find them
- mkdir -p ${S}/"${gtk_swt_dest_dir}"
- mv *.so ${S}/"${gtk_swt_dest_dir}"
-}
-
-build_motif_frontend() {
-
- # Build eclipse motif binary
- cd ${S}/plugins/platform-launcher/library/motif
- tcsh -f build.csh -output eclipse-motif -arch $ARCH || die "Failed to build eclipse-motif"
-
- cd ${S}/"${motif_swt_src_dir}"
-
- make -f make_linux.mak make_swt || die "Failed to build Motif support"
- if use kde ; then
- make -f make_linux.mak make_kde || die "Failed to build KDE support"
- fi
-
- # move the *.so files to the right path so eclipse can find them
- mkdir -p ${S}/"${motif_swt_dest_dir}"
- mv *.so ${S}/"${motif_swt_dest_dir}"
-}
-
-src_compile() {
-
- addwrite "/proc/self/maps"
- addwrite "/proc/cpuinfo"
-
- # Figure out correct boot classpath
- if [ ! -z "`java-config --java-version | grep IBM`" ] ; then
- # IBM JRE
- ant_extra_opts="-Dbootclasspath=$(java-config --jdk-home)/jre/lib/core.jar"
- else
- # Sun derived JREs (Blackdown, Sun)
- ant_extra_opts="-Dbootclasspath=$(java-config --jdk-home)/jre/lib/rt.jar"
- fi
-
- if use jikes ; then
- ant_extra_opts="${ant_extra_opts} -Dbuild.compiler=jikes"
- fi
-
- export ANT_OPTS=-Xmx768m
-
- set_dirs
-
- # Build selected frontends
- use gtk && build_gtk_frontend
- use motif && build_motif_frontend
-
- einfo "Building resources.core plugin"
- cd ${S}/${core_src_dir}
- make JDK_INCLUDE="`java-config -O`/include -I`java-config -O`/include/linux" || die "Failed to build resource.core plugin"
- mkdir -p ${S}/"${core_dest_dir}"
- mv *.so ${S}/"${core_dest_dir}"
-
- cd ${S}
-
- # Build all java code -- default to gtk if neither of gtk, motif,
- # kde are set
- if ( use gtk || ! ( use gtk || use motif || use kde ) ); then
- einfo "Building GTK+ frontend -- see compilelog.txt for details"
- ant -q -q \
- -buildfile build.xml \
- -DinstallOs=linux \
- -DinstallWs=gtk \
- -DinstallArch=$ARCH \
- ${ant_extra_opts} compile install \
- || die "Failed to compile java code (gtk+)"
- fi
- if use motif ; then
- einfo "Building Motif frontend -- see compilelog.txt for details"
- ant -q -q \
- -buildfile build.xml \
- -DcollPlace="eclipse-${SLOT}" \
- -DinstallOs=linux \
- -DinstallWs=motif \
- -DinstallArch=$ARCH \
- ${ant_extra_opts} compile install \
- || die "Failed to compile java code (Motif)"
- fi
-
- cat ${FILESDIR}/eclipse-${SLOT}.desktop | \
- sed -e "s/@PV@/${PV}/" \
- > eclipse-${SLOT}.desktop
-}
-
-src_install() {
- eclipse_dir="/usr/lib/eclipse-${SLOT}"
-
- dodir /usr/lib
-
- einfo "Installing features and plugins"
- if use gtk ; then
- [ -f result/linux-gtk-${ARCH}-sdk.zip ] || die "gtk zip bundle was not build properly!"
- unzip -o -q result/linux-gtk-${ARCH}-sdk.zip -d ${D}/usr/lib
- fi
- if use motif ; then
- [ -f result/linux-motif-${ARCH}-sdk.zip ] || die "motif zip bundle was not build properly!"
- unzip -o -q result/linux-motif-${ARCH}-sdk.zip -d ${D}/usr/lib
- fi
-
- mv ${D}/usr/lib/eclipse ${D}/${eclipse_dir}
-
- insinto ${eclipse_dir}
-
- # Install launchers and native code
- exeinto ${eclipse_dir}
- if use gtk ; then
- einfo "Installing eclipse-gtk binary"
- doexe plugins/platform-launcher/library/gtk/eclipse-gtk \
- || die "Failed to install eclipse-gtk"
- fi
- if use motif ; then
- einfo "Installing eclipse-motif binary"
- doexe plugins/platform-launcher/library/motif/eclipse-motif \
- || die "Failed to install eclipse-motif"
- fi
-
- doins plugins/org.eclipse.platform/{startup.jar,splash.bmp}
-
- # Install startup script
- exeinto /usr/bin
- doexe ${FILESDIR}/eclipse-${SLOT}
-
- # Install GNOME .desktop file
- if use gnome ; then
- insinto /usr/share/gnome/apps/Development
- doins eclipse-${SLOT}.desktop
- fi
-
- # Install KDE .desktop file
- if use kde ; then
- # karltk: should check for available kde version(s)
- insinto /usr/kde/3.2/share/applnk/Applications/
- doins eclipse-${SLOT}.desktop
- fi
-
-}
diff --git a/dev-util/eclipse-sdk/eclipse-sdk-3.0.0_rc1.ebuild b/dev-util/eclipse-sdk/eclipse-sdk-3.0.0_rc1.ebuild
deleted file mode 100644
index 6304f59bfdb2..000000000000
--- a/dev-util/eclipse-sdk/eclipse-sdk-3.0.0_rc1.ebuild
+++ /dev/null
@@ -1,317 +0,0 @@
-# Copyright 1999-2004 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-util/eclipse-sdk/eclipse-sdk-3.0.0_rc1.ebuild,v 1.5 2004/06/25 02:30:39 agriffis Exp $
-
-inherit eutils
-
-DESCRIPTION="Eclipse Tools Platform"
-HOMEPAGE="http://www.eclipse.org/"
-SRC_URI="http://mirror.tiscali.dk/eclipse/downloads/drops/S-3.0RC1-200405290105/eclipse-sourceBuild-srcIncluded-3.0RC1.zip"
-IUSE="gtk motif gnome kde mozilla jikes"
-SLOT="3"
-LICENSE="CPL-1.0"
-KEYWORDS="~x86"
-
-# karltk: ours is not to question why, merely do and die..
-RDEPEND=" || ( >=virtual/jdk-1.4.2 =dev-java/blackdown-jdk-1.4.2* )
- || (
- gtk? ( >=x11-libs/gtk+-2.2.4 )
- kde? ( kde-base/kdelibs x11-libs/openmotif )
- motif? ( x11-libs/openmotif )
- >=x11-libs/gtk+-2.2.4
- )
- gnome? ( =gnome-base/gnome-vfs-2* =gnome-base/libgnomeui-2* )
- jikes? ( >=dev-java/jikes-1.19 )
- "
-
-DEPEND="${RDEPEND}
- >=dev-java/ant-1.5.3
- >=sys-apps/findutils-4.1.7
- >=app-shells/tcsh-6.11
- mozilla? ( >=net-www/mozilla-1.5 )
- app-arch/unzip"
-
-pkg_setup() {
- ewarn "This package is _highly_ experimental."
- ewarn "If you are using Eclipse 2.1.x for any serious work, stop now."
- ewarn "You cannot expect to be productive with this packaging of 3.0!"
-
- # karltk: refactor, put in java-pkg.eclass?
- local version="$(java-config --java-version | grep 'java version' | sed -r 's/java version \"(.*)\"/\1/')"
- local ver_rx="([0-9]+)\.([0-9]+)\.([0-9]+)(.*)"
- local major=$(echo ${version} | sed -r "s/${ver_rx}/\1/")
- local minor=$(echo ${version} | sed -r "s/${ver_rx}/\2/")
- local patch=$(echo ${version} | sed -r "s/${ver_rx}/\3/")
- local extra=$(echo ${version} | sed -r "s/${ver_rx}/\4/")
-
- if [ ${major} -ge 1 ] && [ ${minor} -gt 4 ] ; then
- einfo "Detected JDK is sufficient to compile Eclipse (${version} >= 1.4.2)"
- elif [ ${major} -ge 1 ] && [ ${minor} -ge 4 ] && [ ${patch} -ge 2 ] ; then
- einfo "Detected JDK is sufficient to compile Eclipse (${version} >= 1.4.2)"
- else
- die "Detected JDK (${version}) is too old to compile Eclipse, need at least 1.4.2!"
- fi
-}
-
-set_dirs() {
- gtk_launcher_src_dir="plugins/platform-launcher/library/gtk"
- motif_launch_src_dir="plugins/platform-launcher/library/motif"
- gtk_swt_src_dir="plugins/org.eclipse.swt/Eclipse SWT PI/gtk/library"
- motif_swt_src_dir="plugins/org.eclipse.swt/Eclipse SWT PI/motif/library"
-
- core_src_dir="plugins/org.eclipse.core.resources.linux/src"
-
- case $ARCH in
- sparc)
- gtk_swt_dest_dir="plugins/org.eclipse.swt.gtk/os/solaris/sparc"
- motif_swt_dest_dir="plugins/org.eclipse.swt.motif/os/solaris/sparc"
- core_dest_dir="plugins/org.eclipse.core.resources.linux/os/solaris/sparc"
- ;;
- x86)
- gtk_swt_dest_dir="plugins/org.eclipse.swt.gtk/os/linux/x86"
- motif_swt_dest_dir="plugins/org.eclipse.swt.motif/os/linux/x86"
- core_dest_dir="plugins/org.eclipse.core.resources.linux/os/linux/x86"
- ;;
- ppc)
- gtk_swt_dest_dir="plugins/org.eclipse.swt.gtk/os/linux/ppc"
- motif_swt_dest_dir="plugins/org.eclipse.swt.motif/os/linux/ppc"
- core_dest_dir="plugins/org.eclipse.core.resources.linux/os/linux/ppc/"
- ;;
- esac
-}
-
-src_unpack() {
- mkdir ${S}
- cd ${S}
- unpack ${A}
-
-# epatch ${FILESDIR}/01-distribute_ant_target-3.0.patch
-
- # karltk: doesn't work, is it required anymore?
-# if use kde ; then
-# epatch ${FILESDIR}/02-konqueror_help_browser-3.0.patch
-# fi
-
- # Needed for the IBM JDK
- addwrite "/proc/self/maps"
- addwrite "/proc/cpuinfo"
-
- # Clean up all pre-built code
- ant -q -DinstallWs=gtk -DinstallOs=linux clean
- ant -q -DinstallWs=motif -DinstallOs=linux clean
- find ${S} -name '*.so' -exec rm -f {} \;
- find ${S} -name '*.so.*' -exec rm -f {} \;
- find ${S} -type f -name 'eclipse' -exec rm {} \;
- rm -f eclipse
-
- # Load environment varis for various directories
- set_dirs
-
- # Move around some source code that should have been handled by the build system
- cd ${S}/"${gtk_swt_src_dir}" || die "Directory ${gtk_swt_src_dir} not found"
- cp ${S}/plugins/org.eclipse.swt/Eclipse\ SWT/common/library/* .
- cp ${S}/plugins/org.eclipse.swt/Eclipse\ SWT\ Mozilla/common/library/* .
- cp ${S}/plugins/org.eclipse.swt/Eclipse\ SWT\ Program/gnome/library/* .
- cp ${S}/plugins/org.eclipse.swt/Eclipse\ SWT\ AWT/gtk/library/* .
-
- if use gnome ; then
- gnome_lib=`pkg-config --libs gnome-vfs-module-2.0 libgnome-2.0 libgnomeui-2.0 | sed -e "s:-pthread:-lpthread:" -e "s:-Wl,--export:--export:"`
- fi
-
- if use gtk ; then
- gtk_lib=`pkg-config --libs gtk+-2.0 gthread-2.0 | sed -e "s:-pthread:-lpthread:" -e "s:-Wl,--export:--export:"`
- atk_lib=`pkg-config --libs atk gtk+-2.0 | sed -e "s:-Wl,--export:--export:"`
- fi
-
- sed -e "s:/bluebird/teamswt/swt-builddir/IBMJava2-141:$JAVA_HOME:" \
- -e "s:/bluebird/teamswt/swt-builddir/jdk1.5.0:$JAVA_HOME:" \
- -e "s:/mozilla/mozilla/1.6/linux_gtk2/mozilla/dist:$MOZILLA_FIVE_HOME:" \
- -e "s:/usr/lib/mozilla-1.6:$MOZILLA_FIVE_HOME:" \
- -e "s:\`pkg-config --libs gtk+-2.0 gthread-2.0\`:${gtk_lib}:" \
- -e "s:\`pkg-config --libs atk gtk+-2.0\`:${atk_lib}:" \
- -e "s:\`pkg-config --libs gnome-vfs-module-2.0 libgnome-2.0 libgnomeui-2.0\`:${gnome_lib}:" \
- -e "s:-I\$(JAVA_HOME)/include:-I\$(JAVA_HOME)/include -I\$(JAVA_HOME)/include/linux:" \
- -e "s:-I\$(JAVA_HOME)\t:-I\$(JAVA_HOME)/include -I\$(JAVA_HOME)/include/linux:" \
- -e "s:-L\$(MOZILLA_HOME)/lib -lembed_base_s:-L\$(MOZILLA_HOME):" \
- -e "s:MOZILLACFLAGS = -O:MOZILLACFLAGS = -O -fPIC:" \
- -e "s:\$(JAVA_HOME)/jre/bin:\$(JAVA_HOME)/jre/lib/i386:" \
- -i make_gtk.mak
-
- cd ${S}/"${motif_swt_src_dir}"
- cp ${S}/plugins/org.eclipse.swt/Eclipse\ SWT/common/library/* .
- sed -e "s:/bluebird/teamswt/swt-builddir/IBMJava2-141:$JAVA_HOME:" \
- -e "s:/bluebird/teamswt/swt-builddir/motif21:/usr/X11R6:" \
- -e "s:/usr/lib/qt-3.1:/usr/qt/3:" \
- -e "s:-lkdecore:-L\`kde-config --prefix\`/lib -lkdecore:" \
- -e "s:-I/usr/include/kde:-I\`kde-config --prefix\`/include:" \
- -e "s:-I\$(JAVA_HOME)/include:-I\$(JAVA_HOME)/include -I\$(JAVA_HOME)/include/linux:" \
- -e "s:-I\$(JAVA_HOME)\t:-I\$(JAVA_HOME)/include -I\$(JAVA_HOME)/include/linux:" \
- -e "s:-L\$(MOZILLA_HOME)/lib -lembed_base_s:-L\$(MOZILLA_HOME):" \
- -e "s:-L\$(JAVA_HOME)/jre/bin:-L\$(JAVA_HOME)/jre/lib/i386:" \
- -i make_linux.mak
-
- cd ${S}
- find -type f -name about.mappings -exec sed -e "s/@build@/Gentoo Linux ${PF}/" -i \{\} \;
-}
-
-build_gtk_frontend() {
-
- einfo "Building gtk+ SWT"
-
- # Build the eclipse gtk binary
- cd ${S}/plugins/platform-launcher/library/gtk
- tcsh -f build.csh -output eclipse-gtk -arch $ARCH || die "Failed to build eclipse-gtk"
-
- cd ${S}/"${gtk_swt_src_dir}"
- make -f make_gtk.mak make_swt || die "Failed to build platform-independent SWT support"
- make -f make_gtk.mak make_atk || die "Failed to build atk support"
-
- if use gnome ; then
- einfo "Building GNOME VFS support"
- make -f make_gtk.mak make_gnome || die "Failed to build GNOME VFS support"
- fi
-
- if use mozilla ; then
- einfo "Building Mozilla component"
- make -f make_gtk.mak make_mozilla || die "Failed to build Mozilla support"
- fi
-
- # move the *.so files to the right path so eclipse can find them
- mkdir -p ${S}/"${gtk_swt_dest_dir}"
- mv *.so ${S}/"${gtk_swt_dest_dir}"
-}
-
-build_motif_frontend() {
-
- # Build eclipse motif binary
- cd ${S}/plugins/platform-launcher/library/motif
- tcsh -f build.csh -output eclipse-motif -arch $ARCH || die "Failed to build eclipse-motif"
-
- cd ${S}/"${motif_swt_src_dir}"
-
- make -f make_linux.mak make_swt || die "Failed to build Motif support"
- if use kde ; then
- make -f make_linux.mak make_kde || die "Failed to build KDE support"
- fi
-
- # move the *.so files to the right path so eclipse can find them
- mkdir -p ${S}/"${motif_swt_dest_dir}"
- mv *.so ${S}/"${motif_swt_dest_dir}"
-}
-
-src_compile() {
-
- addwrite "/proc/self/maps"
- addwrite "/proc/cpuinfo"
-
- # Figure out correct boot classpath
- if [ ! -z "`java-config --java-version | grep IBM`" ] ; then
- # IBM JRE
- ant_extra_opts="-Dbootclasspath=$(java-config --jdk-home)/jre/lib/core.jar"
- else
- # Sun derived JREs (Blackdown, Sun)
- ant_extra_opts="-Dbootclasspath=$(java-config --jdk-home)/jre/lib/rt.jar"
- fi
-
- # karltk: jikes doesn't work as a compiler for Eclipse currently.
-# if use jikes ; then
-# ant_extra_opts="${ant_extra_opts} -Dbuild.compiler=jikes"
-# fi
-
- export ANT_OPTS=-Xmx768m
-
- set_dirs
-
- # Build selected frontends
- use gtk && build_gtk_frontend
- use motif && build_motif_frontend
-
- einfo "Building resources.core plugin"
- cd ${S}/${core_src_dir}
- make JDK_INCLUDE="`java-config -O`/include -I`java-config -O`/include/linux" || die "Failed to build resource.core plugin"
- mkdir -p ${S}/"${core_dest_dir}"
- mv *.so ${S}/"${core_dest_dir}"
-
- cd ${S}
-
- # Build all java code -- default to gtk if neither of gtk, motif,
- # kde are set
- if ( use gtk || ! ( use gtk || use motif || use kde ) ); then
- einfo "Building GTK+ frontend -- see compilelog.txt for details"
- ant -q -q \
- -buildfile build.xml \
- -DinstallOs=linux \
- -DinstallWs=gtk \
- -DinstallArch=$ARCH \
- ${ant_extra_opts} compile install \
- || die "Failed to compile java code (gtk+)"
- fi
- if use motif ; then
- einfo "Building Motif frontend -- see compilelog.txt for details"
- ant -q -q \
- -buildfile build.xml \
- -DcollPlace="eclipse-${SLOT}" \
- -DinstallOs=linux \
- -DinstallWs=motif \
- -DinstallArch=$ARCH \
- ${ant_extra_opts} compile install \
- || die "Failed to compile java code (Motif)"
- fi
-
- cat ${FILESDIR}/eclipse-${SLOT}.desktop | \
- sed -e "s/@PV@/${PV}/" \
- > eclipse-${SLOT}.desktop
-}
-
-src_install() {
- eclipse_dir="/usr/lib/eclipse-${SLOT}"
-
- dodir /usr/lib
-
- einfo "Installing features and plugins"
- if use gtk ; then
- [ -f result/linux-gtk-${ARCH}-sdk.zip ] || die "gtk zip bundle was not build properly!"
- unzip -o -q result/linux-gtk-${ARCH}-sdk.zip -d ${D}/usr/lib
- fi
- if use motif ; then
- [ -f result/linux-motif-${ARCH}-sdk.zip ] || die "motif zip bundle was not build properly!"
- unzip -o -q result/linux-motif-${ARCH}-sdk.zip -d ${D}/usr/lib
- fi
-
- mv ${D}/usr/lib/eclipse ${D}/${eclipse_dir}
-
- insinto ${eclipse_dir}
-
- # Install launchers and native code
- exeinto ${eclipse_dir}
- if use gtk ; then
- einfo "Installing eclipse-gtk binary"
- doexe plugins/platform-launcher/library/gtk/eclipse-gtk \
- || die "Failed to install eclipse-gtk"
- fi
- if use motif ; then
- einfo "Installing eclipse-motif binary"
- doexe plugins/platform-launcher/library/motif/eclipse-motif \
- || die "Failed to install eclipse-motif"
- fi
-
- doins plugins/org.eclipse.platform/{startup.jar,splash.bmp}
-
- # Install startup script
- exeinto /usr/bin
- doexe ${FILESDIR}/eclipse-${SLOT}
-
- # Install GNOME .desktop file
- if use gnome ; then
- insinto /usr/share/gnome/apps/Development
- doins eclipse-${SLOT}.desktop
- fi
-
- # Install KDE .desktop file
- if use kde ; then
- # karltk: should check for available kde version(s)
- insinto /usr/kde/3.2/share/applnk/Applications/
- doins eclipse-${SLOT}.desktop
- fi
-
-}
diff --git a/dev-util/eclipse-sdk/eclipse-sdk-3.0.0_rc2.ebuild b/dev-util/eclipse-sdk/eclipse-sdk-3.0.0_rc2.ebuild
deleted file mode 100644
index f347480c7ebb..000000000000
--- a/dev-util/eclipse-sdk/eclipse-sdk-3.0.0_rc2.ebuild
+++ /dev/null
@@ -1,309 +0,0 @@
-# Copyright 1999-2004 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-util/eclipse-sdk/eclipse-sdk-3.0.0_rc2.ebuild,v 1.4 2004/06/25 02:30:39 agriffis Exp $
-
-inherit eutils
-
-DESCRIPTION="Eclipse Tools Platform"
-HOMEPAGE="http://www.eclipse.org/"
-SRC_URI="http://download2.eclipse.org/downloads/drops/S-3.0RC2-200406111814/eclipse-sourceBuild-srcIncluded-3.0RC2.zip"
-IUSE="gtk motif gnome kde mozilla jikes"
-SLOT="3"
-LICENSE="CPL-1.0"
-KEYWORDS="~x86"
-
-RDEPEND="|| ( >=virtual/jdk-1.4.2 =dev-java/blackdown-jdk-1.4.2* )
- || (
- gtk? ( >=x11-libs/gtk+-2.2.4 )
- kde? ( kde-base/kdelibs x11-libs/openmotif )
- motif? ( x11-libs/openmotif )
- >=x11-libs/gtk+-2.2.4
- )
- gnome? ( =gnome-base/gnome-vfs-2* =gnome-base/libgnomeui-2* )
- jikes? ( >=dev-java/jikes-1.19 )
- "
-
-DEPEND="${RDEPEND}
- >=dev-java/ant-1.5.3
- >=sys-apps/findutils-4.1.7
- >=app-shells/tcsh-6.11
- mozilla? ( >=net-www/mozilla-1.5 )
- app-arch/unzip"
-
-pkg_setup() {
- ewarn "This package is _highly_ experimental."
- ewarn "If you are using Eclipse 2.1.x for any serious work, stop now."
- ewarn "You cannot expect to be productive with this packaging of 3.0!"
-
- # karltk: refactor, put in java-pkg.eclass?
- local version="$(java-config --java-version | grep 'java version' | sed -r 's/java version \"(.*)\"/\1/')"
- local ver_rx="([0-9]+)\.([0-9]+)\.([0-9]+)(.*)"
- local major=$(echo ${version} | sed -r "s/${ver_rx}/\1/")
- local minor=$(echo ${version} | sed -r "s/${ver_rx}/\2/")
- local patch=$(echo ${version} | sed -r "s/${ver_rx}/\3/")
- local extra=$(echo ${version} | sed -r "s/${ver_rx}/\4/")
-
- if [ ${major} -ge 1 ] && [ ${minor} -gt 4 ] ; then
- einfo "Detected JDK is sufficient to compile Eclipse (${version} >= 1.4.2)"
- elif [ ${major} -ge 1 ] && [ ${minor} -ge 4 ] && [ ${patch} -ge 2 ] ; then
- einfo "Detected JDK is sufficient to compile Eclipse (${version} >= 1.4.2)"
- else
- die "Detected JDK (${version}) is too old to compile Eclipse, need at least 1.4.2!"
- fi
-}
-
-set_dirs() {
- gtk_launcher_src_dir="plugins/platform-launcher/library/gtk"
- motif_launch_src_dir="plugins/platform-launcher/library/motif"
- gtk_swt_src_dir="plugins/org.eclipse.swt/Eclipse SWT PI/gtk/library"
- motif_swt_src_dir="plugins/org.eclipse.swt/Eclipse SWT PI/motif/library"
-
- core_src_dir="plugins/org.eclipse.core.resources.linux/src"
-
- case $ARCH in
- sparc)
- gtk_swt_dest_dir="plugins/org.eclipse.swt.gtk/os/solaris/sparc"
- motif_swt_dest_dir="plugins/org.eclipse.swt.motif/os/solaris/sparc"
- core_dest_dir="plugins/org.eclipse.core.resources.linux/os/solaris/sparc"
- ;;
- x86)
- gtk_swt_dest_dir="plugins/org.eclipse.swt.gtk/os/linux/x86"
- motif_swt_dest_dir="plugins/org.eclipse.swt.motif/os/linux/x86"
- core_dest_dir="plugins/org.eclipse.core.resources.linux/os/linux/x86"
- ;;
- ppc)
- gtk_swt_dest_dir="plugins/org.eclipse.swt.gtk/os/linux/ppc"
- motif_swt_dest_dir="plugins/org.eclipse.swt.motif/os/linux/ppc"
- core_dest_dir="plugins/org.eclipse.core.resources.linux/os/linux/ppc/"
- ;;
- esac
-}
-
-src_unpack() {
- mkdir ${S}
- cd ${S}
- unpack ${A}
-
- # Needed for the IBM JDK
- addwrite "/proc/self/maps"
- addwrite "/proc/cpuinfo"
-
- # Clean up all pre-built code
- ant -q -DinstallWs=gtk -DinstallOs=linux clean
- ant -q -DinstallWs=motif -DinstallOs=linux clean
- find ${S} -name '*.so' -exec rm -f {} \;
- find ${S} -name '*.so.*' -exec rm -f {} \;
- find ${S} -type f -name 'eclipse' -exec rm {} \;
- rm -f eclipse
-
- # Load environment varis for various directories
- set_dirs
-
- # Move around some source code that should have been handled by the build system
- cd ${S}/"${gtk_swt_src_dir}" || die "Directory ${gtk_swt_src_dir} not found"
- cp ${S}/plugins/org.eclipse.swt/Eclipse\ SWT/common/library/* .
- cp ${S}/plugins/org.eclipse.swt/Eclipse\ SWT\ Mozilla/common/library/* .
- cp ${S}/plugins/org.eclipse.swt/Eclipse\ SWT\ Program/gnome/library/* .
- cp ${S}/plugins/org.eclipse.swt/Eclipse\ SWT\ AWT/gtk/library/* .
-
- if use gnome ; then
- gnome_lib=`pkg-config --libs gnome-vfs-module-2.0 libgnome-2.0 libgnomeui-2.0 | sed -e "s:-pthread:-lpthread:" -e "s:-Wl,--export:--export:"`
- fi
-
- if use gtk ; then
- gtk_lib=`pkg-config --libs gtk+-2.0 gthread-2.0 | sed -e "s:-pthread:-lpthread:" -e "s:-Wl,--export:--export:"`
- atk_lib=`pkg-config --libs atk gtk+-2.0 | sed -e "s:-Wl,--export:--export:"`
- fi
-
- sed -e "s:/bluebird/teamswt/swt-builddir/IBMJava2-141:$JAVA_HOME:" \
- -e "s:/bluebird/teamswt/swt-builddir/jdk1.5.0:$JAVA_HOME:" \
- -e "s:/mozilla/mozilla/1.6/linux_gtk2/mozilla/dist:$MOZILLA_FIVE_HOME:" \
- -e "s:/usr/lib/mozilla-1.6:$MOZILLA_FIVE_HOME:" \
- -e "s:\`pkg-config --libs gtk+-2.0 gthread-2.0\`:${gtk_lib}:" \
- -e "s:\`pkg-config --libs atk gtk+-2.0\`:${atk_lib}:" \
- -e "s:\`pkg-config --libs gnome-vfs-module-2.0 libgnome-2.0 libgnomeui-2.0\`:${gnome_lib}:" \
- -e "s:-I\$(JAVA_HOME)/include:-I\$(JAVA_HOME)/include -I\$(JAVA_HOME)/include/linux:" \
- -e "s:-I\$(JAVA_HOME)\t:-I\$(JAVA_HOME)/include -I\$(JAVA_HOME)/include/linux:" \
- -e "s:-L\$(MOZILLA_HOME)/lib -lembed_base_s:-L\$(MOZILLA_HOME):" \
- -e "s:MOZILLACFLAGS = -O:MOZILLACFLAGS = -O -fPIC:" \
- -e "s:\$(JAVA_HOME)/jre/bin:\$(JAVA_HOME)/jre/lib/i386:" \
- -i make_gtk.mak
-
- cd ${S}/"${motif_swt_src_dir}"
- cp ${S}/plugins/org.eclipse.swt/Eclipse\ SWT/common/library/* .
- sed -e "s:/bluebird/teamswt/swt-builddir/IBMJava2-141:$JAVA_HOME:" \
- -e "s:/bluebird/teamswt/swt-builddir/motif21:/usr/X11R6:" \
- -e "s:/usr/lib/qt-3.1:/usr/qt/3:" \
- -e "s:-lkdecore:-L\`kde-config --prefix\`/lib -lkdecore:" \
- -e "s:-I/usr/include/kde:-I\`kde-config --prefix\`/include:" \
- -e "s:-I\$(JAVA_HOME)/include:-I\$(JAVA_HOME)/include -I\$(JAVA_HOME)/include/linux:" \
- -e "s:-I\$(JAVA_HOME)\t:-I\$(JAVA_HOME)/include -I\$(JAVA_HOME)/include/linux:" \
- -e "s:-L\$(MOZILLA_HOME)/lib -lembed_base_s:-L\$(MOZILLA_HOME):" \
- -e "s:-L\$(JAVA_HOME)/jre/bin:-L\$(JAVA_HOME)/jre/lib/i386:" \
- -i make_linux.mak
-
- cd ${S}
- find -type f -name about.mappings -exec sed -e "s/@build@/Gentoo Linux ${PF}/" -i \{\} \;
-}
-
-build_gtk_frontend() {
-
- einfo "Building gtk+ SWT"
-
- # Build the eclipse gtk binary
- cd ${S}/plugins/platform-launcher/library/gtk
- tcsh -f build.csh -output eclipse-gtk -arch $ARCH || die "Failed to build eclipse-gtk"
-
- cd ${S}/"${gtk_swt_src_dir}"
- make -f make_gtk.mak make_swt || die "Failed to build platform-independent SWT support"
- make -f make_gtk.mak make_atk || die "Failed to build atk support"
-
- if use gnome ; then
- einfo "Building GNOME VFS support"
- make -f make_gtk.mak make_gnome || die "Failed to build GNOME VFS support"
- fi
-
- if use mozilla ; then
- einfo "Building Mozilla component"
- make -f make_gtk.mak make_mozilla || die "Failed to build Mozilla support"
- fi
-
- # move the *.so files to the right path so eclipse can find them
- mkdir -p ${S}/"${gtk_swt_dest_dir}"
- mv *.so ${S}/"${gtk_swt_dest_dir}"
-}
-
-build_motif_frontend() {
-
- # Build eclipse motif binary
- cd ${S}/plugins/platform-launcher/library/motif
- tcsh -f build.csh -output eclipse-motif -arch $ARCH || die "Failed to build eclipse-motif"
-
- cd ${S}/"${motif_swt_src_dir}"
-
- make -f make_linux.mak make_swt || die "Failed to build Motif support"
- if use kde ; then
- make -f make_linux.mak make_kde || die "Failed to build KDE support"
- fi
-
- # move the *.so files to the right path so eclipse can find them
- mkdir -p ${S}/"${motif_swt_dest_dir}"
- mv *.so ${S}/"${motif_swt_dest_dir}"
-}
-
-src_compile() {
-
- addwrite "/proc/self/maps"
- addwrite "/proc/cpuinfo"
-
- # Figure out correct boot classpath
- if [ ! -z "`java-config --java-version | grep IBM`" ] ; then
- # IBM JRE
- ant_extra_opts="-Dbootclasspath=$(java-config --jdk-home)/jre/lib/core.jar"
- else
- # Sun derived JREs (Blackdown, Sun)
- ant_extra_opts="-Dbootclasspath=$(java-config --jdk-home)/jre/lib/rt.jar"
- fi
-
- # karltk: jikes doesn't work as a compiler for Eclipse currently.
-# if use jikes ; then
-# ant_extra_opts="${ant_extra_opts} -Dbuild.compiler=jikes"
-# fi
-
- export ANT_OPTS=-Xmx768m
-
- set_dirs
-
- # Build selected frontends
- use gtk && build_gtk_frontend
- use motif && build_motif_frontend
-
- einfo "Building resources.core plugin"
- cd ${S}/${core_src_dir}
- make JDK_INCLUDE="`java-config -O`/include -I`java-config -O`/include/linux" || die "Failed to build resource.core plugin"
- mkdir -p ${S}/"${core_dest_dir}"
- mv *.so ${S}/"${core_dest_dir}"
-
- cd ${S}
-
- # Build all java code -- default to gtk if neither of gtk, motif,
- # kde are set
- if ( use gtk || ! ( use gtk || use motif || use kde ) ); then
- einfo "Building GTK+ frontend -- see compilelog.txt for details"
- ant -q -q \
- -buildfile build.xml \
- -DinstallOs=linux \
- -DinstallWs=gtk \
- -DinstallArch=$ARCH \
- ${ant_extra_opts} compile install \
- || die "Failed to compile java code (gtk+)"
- fi
- if use motif ; then
- einfo "Building Motif frontend -- see compilelog.txt for details"
- ant -q -q \
- -buildfile build.xml \
- -DcollPlace="eclipse-${SLOT}" \
- -DinstallOs=linux \
- -DinstallWs=motif \
- -DinstallArch=$ARCH \
- ${ant_extra_opts} compile install \
- || die "Failed to compile java code (Motif)"
- fi
-
- cat ${FILESDIR}/eclipse-${SLOT}.desktop | \
- sed -e "s/@PV@/${PV}/" \
- > eclipse-${SLOT}.desktop
-}
-
-src_install() {
- eclipse_dir="/usr/lib/eclipse-${SLOT}"
-
- dodir /usr/lib
-
- einfo "Installing features and plugins"
- if use gtk ; then
- [ -f result/linux-gtk-${ARCH}-sdk.zip ] || die "gtk zip bundle was not build properly!"
- unzip -o -q result/linux-gtk-${ARCH}-sdk.zip -d ${D}/usr/lib
- fi
- if use motif ; then
- [ -f result/linux-motif-${ARCH}-sdk.zip ] || die "motif zip bundle was not build properly!"
- unzip -o -q result/linux-motif-${ARCH}-sdk.zip -d ${D}/usr/lib
- fi
-
- mv ${D}/usr/lib/eclipse ${D}/${eclipse_dir}
-
- insinto ${eclipse_dir}
-
- # Install launchers and native code
- exeinto ${eclipse_dir}
- if use gtk ; then
- einfo "Installing eclipse-gtk binary"
- doexe plugins/platform-launcher/library/gtk/eclipse-gtk \
- || die "Failed to install eclipse-gtk"
- fi
- if use motif ; then
- einfo "Installing eclipse-motif binary"
- doexe plugins/platform-launcher/library/motif/eclipse-motif \
- || die "Failed to install eclipse-motif"
- fi
-
- doins plugins/org.eclipse.platform/{startup.jar,splash.bmp}
-
- # Install startup script
- exeinto /usr/bin
- doexe ${FILESDIR}/eclipse-${SLOT}
-
- # Install GNOME .desktop file
- if use gnome ; then
- insinto /usr/share/gnome/apps/Development
- doins eclipse-${SLOT}.desktop
- fi
-
- # Install KDE .desktop file
- if use kde ; then
- # karltk: should check for available kde version(s)
- insinto /usr/kde/3.2/share/applnk/Applications/
- doins eclipse-${SLOT}.desktop
- fi
-
-}
diff --git a/dev-util/eclipse-sdk/eclipse-sdk-3.0.0_rc3.ebuild b/dev-util/eclipse-sdk/eclipse-sdk-3.0.0_rc3.ebuild
deleted file mode 100644
index 151547f9eeae..000000000000
--- a/dev-util/eclipse-sdk/eclipse-sdk-3.0.0_rc3.ebuild
+++ /dev/null
@@ -1,313 +0,0 @@
-# Copyright 1999-2004 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-util/eclipse-sdk/eclipse-sdk-3.0.0_rc3.ebuild,v 1.4 2004/06/29 13:25:56 karltk Exp $
-
-inherit eutils
-
-DESCRIPTION="Eclipse Tools Platform"
-HOMEPAGE="http://www.eclipse.org/"
-SRC_URI="http://download2.eclipse.org/downloads/drops/S-3.0RC3-200406192000/eclipse-sourceBuild-srcIncluded-3.0RC3.zip"
-IUSE="gtk motif gnome kde mozilla jikes"
-SLOT="3"
-LICENSE="CPL-1.0"
-KEYWORDS="~x86"
-
-RDEPEND="|| ( >=virtual/jdk-1.4.2 =dev-java/blackdown-jdk-1.4.2* )
- || (
- gtk? ( >=x11-libs/gtk+-2.2.4 )
- kde? ( kde-base/kdelibs x11-libs/openmotif )
- motif? ( x11-libs/openmotif )
- >=x11-libs/gtk+-2.2.4
- )
- gnome? ( =gnome-base/gnome-vfs-2* =gnome-base/libgnomeui-2* )
- jikes? ( >=dev-java/jikes-1.19 )
- "
-
-DEPEND="${RDEPEND}
- >=dev-java/ant-1.5.3
- >=sys-apps/findutils-4.1.7
- >=app-shells/tcsh-6.11
- mozilla? ( >=net-www/mozilla-1.5 )
- app-arch/unzip"
-
-pkg_setup() {
- ewarn "This package is _highly_ experimental."
- ewarn "If you are using Eclipse 2.1.x for any serious work, stop now."
- ewarn "You cannot expect to be productive with this packaging of 3.0!"
-
- # karltk: refactor, put in java-pkg.eclass?
- local version="$(java-config --java-version | grep 'java version' | sed -r 's/java version \"(.*)\"/\1/')"
- local ver_rx="([0-9]+)\.([0-9]+)\.([0-9]+)(.*)"
- local major=$(echo ${version} | sed -r "s/${ver_rx}/\1/")
- local minor=$(echo ${version} | sed -r "s/${ver_rx}/\2/")
- local patch=$(echo ${version} | sed -r "s/${ver_rx}/\3/")
- local extra=$(echo ${version} | sed -r "s/${ver_rx}/\4/")
-
- if [ ${major} -ge 1 ] && [ ${minor} -gt 4 ] ; then
- einfo "Detected JDK is sufficient to compile Eclipse (${version} >= 1.4.2)"
- elif [ ${major} -ge 1 ] && [ ${minor} -ge 4 ] && [ ${patch} -ge 2 ] ; then
- einfo "Detected JDK is sufficient to compile Eclipse (${version} >= 1.4.2)"
- else
- die "Detected JDK (${version}) is too old to compile Eclipse, need at least 1.4.2!"
- fi
-
- if ! ( use gtk || use motif ) ; then
- die "You need to select either gtk or motif as your frontend, with a USE flag"
- fi
-}
-
-set_dirs() {
- gtk_launcher_src_dir="plugins/platform-launcher/library/gtk"
- motif_launch_src_dir="plugins/platform-launcher/library/motif"
- gtk_swt_src_dir="plugins/org.eclipse.swt/Eclipse SWT PI/gtk/library"
- motif_swt_src_dir="plugins/org.eclipse.swt/Eclipse SWT PI/motif/library"
-
- core_src_dir="plugins/org.eclipse.core.resources.linux/src"
-
- case $ARCH in
- sparc)
- gtk_swt_dest_dir="plugins/org.eclipse.swt.gtk/os/solaris/sparc"
- motif_swt_dest_dir="plugins/org.eclipse.swt.motif/os/solaris/sparc"
- core_dest_dir="plugins/org.eclipse.core.resources.linux/os/solaris/sparc"
- ;;
- x86)
- gtk_swt_dest_dir="plugins/org.eclipse.swt.gtk/os/linux/x86"
- motif_swt_dest_dir="plugins/org.eclipse.swt.motif/os/linux/x86"
- core_dest_dir="plugins/org.eclipse.core.resources.linux/os/linux/x86"
- ;;
- ppc)
- gtk_swt_dest_dir="plugins/org.eclipse.swt.gtk/os/linux/ppc"
- motif_swt_dest_dir="plugins/org.eclipse.swt.motif/os/linux/ppc"
- core_dest_dir="plugins/org.eclipse.core.resources.linux/os/linux/ppc/"
- ;;
- esac
-}
-
-src_unpack() {
- mkdir ${S}
- cd ${S}
- unpack ${A}
-
- # Needed for the IBM JDK
- addwrite "/proc/self/maps"
- addwrite "/proc/cpuinfo"
-
- # Clean up all pre-built code
- ant -q -DinstallWs=gtk -DinstallOs=linux clean
- ant -q -DinstallWs=motif -DinstallOs=linux clean
- find ${S} -name '*.so' -exec rm -f {} \;
- find ${S} -name '*.so.*' -exec rm -f {} \;
- find ${S} -type f -name 'eclipse' -exec rm {} \;
- rm -f eclipse
-
- # Load environment varis for various directories
- set_dirs
-
- # Move around some source code that should have been handled by the build system
- cd ${S}/"${gtk_swt_src_dir}" || die "Directory ${gtk_swt_src_dir} not found"
- cp ${S}/plugins/org.eclipse.swt/Eclipse\ SWT/common/library/* .
- cp ${S}/plugins/org.eclipse.swt/Eclipse\ SWT\ Mozilla/common/library/* .
- cp ${S}/plugins/org.eclipse.swt/Eclipse\ SWT\ Program/gnome/library/* .
- cp ${S}/plugins/org.eclipse.swt/Eclipse\ SWT\ AWT/gtk/library/* .
-
- if use gnome ; then
- gnome_lib=`pkg-config --libs gnome-vfs-module-2.0 libgnome-2.0 libgnomeui-2.0 | sed -e "s:-pthread:-lpthread:" -e "s:-Wl,--export:--export:"`
- fi
-
- if use gtk ; then
- gtk_lib=`pkg-config --libs gtk+-2.0 gthread-2.0 | sed -e "s:-pthread:-lpthread:" -e "s:-Wl,--export:--export:"`
- atk_lib=`pkg-config --libs atk gtk+-2.0 | sed -e "s:-Wl,--export:--export:"`
- fi
-
- sed -e "s:/bluebird/teamswt/swt-builddir/IBMJava2-141:$JAVA_HOME:" \
- -e "s:/bluebird/teamswt/swt-builddir/jdk1.5.0:$JAVA_HOME:" \
- -e "s:/mozilla/mozilla/1.6/linux_gtk2/mozilla/dist:$MOZILLA_FIVE_HOME:" \
- -e "s:/usr/lib/mozilla-1.6:$MOZILLA_FIVE_HOME:" \
- -e "s:\`pkg-config --libs gtk+-2.0 gthread-2.0\`:${gtk_lib}:" \
- -e "s:\`pkg-config --libs atk gtk+-2.0\`:${atk_lib}:" \
- -e "s:\`pkg-config --libs gnome-vfs-module-2.0 libgnome-2.0 libgnomeui-2.0\`:${gnome_lib}:" \
- -e "s:-I\$(JAVA_HOME)/include:-I\$(JAVA_HOME)/include -I\$(JAVA_HOME)/include/linux:" \
- -e "s:-I\$(JAVA_HOME)\t:-I\$(JAVA_HOME)/include -I\$(JAVA_HOME)/include/linux:" \
- -e "s:-L\$(MOZILLA_HOME)/lib -lembed_base_s:-L\$(MOZILLA_HOME):" \
- -e "s:MOZILLACFLAGS = -O:MOZILLACFLAGS = -O -fPIC:" \
- -e "s:\$(JAVA_HOME)/jre/bin:\$(JAVA_HOME)/jre/lib/i386:" \
- -i make_gtk.mak
-
- cd ${S}/"${motif_swt_src_dir}"
- cp ${S}/plugins/org.eclipse.swt/Eclipse\ SWT/common/library/* .
- sed -e "s:/bluebird/teamswt/swt-builddir/IBMJava2-141:$JAVA_HOME:" \
- -e "s:/bluebird/teamswt/swt-builddir/motif21:/usr/X11R6:" \
- -e "s:/usr/lib/qt-3.1:/usr/qt/3:" \
- -e "s:-lkdecore:-L\`kde-config --prefix\`/lib -lkdecore:" \
- -e "s:-I/usr/include/kde:-I\`kde-config --prefix\`/include:" \
- -e "s:-I\$(JAVA_HOME)/include:-I\$(JAVA_HOME)/include -I\$(JAVA_HOME)/include/linux:" \
- -e "s:-I\$(JAVA_HOME)\t:-I\$(JAVA_HOME)/include -I\$(JAVA_HOME)/include/linux:" \
- -e "s:-L\$(MOZILLA_HOME)/lib -lembed_base_s:-L\$(MOZILLA_HOME):" \
- -e "s:-L\$(JAVA_HOME)/jre/bin:-L\$(JAVA_HOME)/jre/lib/i386:" \
- -i make_linux.mak
-
- cd ${S}
- find -type f -name about.mappings -exec sed -e "s/@build@/Gentoo Linux ${PF}/" -i \{\} \;
-}
-
-build_gtk_frontend() {
-
- einfo "Building gtk+ SWT"
-
- # Build the eclipse gtk binary
- cd ${S}/plugins/platform-launcher/library/gtk
- tcsh -f build.csh -output eclipse-gtk -arch $ARCH || die "Failed to build eclipse-gtk"
-
- cd ${S}/"${gtk_swt_src_dir}"
- make -f make_gtk.mak make_swt || die "Failed to build platform-independent SWT support"
- make -f make_gtk.mak make_atk || die "Failed to build atk support"
-
- if use gnome ; then
- einfo "Building GNOME VFS support"
- make -f make_gtk.mak make_gnome || die "Failed to build GNOME VFS support"
- fi
-
- if use mozilla ; then
- einfo "Building Mozilla component"
- make -f make_gtk.mak make_mozilla || die "Failed to build Mozilla support"
- fi
-
- # move the *.so files to the right path so eclipse can find them
- mkdir -p ${S}/"${gtk_swt_dest_dir}"
- mv *.so ${S}/"${gtk_swt_dest_dir}"
-}
-
-build_motif_frontend() {
-
- # Build eclipse motif binary
- cd ${S}/plugins/platform-launcher/library/motif
- tcsh -f build.csh -output eclipse-motif -arch $ARCH || die "Failed to build eclipse-motif"
-
- cd ${S}/"${motif_swt_src_dir}"
-
- make -f make_linux.mak make_swt || die "Failed to build Motif support"
- if use kde ; then
- make -f make_linux.mak make_kde || die "Failed to build KDE support"
- fi
-
- # move the *.so files to the right path so eclipse can find them
- mkdir -p ${S}/"${motif_swt_dest_dir}"
- mv *.so ${S}/"${motif_swt_dest_dir}"
-}
-
-src_compile() {
-
- addwrite "/proc/self/maps"
- addwrite "/proc/cpuinfo"
-
- # Figure out correct boot classpath
- if [ ! -z "`java-config --java-version | grep IBM`" ] ; then
- # IBM JRE
- ant_extra_opts="-Dbootclasspath=$(java-config --jdk-home)/jre/lib/core.jar"
- else
- # Sun derived JREs (Blackdown, Sun)
- ant_extra_opts="-Dbootclasspath=$(java-config --jdk-home)/jre/lib/rt.jar"
- fi
-
- # karltk: jikes doesn't work as a compiler for Eclipse currently.
-# if use jikes ; then
-# ant_extra_opts="${ant_extra_opts} -Dbuild.compiler=jikes"
-# fi
-
- export ANT_OPTS=-Xmx768m
-
- set_dirs
-
- # Build selected frontends
- use gtk && build_gtk_frontend
- use motif && build_motif_frontend
-
- einfo "Building resources.core plugin"
- cd ${S}/${core_src_dir}
- make JDK_INCLUDE="`java-config -O`/include -I`java-config -O`/include/linux" || die "Failed to build resource.core plugin"
- mkdir -p ${S}/"${core_dest_dir}"
- mv *.so ${S}/"${core_dest_dir}"
-
- cd ${S}
-
- # Build all java code -- default to gtk if neither of gtk, motif,
- # kde are set
- if ( use gtk || ! ( use gtk || use motif || use kde ) ); then
- einfo "Building GTK+ frontend -- see compilelog.txt for details"
- ant -q -q \
- -buildfile build.xml \
- -DinstallOs=linux \
- -DinstallWs=gtk \
- -DinstallArch=$ARCH \
- ${ant_extra_opts} compile install \
- || die "Failed to compile java code (gtk+)"
- fi
- if use motif ; then
- einfo "Building Motif frontend -- see compilelog.txt for details"
- ant -q -q \
- -buildfile build.xml \
- -DcollPlace="eclipse-${SLOT}" \
- -DinstallOs=linux \
- -DinstallWs=motif \
- -DinstallArch=$ARCH \
- ${ant_extra_opts} compile install \
- || die "Failed to compile java code (Motif)"
- fi
-
- cat ${FILESDIR}/eclipse-${SLOT}.desktop | \
- sed -e "s/@PV@/${PV}/" \
- > eclipse-${SLOT}.desktop
-}
-
-src_install() {
- eclipse_dir="/usr/lib/eclipse-${SLOT}"
-
- dodir /usr/lib
-
- einfo "Installing features and plugins"
- if use gtk ; then
- [ -f result/linux-gtk-${ARCH}-sdk.zip ] || die "gtk zip bundle was not build properly!"
- unzip -o -q result/linux-gtk-${ARCH}-sdk.zip -d ${D}/usr/lib
- fi
- if use motif ; then
- [ -f result/linux-motif-${ARCH}-sdk.zip ] || die "motif zip bundle was not build properly!"
- unzip -o -q result/linux-motif-${ARCH}-sdk.zip -d ${D}/usr/lib
- fi
-
- mv ${D}/usr/lib/eclipse ${D}/${eclipse_dir}
-
- insinto ${eclipse_dir}
-
- # Install launchers and native code
- exeinto ${eclipse_dir}
- if use gtk ; then
- einfo "Installing eclipse-gtk binary"
- doexe plugins/platform-launcher/library/gtk/eclipse-gtk \
- || die "Failed to install eclipse-gtk"
- fi
- if use motif ; then
- einfo "Installing eclipse-motif binary"
- doexe plugins/platform-launcher/library/motif/eclipse-motif \
- || die "Failed to install eclipse-motif"
- fi
-
- doins plugins/org.eclipse.platform/{startup.jar,splash.bmp}
-
- # Install startup script
- exeinto /usr/bin
- doexe ${FILESDIR}/eclipse-${SLOT}
-
- # Install GNOME .desktop file
- if use gnome ; then
- insinto /usr/share/gnome/apps/Development
- doins eclipse-${SLOT}.desktop
- fi
-
- # Install KDE .desktop file
- if use kde ; then
- # karltk: should check for available kde version(s)
- insinto /usr/kde/3.2/share/applnk/Applications/
- doins eclipse-${SLOT}.desktop
- fi
-
-}
diff --git a/dev-util/eclipse-sdk/files/digest-eclipse-sdk-3.0.0_pre9 b/dev-util/eclipse-sdk/files/digest-eclipse-sdk-3.0.0_pre9
deleted file mode 100644
index 4e1671f90ebd..000000000000
--- a/dev-util/eclipse-sdk/files/digest-eclipse-sdk-3.0.0_pre9
+++ /dev/null
@@ -1 +0,0 @@
-MD5 8213743eaa68db847019f88a5b441c40 eclipse-sourceBuild-srcIncluded-3.0M9.zip 54896491
diff --git a/dev-util/eclipse-sdk/files/digest-eclipse-sdk-3.0.0_rc1 b/dev-util/eclipse-sdk/files/digest-eclipse-sdk-3.0.0_rc1
deleted file mode 100644
index 8605bbf7b2bf..000000000000
--- a/dev-util/eclipse-sdk/files/digest-eclipse-sdk-3.0.0_rc1
+++ /dev/null
@@ -1 +0,0 @@
-MD5 feff93916e51d0b05cf595fa3ee0ef26 eclipse-sourceBuild-srcIncluded-3.0RC1.zip 54029445
diff --git a/dev-util/eclipse-sdk/files/digest-eclipse-sdk-3.0.0_rc2 b/dev-util/eclipse-sdk/files/digest-eclipse-sdk-3.0.0_rc2
deleted file mode 100644
index 11a1319795e6..000000000000
--- a/dev-util/eclipse-sdk/files/digest-eclipse-sdk-3.0.0_rc2
+++ /dev/null
@@ -1 +0,0 @@
-MD5 28b77c8e3cb3bd8a7f87edd62acc5f18 eclipse-sourceBuild-srcIncluded-3.0RC2.zip 53515275
diff --git a/dev-util/eclipse-sdk/files/digest-eclipse-sdk-3.0.0_rc3 b/dev-util/eclipse-sdk/files/digest-eclipse-sdk-3.0.0_rc3
deleted file mode 100644
index 27bfa6e78a9b..000000000000
--- a/dev-util/eclipse-sdk/files/digest-eclipse-sdk-3.0.0_rc3
+++ /dev/null
@@ -1 +0,0 @@
-MD5 b3bdd97e5cca233466d8eb92c2c5fb20 eclipse-sourceBuild-srcIncluded-3.0RC3.zip 52915397