diff options
author | Paul de Vrieze <pauldv@gentoo.org> | 2007-06-29 05:53:35 +0000 |
---|---|---|
committer | Paul de Vrieze <pauldv@gentoo.org> | 2007-06-29 05:53:35 +0000 |
commit | ac5c340ff59a17dc170dbcd0c7c50ae55abd9a6c (patch) | |
tree | dbe2fe9994454bc07f35a615776b5c37e6bcd0f3 /dev-util | |
parent | Add syntek driver for laptop webcam (diff) | |
download | pauldv-ac5c340ff59a17dc170dbcd0c7c50ae55abd9a6c.tar.gz pauldv-ac5c340ff59a17dc170dbcd0c7c50ae55abd9a6c.tar.bz2 pauldv-ac5c340ff59a17dc170dbcd0c7c50ae55abd9a6c.zip |
Add a new eclipse ebuild, and get the annotation processing tool working
svn path=/trunk/overlay/; revision=36
Diffstat (limited to 'dev-util')
-rw-r--r-- | dev-util/eclipse-sdk/Manifest | 25 | ||||
-rw-r--r-- | dev-util/eclipse-sdk/NOTES | 1 | ||||
-rw-r--r-- | dev-util/eclipse-sdk/eclipse-sdk-3.2.2.ebuild | 404 | ||||
-rw-r--r-- | dev-util/eclipse-sdk/files/digest-eclipse-sdk-3.2.2 | 6 | ||||
-rw-r--r-- | dev-util/eclipse-sdk/files/eclipse-3.2 | 36 | ||||
-rw-r--r-- | dev-util/eclipse-sdk/files/eclipse-pde-build.patch | 35 | ||||
-rw-r--r-- | dev-util/eclipse-sdk/files/eclipse-sdk-3.2.2-build.patch | 29 |
7 files changed, 536 insertions, 0 deletions
diff --git a/dev-util/eclipse-sdk/Manifest b/dev-util/eclipse-sdk/Manifest new file mode 100644 index 0000000..903ac7a --- /dev/null +++ b/dev-util/eclipse-sdk/Manifest @@ -0,0 +1,25 @@ +AUX eclipse-3.2 1152 RMD160 6d7a2d67e1aa0fd011d056d2b287dc7196528b44 SHA1 3562c650d4e41f5186b396d31630c2faa7c132a9 SHA256 5f10f1cbae578c394e98b5d380c0d4f362620e7ff87fa3bde226e5533d34b8cf +MD5 f1ddf3f6d458ed2b2e6f92b35e6350f2 files/eclipse-3.2 1152 +RMD160 6d7a2d67e1aa0fd011d056d2b287dc7196528b44 files/eclipse-3.2 1152 +SHA256 5f10f1cbae578c394e98b5d380c0d4f362620e7ff87fa3bde226e5533d34b8cf files/eclipse-3.2 1152 +AUX eclipse-pde-build.patch 1865 RMD160 2c1753f39692a55b4828b55899951e724732f8d7 SHA1 2aa1067557800dbaa6ea743c71305f98006469d3 SHA256 22e8ab7a140366aa278aca5e7d6355e5b5462f7a3c95afd5457a1d6edf0fe22b +MD5 552929780e1838e1c6d27941d1da80a2 files/eclipse-pde-build.patch 1865 +RMD160 2c1753f39692a55b4828b55899951e724732f8d7 files/eclipse-pde-build.patch 1865 +SHA256 22e8ab7a140366aa278aca5e7d6355e5b5462f7a3c95afd5457a1d6edf0fe22b files/eclipse-pde-build.patch 1865 +AUX eclipse-sdk-3.2.2-build.patch 1203 RMD160 22906f06d9e2b4f59be9803d108a369e4008f2f1 SHA1 27a6af8df79a18e0c3523889fc72f18a8750c674 SHA256 996e68f13ddf05d3d338b16ad626d564c17bd9a0f553f273c13b180eda91eaac +MD5 799e4c75c30af9b101b2f7d445ce504a files/eclipse-sdk-3.2.2-build.patch 1203 +RMD160 22906f06d9e2b4f59be9803d108a369e4008f2f1 files/eclipse-sdk-3.2.2-build.patch 1203 +SHA256 996e68f13ddf05d3d338b16ad626d564c17bd9a0f553f273c13b180eda91eaac files/eclipse-sdk-3.2.2-build.patch 1203 +DIST eclipse-sdk-3.2.1-r1-patches.tar.bz2 85951 RMD160 55a0f98229feb47d936acbcdcf7ad42074ebdb5c SHA1 4af81d8615dbfbd771136c441ee8a7b53096b468 SHA256 fa9f8d047d8375ab55eaca12c110bd9faf9eb5452af2a70d038afd5a6b4b5171 +DIST eclipse-sourceBuild-srcIncluded-3.2.2.zip 82487328 RMD160 520114b67c2352181fab4e8dbf404e2639ad5a60 SHA1 9efd9705c1dd4c22e2830a05d3cd291c00d844e9 SHA256 84759dc6085e68b31228ce2b226778494481be38681dc8ca5b0e2f226bf963a7 +EBUILD eclipse-sdk-3.2.2.ebuild 12998 RMD160 d0e998ff449da4258de1ce9f07eb8615fbae30aa SHA1 9f1922070a6c999c251426290b691568c9c0efc2 SHA256 13a33133ddb605d73fbb228e804f1cea006a8c8df5dc71ef4fb9eee3b008fe36 +MD5 6c07df37aa228dd3dd6586ad34743e78 eclipse-sdk-3.2.2.ebuild 12998 +RMD160 d0e998ff449da4258de1ce9f07eb8615fbae30aa eclipse-sdk-3.2.2.ebuild 12998 +SHA256 13a33133ddb605d73fbb228e804f1cea006a8c8df5dc71ef4fb9eee3b008fe36 eclipse-sdk-3.2.2.ebuild 12998 +MISC NOTES 123 RMD160 e11c76ac62f5617e97a650caf6c6b16a2001083a SHA1 320e27c438dd595bc45dc875e70ed2b01839834a SHA256 3eaeb61721556d886368d3d43b16bf220b9224512f4d96daf43a1e962840c0ae +MD5 ec71bbf8b965eae4167e6aa54bb24d7f NOTES 123 +RMD160 e11c76ac62f5617e97a650caf6c6b16a2001083a NOTES 123 +SHA256 3eaeb61721556d886368d3d43b16bf220b9224512f4d96daf43a1e962840c0ae NOTES 123 +MD5 1bd146c6fca7a91098bf49753cf9d79a files/digest-eclipse-sdk-3.2.2 596 +RMD160 571e218f7140769c295c074de88688f0a436e546 files/digest-eclipse-sdk-3.2.2 596 +SHA256 ec061b2f82cc67b253633933cb2967c950055fcadc2bc659a944df485c0ce9f1 files/digest-eclipse-sdk-3.2.2 596 diff --git a/dev-util/eclipse-sdk/NOTES b/dev-util/eclipse-sdk/NOTES new file mode 100644 index 0000000..d61b5b1 --- /dev/null +++ b/dev-util/eclipse-sdk/NOTES @@ -0,0 +1 @@ +A newer version that supports all the 1.5 niceness, and as such does not use most of the patches from the gentoo patchset. diff --git a/dev-util/eclipse-sdk/eclipse-sdk-3.2.2.ebuild b/dev-util/eclipse-sdk/eclipse-sdk-3.2.2.ebuild new file mode 100644 index 0000000..8e2a6a1 --- /dev/null +++ b/dev-util/eclipse-sdk/eclipse-sdk-3.2.2.ebuild @@ -0,0 +1,404 @@ +# Copyright 1999-2007 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.2.1-r2.ebuild,v 1.5 2007/06/15 20:48:10 dertobi123 Exp $ + +inherit eutils java-pkg-2 flag-o-matic check-reqs multilib + +DATESTAMP="200702121330" +MY_A="eclipse-sourceBuild-srcIncluded-${PV}.zip" +DESCRIPTION="Eclipse Tools Platform" +HOMEPAGE="http://www.eclipse.org/" +SRC_URI="http://download.eclipse.org/eclipse/downloads/drops/R-${PV}-${DATESTAMP}/${MY_A} +mirror://gentoo/${PN}-3.2.1-r1-patches.tar.bz2" +IUSE="branding cairo gnome opengl seamonkey " +SLOT="3.2" +LICENSE="EPL-1.0" +# TODO might be able to have ia64 and ppc64 support +KEYWORDS="amd64 ppc x86" +S="${WORKDIR}" + +COMMON_DEP=" + >=x11-libs/gtk+-2.2.4 + seamonkey? ( www-client/seamonkey ) + gnome? ( =gnome-base/gnome-vfs-2* =gnome-base/libgnomeui-2* ) + opengl? ( virtual/opengl ) + >=dev-java/ant-1.7.0 + >=dev-java/ant-tasks-1.7.0-r2 + =dev-java/junit-3* + =dev-java/lucene-1*" + +RDEPEND=">=virtual/jre-1.5 + ${COMMON_DEP}" +DEPEND=" + ${COMMON_DEP} + =virtual/jdk-1.5* + >=virtual/jdk-1.5 + >=sys-apps/findutils-4.1.7 + app-arch/unzip + app-arch/zip" + +# Force 1.4 to be used for building +JAVA_PKG_NV_DEPEND="=virtual/jdk-1.5*" + +ECLIPSE_DIR="/usr/lib/eclipse-${SLOT}" +ECLIPSE_LINKS_DIR="${ECLIPSE_DIR}/links" + +# TODO: +# - use CFLAGS from make.conf when building native libraries +# - must patch eclipse build files +# - also submit patch to bugs.eclipse.org +# - ppc support not tested, but not explicitly broken either +# - make a extension location in /var/lib that's writable by 'eclipse' group +# - update man page + +pkg_setup() { + java-pkg-2_pkg_setup + + debug-print "Checking for sufficient physical RAM" + CHECKREQS_MEMORY="768" + check_reqs + + # All other gentoo archs match in eclipse build system except amd64 + if use amd64 ; then + eclipsearch=x86_64 + else + eclipsearch=${ARCH} + fi + + if use x86 ; then + jvmarch=i386 + else + jvmarch=${ARCH} + fi + + # Add the eclipse group, for our plugins/features directories + enewgroup eclipse +} + +src_unpack() { + unpack ${A} + + fix-swt-targets + + pushd plugins/org.apache.ant >/dev/null || die "pushd failed" + rm -rf lib + ln -s /usr/share/ant/lib lib + popd >/dev/null + + pushd plugins/org.junit >/dev/null + rm *.jar + java-pkg_jar-from junit + popd >/dev/null + + pushd plugins/org.apache.lucene >/dev/null + rm *.jar + java-pkg_jar-from lucene-1 lucene.jar lucene-1.4.3.jar + popd >/dev/null + # For some reason popd above fails to go back to workdir. + # ^Was caused by the three argument form of java-pkg_jar-from + # that Caster recently broke in the eclass. The cd here does not + # hurt and I like these comments. + # https://bugs.gentoo.org/show_bug.cgi?id=163969 + cd "${WORKDIR}" + apply-patchset +} + +src_compile() { + # Figure out VM, set up ant classpath and native library paths + setup-jvm-opts + + if use seamonkey ; then + einfo "Will compile embedded seamonkey support against www-client/seamonkey" + setup-mozilla-opts + else + einfo "Not building embedded seamonkey support" + fi + + local java5vm=$(depend-java-query --get-vm "=virtual/jdk-1.5") + local java5home=$(GENTOO_VM=${java5vm} java-config --jdk-home) + einfo "Using ${java5home} for java5home" + # TODO patch build to take buildId + ./build -os linux \ + -arch ${eclipsearch} \ + -ws gtk \ + -java5home ${java5home} || die "build failed" +} + +src_install() { + dodir /usr/lib + + # TODO maybe there's a better way of installing than extracting the tar? + [[ -f result/linux-gtk-${eclipsearch}-sdk.tar.gz ]] || die "tar.gz bundle was not built properly!" + tar zxf result/linux-gtk-${eclipsearch}-sdk.tar.gz -C ${D}/usr/lib \ + || die "Failed to extract the built package" + + mv ${D}/usr/lib/eclipse ${D}/${ECLIPSE_DIR} + #insinto ${ECLIPSE_DIR} + echo "-Djava.library.path=/usr/lib" >> ${D}/${ECLIPSE_DIR}/eclipse.ini + + debug-print "Installing eclipse-gtk binary" + exeinto ${ECLIPSE_DIR} + doexe eclipse || die "Failed to install eclipse binary" + + # Install startup script + exeinto /usr/bin + doexe ${FILESDIR}/eclipse-${SLOT} + + make_desktop_entry eclipse-${SLOT} "Eclipse ${PV}" "${ECLIPSE_DIR}/icon.xpm" +} + +# ----------------------------------------------------------------------------- +# Helper functions +# ----------------------------------------------------------------------------- + +apply-patchset() { + # begin: patches/comments from fedora + + # Build JNI libs + # FIXME: these should be built by upstream build method + # http://www.bagu.org/eclipse/plugin-source-drops.html + # https://bugs.eclipse.org/bugs/show_bug.cgi?id=71637 + # https://bugs.eclipse.org/bugs/show_bug.cgi?id=86848 + # GNU XML issue identified by Michael Koch + # %patch2 -p0 + epatch ${FILESDIR}/${PN}-3.2.2-build.patch + # %patch4 -p0 + epatch ${WORKDIR}/${PN}-3.2.1-libupdatebuild.patch + # %patch5 -p0 + epatch ${WORKDIR}/${PN}-3.2.1-libupdatebuild2.patch + # Build swttools.jar + # https://bugs.eclipse.org/bugs/show_bug.cgi?id=90364 + pushd plugins/org.eclipse.swt.gtk.linux.x86_64 >/dev/null + # %patch18 -p0 + epatch ${WORKDIR}/${PN}-3.2.1-swttools.patch + popd >/dev/null + # https://bugs.eclipse.org/bugs/show_bug.cgi?id=90630 + # %patch22 -p0 + epatch ${WORKDIR}/${PN}-3.2.1-updatehomedir.patch + # https://bugs.eclipse.org/bugs/show_bug.cgi?id=90535 + pushd plugins/org.eclipse.core.runtime >/dev/null + # %patch24 -p0 + epatch ${WORKDIR}/${PN}-3.2.1-fileinitializer.patch + popd >/dev/null + + ## + ## FIXME: breaks!! + ## + ## tomcat patches + ## These patches need to go upstream + ## https://bugs.eclipse.org/bugs/show_bug.cgi?id=98371 + #pushd plugins/org.eclipse.tomcat >/dev/null + ## %patch28 -p0 + #epatch ${WORKDIR}/${PN}-3.2.1-tomcat55.patch + ## %patch29 -p0 + #epatch ${WORKDIR}/${PN}-3.2.1-tomcat55-build.patch + #popd >/dev/null + #sed --in-place "s/4.1.130/5.5.17/" \ + # features/org.eclipse.platform/build.xml \ + # plugins/org.eclipse.tomcat/build.xml \ + # assemble.*.xml + #pushd plugins/org.eclipse.help.webapp >/dev/null + ## %patch31 -p0 + #epatch ${WORKDIR}/${PN}-3.2.1-webapp-tomcat55.patch + #popd >/dev/null + + # pushd plugins/org.eclipse.compare + # COMMENTED BY FEDORA %patch33 -p0 + # popd + + # JPackage []s in names of symlinks ... + # https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=162177 + pushd plugins/org.eclipse.jdt.core >/dev/null + # %patch34 -p0 + epatch ${WORKDIR}/${PN}-3.2.1-bz162177.patch + # Use ecj for gcj + # %patch57 -p0 + # epatch ${WORKDIR}/${PN}-3.2.1-ecj-gcj.patch + popd >/dev/null + # https://bugs.eclipse.org/bugs/show_bug.cgi?id=114001 + # %patch38 -p0 + # epatch ${WORKDIR}/${PN}-3.2.1-helpindexbuilder.patch + # %patch40 -p0 + epatch ${WORKDIR}/${PN}-3.2.1-usebuiltlauncher.patch + # DO NOT APPLY %patch43 + pushd plugins/org.eclipse.swt/Eclipse\ SWT\ Mozilla/common/library >/dev/null + # Build cairo native libs + # %patch46 + # epatch ${WORKDIR}/${PN}-3.2.1-libswt-xpcomgcc4.patch + popd >/dev/null + + # Because the launcher source is zipped up, we need to unzip, patch, and re-pack + mkdir launchertmp + unzip -qq -d launchertmp plugins/org.eclipse.platform/launchersrc.zip >/dev/null || die "unzip failed" + # https://bugs.eclipse.org/bugs/show_bug.cgi?id=79592 + # https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=168726 + pushd launchertmp >/dev/null + # %patch47 -p1 + epatch ${WORKDIR}/${PN}-3.2.1-launcher-link.patch + zip -q -9 -r ../launchersrc.zip * >/dev/null || die "zip failed" + popd >/dev/null + mv launchersrc.zip plugins/org.eclipse.platform + rm -rf launchertmp + + pushd features/org.eclipse.platform.launchers >/dev/null + # %patch47 -p1 + epatch ${WORKDIR}/${PN}-3.2.1-launcher-link.patch + popd >/dev/null + # Link against our system-installed javadocs + # Don't attempt to link to Sun's javadocs + # %patch48 -p0 + epatch ${WORKDIR}/${PN}-3.2.1-javadoclinks.patch + sed --in-place "s:/usr/share/:%{_datadir}/:g" \ + plugins/org.eclipse.jdt.doc.isv/jdtOptions.txt \ + plugins/org.eclipse.pde.doc.user/pdeOptions.txt \ + plugins/org.eclipse.pde.doc.user/pdeOptions \ + plugins/org.eclipse.platform.doc.isv/platformOptions.txt + # Always generate debug info when building RPMs (Andrew Haley) + # %patch49 -p0 + #epatch ${WORKDIR}/${PN}-3.2.1-ecj-rpmdebuginfo.patch + + # generic releng plugins that can be used to build plugins + # see this thread for deails: + # https://www.redhat.com/archives/fedora-devel-java-list/2006-April/msg00048.html + pushd plugins/org.eclipse.pde.build >/dev/null + # %patch53 + # epatch ${WORKDIR}/${PN}-3.2.1-pde.build-add-package-build.patch + # sed --in-place "s:@eclipse_base@:%{_datadir}/%{name}:" templates/package-build/build.properties + epatch ${FILESDIR}/eclipse-pde-build.patch + popd >/dev/null + + # https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=191536 + # https://bugs.eclipse.org/bugs/show_bug.cgi?id=142861 + # pushd plugins/org.eclipse.swt/Eclipse\ SWT >/dev/null + # %patch54 + # epatch ${WORKDIR}/${PN}-3.2.1-swt-rm-ON_TOP.patch + # popd >/dev/null + + # We need to disable junit4 and apt until GCJ can handle Java5 code + # %patch55 -p0 + # epatch ${WORKDIR}/${PN}-3.2.1-disable-junit4-apt.patch + # rm plugins/org.junit4/junit-4.1.jar + + ## + ## FIXME: breaks!! + ## + ## I love directories with spaces in their names + #pushd plugins/org.eclipse.swt >/dev/null + #mv "Eclipse SWT Mozilla" Eclipse_SWT_Mozilla + #mv "Eclipse SWT PI" Eclipse_SWT_PI + ## Build against firefox: + ## - fix swt profile include path + ## - don't compile the mozilla 1.7 / firefox profile library -- build it inline + ## - don't use symbols not in our firefox builds + ## FIXME: add reference(s) to discussion(s) and bug(s) + ## Note: I made this patch from within Eclipse and then did the following to + ## it due to spaces in the paths: + ## sed --in-place "s/Eclipse\ SWT\ Mozilla/Eclipse_SWT_Mozilla/g" eclipse-swt-firefox.patch + ## sed --in-place "s/Eclipse\ SWT\ PI/Eclipse_SWT_PI/g" eclipse-swt-firefox.patch + ## %patch59 + #epatch ${WORKDIR}/${PN}-3.2.1-swt-firefox.patch + #mv Eclipse_SWT_Mozilla "Eclipse SWT Mozilla" + #mv Eclipse_SWT_PI "Eclipse SWT PI" + #popd >/dev/null + #pushd plugins/org.eclipse.swt.tools >/dev/null + #mv "JNI Generation" JNI_Generation + ## %patch60 + #epatch ${WORKDIR}/${PN}-3.2.1-swt-firefox.2.patch + #mv JNI_Generation "JNI Generation" + #popd >/dev/null + + # FIXME check if this has been applied upstream + # pushd plugins/org.eclipse.platform.doc.isv >/dev/null + # %patch100 -p0 + # epatch ${WORKDIR}/customBuildCallbacks.xml-add-pre.gather.bin.parts.patch + # popd >/dev/null + # pushd plugins/org.eclipse.platform.doc.user >/dev/null + # %patch100 -p0 + # epatch ${WORKDIR}/customBuildCallbacks.xml-add-pre.gather.bin.parts.patch + # popd >/dev/null + + if use branding; then + pushd plugins/org.eclipse.platform >/dev/null + cp ${WORKDIR}/splash.bmp . + popd >/dev/null + fi + + # FIXME this should be patched upstream with a flag to turn on and off + # all output should be directed to stdout + find -type f -name \*.xml -exec sed --in-place -r "s/output=\".*(txt|log).*\"//g" "{}" \; +} + +fix-swt-targets() { + # Build using O2 + # https://bugs.eclipse.org/bugs/show_bug.cgi?id=71637 + pushd plugins/org.eclipse.swt/Eclipse\ SWT\ PI/gtk/library >/dev/null + # %patch0 -p0 + epatch ${WORKDIR}/${PN}-3.2.1-gentoo-libswt-enableallandO2.patch + popd >/dev/null + + # Select the set of native libraries to compile + local targets="make_swt make_awt make_atk" + + if use gnome ; then + einfo "Enabling GNOME VFS support" + targets="${targets} make_gnome" + fi + + if use seamonkey ; then + einfo "Enabling embedded Mozilla support" + targets="${targets} make_mozilla" + fi + + if use cairo ; then + einfo "Enabling CAIRO support" + targets="${targets} make_cairo" + fi + + if use opengl ; then + einfo "Enabling OpenGL support" + targets="${targets} make_glx" + fi + + sed -i "s/^all:.*/all: ${targets}/" \ + "plugins/org.eclipse.swt/Eclipse SWT PI/gtk/library/make_linux.mak" \ + || die "Failed to tweak make_linux.mak" +} + +setup-jvm-opts() { + # Figure out correct boot classpath + # karltk: this should be handled by the java-pkg eclass in setup-vm + local bp="$(java-config --jdk-home)/jre/lib" + local bootclasspath=$(java-config --runtime) + if [[ ! -z "`java-config --java-version | grep IBM`" ]] ; then + # IBM JDK + JAVA_LIB_DIR="$(java-config --jdk-home)/jre/bin" + else + # Sun derived JDKs (Blackdown, Sun) + JAVA_LIB_DIR="$(java-config --jdk-home)/jre/lib/${jvmarch}" + fi + + einfo "Using bootclasspath ${bootclasspath}" + einfo "Using JVM library path ${JAVA_LIB_DIR}" + + if [[ ! -f ${JAVA_LIB_DIR}/libawt.so ]] ; then + die "Could not find libawt.so native library" + fi + + export AWT_LIB_PATH=${JAVA_LIB_DIR} +} + +setup-mozilla-opts() { + export GECKO_SDK="/usr/$(get_libdir)/seamonkey" + # TODO should this be using pkg-config? + export GECKO_INCLUDES=$(pkg-config seamonkey-gtkmozembed --cflags) + export GECKO_LIBS=$(pkg-config seamonkey-gtkmozembed --libs) +} + +pkg_postinst() { + einfo "Users can now install plugins via Update Manager without any" + einfo "tweaking." + echo + einfo "Eclipse plugin packages (ie eclipse-cdt) will likely go away in" + einfo "the near future until they can be properly packaged. Update Manager" + einfo "is prefered in the meantime." +} diff --git a/dev-util/eclipse-sdk/files/digest-eclipse-sdk-3.2.2 b/dev-util/eclipse-sdk/files/digest-eclipse-sdk-3.2.2 new file mode 100644 index 0000000..773bda3 --- /dev/null +++ b/dev-util/eclipse-sdk/files/digest-eclipse-sdk-3.2.2 @@ -0,0 +1,6 @@ +MD5 216947a1ae20680cdc518d193be72d06 eclipse-sdk-3.2.1-r1-patches.tar.bz2 85951 +RMD160 55a0f98229feb47d936acbcdcf7ad42074ebdb5c eclipse-sdk-3.2.1-r1-patches.tar.bz2 85951 +SHA256 fa9f8d047d8375ab55eaca12c110bd9faf9eb5452af2a70d038afd5a6b4b5171 eclipse-sdk-3.2.1-r1-patches.tar.bz2 85951 +MD5 5d1b9f6a146ffc59191e513083a6ec86 eclipse-sourceBuild-srcIncluded-3.2.2.zip 82487328 +RMD160 520114b67c2352181fab4e8dbf404e2639ad5a60 eclipse-sourceBuild-srcIncluded-3.2.2.zip 82487328 +SHA256 84759dc6085e68b31228ce2b226778494481be38681dc8ca5b0e2f226bf963a7 eclipse-sourceBuild-srcIncluded-3.2.2.zip 82487328 diff --git a/dev-util/eclipse-sdk/files/eclipse-3.2 b/dev-util/eclipse-sdk/files/eclipse-3.2 new file mode 100644 index 0000000..0859cd5 --- /dev/null +++ b/dev-util/eclipse-sdk/files/eclipse-3.2 @@ -0,0 +1,36 @@ +#! /bin/bash +# +# Tiny startup wrapper for the Eclipse 3.2.x series +# +# Copyright (c) 2004, Karl Trygve Kalleberg <karltk@gentoo.org> +# Copyright (c) 2004, Gentoo Foundation +# +# Licensed under the GNU General Public License, version 2 +# + +[[ -f $HOME/.eclipserc ]] && source $HOME/.eclipserc + +ECLIPSE_HOME=${ECLIPSE_HOME:="/usr/lib/eclipse-3.2"} +ECLIPSE_BIN="${ECLIPSE_HOME}/eclipse" + +if [ ! -x ${ECLIPSE_BIN} ] ; then + echo "Failed to find executable '${ECLIPSE_BIN}'" > /dev/stderr + exit -1 +fi + +if [ $(whoami) == "root" ] ; then + echo "!!! You are running Eclipse as root. Be advised that this will modify the contents of" + echo "!!! /usr/lib/eclipse-3.2, and that such a modification may prevent you from safely" + echo "!!! upgrading to later 3.2 revisions." + echo + echo "!!! To ensure correct behavior on your next upgrade, do:" + echo "!!! 1) 'emerge unmerge \"=eclipse-sdk-3.2\"'" + echo "!!! 2) 'rm -rf /usr/lib/eclipse-3.2'" + echo "!!! 3) 'emerge eclipse-sdk'" +fi + +if [[ -d /usr/lib/gecko-sdk/lib/ ]] && [[ -f /usr/lib/gecko-sdk/lib/libgtkembedmoz.so ]] ; then + export MOZILLA_FIVE_HOME="/usr/lib/gecko-sdk/lib/" +fi + +exec ${ECLIPSE_BIN} "$@" diff --git a/dev-util/eclipse-sdk/files/eclipse-pde-build.patch b/dev-util/eclipse-sdk/files/eclipse-pde-build.patch new file mode 100644 index 0000000..603920e --- /dev/null +++ b/dev-util/eclipse-sdk/files/eclipse-pde-build.patch @@ -0,0 +1,35 @@ +--- plugins/org.eclipse.pde.build/build.xml.orig 2007-06-29 14:52:50.000000000 +1000 ++++ plugins/org.eclipse.pde.build/build.xml 2007-06-29 14:56:00.000000000 +1000 +@@ -12,8 +12,8 @@ + <property name="javacVerbose" value="false"/> + <property name="logExtension" value=".log"/> + <property name="compilerArg" value=""/> +- <property name="javacSource" value="1.3"/> +- <property name="javacTarget" value="1.2"/> ++ <property name="javacSource" value="1.5"/> ++ <property name="javacTarget" value="1.5"/> + <path id="path_bootclasspath"> + <fileset dir="${java.home}/lib"> + <include name="*.jar"/> +@@ -23,10 +23,10 @@ + <condition property="bundleBootClasspath" value="${J2SE-1.4}"> + <isset property="J2SE-1.4"/> + </condition> +- <condition property="bundleJavacSource" value="1.3"> ++ <condition property="bundleJavacSource" value="1.5"> + <isset property="J2SE-1.4"/> + </condition> +- <condition property="bundleJavacTarget" value="1.2"> ++ <condition property="bundleJavacTarget" value="1.5"> + <isset property="J2SE-1.4"/> + </condition> + <property name="bundleJavacSource" value="${javacSource}"/> +@@ -100,7 +100,7 @@ + <pathelement path="../org.apache.ant/lib/ant.jar"/> + </path> + <!-- compile the source code --> +- <javac destdir="${temp.folder}/pdebuild.jar.bin" failonerror="${javacFailOnError}" verbose="${javacVerbose}" debug="${javacDebugInfo}" includeAntRuntime="no" bootclasspath="${bundleBootClasspath}" source="${bundleJavacSource}" target="${bundleJavacTarget}" > ++ <javac destdir="${temp.folder}/pdebuild.jar.bin" failonerror="${javacFailOnError}" verbose="${javacVerbose}" debug="${javacDebugInfo}" includeAntRuntime="no" bootclasspath="${bundleBootClasspath}" source="1.5" target="1.5" > + <compilerarg line="${compilerArg}" compiler="${build.compiler}"/> + <classpath refid="pdebuild.jar.classpath" /> + <src path="src/" /> diff --git a/dev-util/eclipse-sdk/files/eclipse-sdk-3.2.2-build.patch b/dev-util/eclipse-sdk/files/eclipse-sdk-3.2.2-build.patch new file mode 100644 index 0000000..78068ac --- /dev/null +++ b/dev-util/eclipse-sdk/files/eclipse-sdk-3.2.2-build.patch @@ -0,0 +1,29 @@ +Index: eclipse/buildConfigs/sdk/srcBuild/build.xml +=================================================================== +RCS file: /cvsroot/eclipse/org.eclipse.releng.eclipsebuilder/eclipse/buildConfigs/sdk/srcBuild/build.xml,v +retrieving revision 1.9 +diff -u -r1.9 build.xml +--- build.xml 11 May 2006 20:51:39 -0000 1.9 ++++ build.xml 26 May 2006 23:06:38 -0000 +@@ -95,6 +95,21 @@ + <arg line="build.sh" /> + </exec> + <move file="${launcherlibs}/library/${installWs}/eclipse" todir="${launcherlibs}/" /> ++ ++ <delete dir="${launcherlibs}/library"/> ++ ++ <!-- Copy icon for un-supported platforms --> ++ <copy file="features/org.eclipse.platform.launchers/bin/gtk/linux/x86/icon.xpm" todir="${launcherlibs}/"/> ++ ++ <!-- Build JNI libs --> ++ <!-- liblocalfile --> ++ <exec dir="plugins/org.eclipse.core.filesystem/natives/unix/linux" executable="make" failonerror="true"/> ++ <move file="plugins/org.eclipse.core.filesystem/natives/unix/linux/liblocalfile_1_0_0.so" ++ todir="plugins/org.eclipse.core.filesystem.linux.${installArch}/os/linux/${installArch}"> ++ </move> ++ <!-- and libupdate --> ++ <ant dir="plugins/org.eclipse.update.core.linux/src" antfile="build.xml" /> ++ + </target> + + |