Updated to use patchset from fedora. New splash screen! See bug #150314.
authorJoshua Nichols <nichoj@gentoo.org>
Sun, 8 Oct 2006 02:44:39 +0000 (02:44 +0000)
committerJoshua Nichols <nichoj@gentoo.org>
Sun, 8 Oct 2006 02:44:39 +0000 (02:44 +0000)
Package-Manager: portage-2.1.2_pre2

dev-util/eclipse-sdk/ChangeLog
dev-util/eclipse-sdk/Manifest
dev-util/eclipse-sdk/eclipse-sdk-3.2.1-r1.ebuild [new file with mode: 0644]
dev-util/eclipse-sdk/files/digest-eclipse-sdk-3.2.1-r1 [new file with mode: 0644]

index b1e833475ce83ba0456b3860237f36ad04614bef..c05104e8de6048c4ad090c7b457be46017eaaf31 100644 (file)
@@ -1,6 +1,12 @@
 # ChangeLog for dev-util/eclipse-sdk
 # Copyright 2003-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-util/eclipse-sdk/ChangeLog,v 1.114 2006/10/01 22:50:32 nichoj Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-util/eclipse-sdk/ChangeLog,v 1.115 2006/10/08 02:44:39 nichoj Exp $
+
+*eclipse-sdk-3.2.1-r1 (08 Oct 2006)
+
+  08 Oct 2006; Joshua Nichols <nichoj@gentoo.org>
+  +eclipse-sdk-3.2.1-r1.ebuild:
+  Updated to use patchset from fedora. New splash screen! See bug #150314.
 
 *eclipse-sdk-3.2.1 (01 Oct 2006)
 
index 76e22a8acbd8024e3f7ca4686683441ba69b59dd..270ea14aa882f8e43ba3367884d60e30b969821d 100644 (file)
@@ -52,6 +52,7 @@ RMD160 06aaeb02a7c7720c8d8b26d9d1252095b6098a25 files/eclipse.1 2607
 SHA256 5165b07f736763eab05decb39397be0be8ae03b77f614ba3794eff71d411537b files/eclipse.1 2607
 DIST eclipse-sdk-3.2-patches.tar.bz2 24883 RMD160 a7b5826d8f63a00b4db70cbcec6f179372ed6806 SHA1 49a69e3a4793985ca37a9912c04296976e0b63bb SHA256 0a1db1c111d0188487e6fb7ead77d158e9d8c61e483081b089d1f765bb2dfd56
 DIST eclipse-sdk-3.2.1-patches.tar.bz2 24267 RMD160 b3ee64e3079ed6076d1f75db9ee70535a581854f SHA1 4789c28e2c5199ec15023f9f481649f13093b8bf SHA256 5617ec70e7225ef935f81f95a9a4992b4ef40f74cdc379cfd4b93cbeefa1f127
+DIST eclipse-sdk-3.2.1-r1-patches.tar.bz2 85951 RMD160 55a0f98229feb47d936acbcdcf7ad42074ebdb5c SHA1 4af81d8615dbfbd771136c441ee8a7b53096b468 SHA256 fa9f8d047d8375ab55eaca12c110bd9faf9eb5452af2a70d038afd5a6b4b5171
 DIST eclipse-sourceBuild-srcIncluded-3.0.1.zip 55618511 RMD160 fba01eb0f019a888e9d9deb57ad7b284f218e783 SHA1 2302ee6160be86466a6e7ef265fff0431bee72e3 SHA256 5f6eb496d3db940b1085032a807337dbc477a0da9877a7cea50d39d32dfde050
 DIST eclipse-sourceBuild-srcIncluded-3.0.2.zip 55945573 RMD160 57f0b11c24a8e9982e6d446d14b4782112e5b1a7 SHA1 07324f2aa963e33aea269b89b879fb2d59b354e6 SHA256 0c9e961fbf11d782b0c8c743122e5cc8567f3b06f48f38d6b40a8a78ead567d9
 DIST eclipse-sourceBuild-srcIncluded-3.1.2.zip 66630673 RMD160 ffe59352fe02b4a47be3e9a6daad3a5501f196b0 SHA1 d399232b586e0c6b516f990296a202dcd814404d SHA256 31233332f205a197a42aafdc4f15a4f38eb5e4be19ac8a7192492ab8a21324a4
@@ -77,6 +78,10 @@ EBUILD eclipse-sdk-3.1.2-r3.ebuild 10602 RMD160 a2acd26ab238961dda0e7db667874e55
 MD5 ee36b3e067bfcc68ad409accd7537d87 eclipse-sdk-3.1.2-r3.ebuild 10602
 RMD160 a2acd26ab238961dda0e7db667874e55f0d1ad51 eclipse-sdk-3.1.2-r3.ebuild 10602
 SHA256 b133c1f00538d73171189a019125495c6594d442aae0b0ccdf6463e3a9b73b06 eclipse-sdk-3.1.2-r3.ebuild 10602
+EBUILD eclipse-sdk-3.2.1-r1.ebuild 12367 RMD160 5207b23806ebc49da1b2592406ef81b5786a4145 SHA1 75616847582647706dab3596de76738cb476bf00 SHA256 dd865ea318839b78b6e646c52979eb61d9b77b5631c168dc24b24ba0f63d53e8
+MD5 1deec83a0bf216a657841c1e5b6bcd5e eclipse-sdk-3.2.1-r1.ebuild 12367
+RMD160 5207b23806ebc49da1b2592406ef81b5786a4145 eclipse-sdk-3.2.1-r1.ebuild 12367
+SHA256 dd865ea318839b78b6e646c52979eb61d9b77b5631c168dc24b24ba0f63d53e8 eclipse-sdk-3.2.1-r1.ebuild 12367
 EBUILD eclipse-sdk-3.2.1.ebuild 8989 RMD160 fcfabf4eca82a9ae1b4fa5f4d9d7e652d1cb4763 SHA1 80e4e350fc1ca95342d3ea07960406b45fe2bc99 SHA256 02200dd1a855cd3d34aef655e15714a175256fc5be97a846484d8736617ed61d
 MD5 515b0143b70f57c9d71b1eb477e1dabd eclipse-sdk-3.2.1.ebuild 8989
 RMD160 fcfabf4eca82a9ae1b4fa5f4d9d7e652d1cb4763 eclipse-sdk-3.2.1.ebuild 8989
@@ -85,10 +90,10 @@ EBUILD eclipse-sdk-3.2.ebuild 9467 RMD160 1c5b06efce3b58f57f01d5ccafe433c7bdc756
 MD5 b1c5ef3ae89e8239d89765bd444834e2 eclipse-sdk-3.2.ebuild 9467
 RMD160 1c5b06efce3b58f57f01d5ccafe433c7bdc7561b eclipse-sdk-3.2.ebuild 9467
 SHA256 00c6f86a6f0bd7fd340e8e4ad7948d25b4794cc95899c74c64de91b1370413d2 eclipse-sdk-3.2.ebuild 9467
-MISC ChangeLog 22527 RMD160 d09df6adbc996b477b5f2d54e4265ebd7c03888b SHA1 3d49454f5c1387f7d975c1ffd1ebe8d651d6dba1 SHA256 310e33ba4b0ee0613295c6a3be62a730b78d39f55d2a11b688a0f390f5b9f17c
-MD5 56f4bc9902b467906511d4c69315b52a ChangeLog 22527
-RMD160 d09df6adbc996b477b5f2d54e4265ebd7c03888b ChangeLog 22527
-SHA256 310e33ba4b0ee0613295c6a3be62a730b78d39f55d2a11b688a0f390f5b9f17c ChangeLog 22527
+MISC ChangeLog 22722 RMD160 58262db15944c0e61ccf31b0b6a6c75b13ac045a SHA1 8caa084e3061acbbe2fad96fd434150c71aef60f SHA256 8f468b56b6a5072f012846db910ed7e8e85d2ff910bf10f96256130c7fdf24d2
+MD5 120b32c4fb245236283a706e9e21cfe9 ChangeLog 22722
+RMD160 58262db15944c0e61ccf31b0b6a6c75b13ac045a ChangeLog 22722
+SHA256 8f468b56b6a5072f012846db910ed7e8e85d2ff910bf10f96256130c7fdf24d2 ChangeLog 22722
 MISC metadata.xml 782 RMD160 5b8dc4f4b6bdd457da62f967ec176bee2ae7e5e4 SHA1 17bc63605d0a30dca27521cf908a69c0996eab07 SHA256 a1e6bbc5427799b8607d355e3e09ce7d4de98f2a365417ec158eb56f4f00746f
 MD5 8de14dda7d318d8fb514fdbcecd4058b metadata.xml 782
 RMD160 5b8dc4f4b6bdd457da62f967ec176bee2ae7e5e4 metadata.xml 782
@@ -114,3 +119,6 @@ SHA256 9665c3d9e6f1eb99cb6bd255d70ec40f1a7d16aa720bb376e2079c97850da568 files/di
 MD5 170cc52a6e0d3a9b358903fe71be00e1 files/digest-eclipse-sdk-3.2.1 587
 RMD160 16edd5a1504b7d70f6048a03e7f6c64bf6d57349 files/digest-eclipse-sdk-3.2.1 587
 SHA256 f6dfe941dfe74e72e6a39c2f00dc1572f0d7851e796de4fcc6f1f7b49fe9c848 files/digest-eclipse-sdk-3.2.1 587
+MD5 2364957019ebba24ca9af9631f7a86c8 files/digest-eclipse-sdk-3.2.1-r1 596
+RMD160 130025e444efc3a79b198baa4b673b49b117400f files/digest-eclipse-sdk-3.2.1-r1 596
+SHA256 da442cfe724dbdf31b936830117b876bff94378e5bbb0e1162d12ce590de0e82 files/digest-eclipse-sdk-3.2.1-r1 596
diff --git a/dev-util/eclipse-sdk/eclipse-sdk-3.2.1-r1.ebuild b/dev-util/eclipse-sdk/eclipse-sdk-3.2.1-r1.ebuild
new file mode 100644 (file)
index 0000000..27b2705
--- /dev/null
@@ -0,0 +1,394 @@
+# Copyright 1999-2006 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-r1.ebuild,v 1.1 2006/10/08 02:44:39 nichoj Exp $
+
+inherit eutils java-pkg-2 flag-o-matic check-reqs multilib
+
+DATESTAMP="200609210945"
+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/${PF}-patches.tar.bz2"
+IUSE="seamonkey gnome cairo opengl"
+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.6.5
+       =dev-java/lucene-1*"
+
+RDEPEND=">=virtual/jre-1.4
+       ${COMMON_DEP}"
+DEPEND="
+       ${COMMON_DEP}
+       =virtual/jdk-1.4*
+       >=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.4*"
+
+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/lib >/dev/null
+       rm *.jar
+       java-pkg_jar-from ant-core,ant-tasks
+       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
+
+       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 ${WORKDIR}/${P}-build.patch
+       # %patch4 -p0
+       epatch ${WORKDIR}/${P}-libupdatebuild.patch
+       # %patch5 -p0
+       epatch ${WORKDIR}/${P}-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}/${P}-swttools.patch
+       popd >/dev/null
+       # https://bugs.eclipse.org/bugs/show_bug.cgi?id=90630
+       # %patch22 -p0
+       epatch ${WORKDIR}/${P}-updatehomedir.patch
+       # https://bugs.eclipse.org/bugs/show_bug.cgi?id=90535
+       pushd plugins/org.eclipse.core.runtime >/dev/null
+       # %patch24 -p0
+       epatch ${WORKDIR}/${P}-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}/${P}-tomcat55.patch
+       ## %patch29 -p0
+       #epatch ${WORKDIR}/${P}-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}/${P}-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}/${P}-bz162177.patch
+       # Use ecj for gcj
+       # %patch57 -p0
+       epatch ${WORKDIR}/${P}-ecj-gcj.patch
+       popd >/dev/null
+       # https://bugs.eclipse.org/bugs/show_bug.cgi?id=114001
+       # %patch38 -p0
+       epatch ${WORKDIR}/${P}-helpindexbuilder.patch
+       # %patch40 -p0
+       epatch ${WORKDIR}/${P}-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}/${P}-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}/${P}-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}/${P}-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}/${P}-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}/${P}-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}/${P}-pde.build-add-package-build.patch
+       sed --in-place "s:@eclipse_base@:%{_datadir}/%{name}:" templates/package-build/build.properties
+       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}/${P}-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}/${P}-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}/${P}-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}/${P}-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
+       
+       pushd plugins/org.eclipse.platform >/dev/null
+       cp ${WORKDIR}/splash.bmp .
+       popd >/dev/null
+       
+       # 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}/${P}-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.1-r1 b/dev-util/eclipse-sdk/files/digest-eclipse-sdk-3.2.1-r1
new file mode 100644 (file)
index 0000000..37b1a47
--- /dev/null
@@ -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 0fe89e9c7cf07a56c4fe8e2d7f5a394b eclipse-sourceBuild-srcIncluded-3.2.1.zip 82433420
+RMD160 9648176b79adac7217371e5b8dee7aeb4cd458db eclipse-sourceBuild-srcIncluded-3.2.1.zip 82433420
+SHA256 2d6a0628333d068b6ab678c42f925d71df1c003035543830a30e3ee80fb855c7 eclipse-sourceBuild-srcIncluded-3.2.1.zip 82433420