diff options
author | Lim Swee Tat <st_lim@gentoo.org> | 2004-04-01 16:27:31 +0000 |
---|---|---|
committer | Lim Swee Tat <st_lim@gentoo.org> | 2004-04-01 16:27:31 +0000 |
commit | 99af856f901d4c537fb549a9e220ad79e274df6f (patch) | |
tree | a8d0f72173d372aa09421223bf41e86befd75882 /dev-util/eclipse-sdk | |
parent | Initial import. Fixes #46415. (Manifest recommit) (diff) | |
download | gentoo-2-99af856f901d4c537fb549a9e220ad79e274df6f.tar.gz gentoo-2-99af856f901d4c537fb549a9e220ad79e274df6f.tar.bz2 gentoo-2-99af856f901d4c537fb549a9e220ad79e274df6f.zip |
Fixed based on bug 45442
Diffstat (limited to 'dev-util/eclipse-sdk')
-rw-r--r-- | dev-util/eclipse-sdk/ChangeLog | 9 | ||||
-rw-r--r-- | dev-util/eclipse-sdk/Manifest | 16 | ||||
-rw-r--r-- | dev-util/eclipse-sdk/eclipse-sdk-2.1.3-r1.ebuild | 256 | ||||
-rw-r--r-- | dev-util/eclipse-sdk/files/digest-eclipse-sdk-2.1.3-r1 | 1 |
4 files changed, 274 insertions, 8 deletions
diff --git a/dev-util/eclipse-sdk/ChangeLog b/dev-util/eclipse-sdk/ChangeLog index fa65d8341f5f..04076689a7b4 100644 --- a/dev-util/eclipse-sdk/ChangeLog +++ b/dev-util/eclipse-sdk/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for dev-util/eclipse-sdk # Copyright 2003-2004 Gentoo Technologies, Inc.; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-util/eclipse-sdk/ChangeLog,v 1.11 2004/03/28 17:39:48 karltk Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-util/eclipse-sdk/ChangeLog,v 1.12 2004/04/01 16:27:31 st_lim Exp $ + +*eclipse-sdk-2.1.3-r1 (02 Apr 2004) + + 02 Apr 2004; Lim Swee Tat <st_lim@gentoo.org> eclipse-sdk-2.1.3-r1.ebuild, + eclipse-sdk-2.1.3.ebuild: + Thanks to Christo <serlin@engsoc.org> for bug 45442 + Added the GTK_DISABLE_DEPRECATED hack 28 Mar 2004; Karl Trygve Kalleberg <karltk@gentoo.org> eclipse-sdk-2.1.3.ebuild: diff --git a/dev-util/eclipse-sdk/Manifest b/dev-util/eclipse-sdk/Manifest index c8989afc0677..045506b1adbe 100644 --- a/dev-util/eclipse-sdk/Manifest +++ b/dev-util/eclipse-sdk/Manifest @@ -1,19 +1,21 @@ -MD5 55866d48c6ea9ad853fdf09a5ae90c7b ChangeLog 2777 -MD5 2822ab14e7466312674e21a7fe2b8e9a eclipse-sdk-2.1.ebuild 82880 +MD5 8a97de912958b41966a6d74e2df1fc2b ChangeLog 3014 MD5 1599279350669a35135a2bb9b79a89b6 eclipse-sdk-2.1.1.ebuild 7553 -MD5 9cc8d5162e981d7b7fc1ef9fa1ac0e65 metadata.xml 919 MD5 cbffe2a84d3e58ddad8733a234a55766 eclipse-sdk-2.1.2-r1.ebuild 8044 MD5 1b7dd5acbe8da5ca6f3a967eb7a63916 eclipse-sdk-2.1.2.ebuild 7619 +MD5 2822ab14e7466312674e21a7fe2b8e9a eclipse-sdk-2.1.ebuild 82880 MD5 98c827d4c23fe349b30e507705eeb077 eclipse-sdk-3.0.0_pre5.ebuild 8992 +MD5 9cc8d5162e981d7b7fc1ef9fa1ac0e65 metadata.xml 919 +MD5 d8d6e66de80e07b611d0cc7afb4c0030 eclipse-sdk-2.1.3-r1.ebuild 8951 MD5 ecb312b5736947c1d7151e98676f11eb eclipse-sdk-2.1.3.ebuild 7825 +MD5 6c2995197ef0a038015ffff1dee7ac72 files/00-refactor_rename.patch 59577 MD5 5bea1174eca3d2e368ad728e5086b24a files/digest-eclipse-sdk-2.1 86 -MD5 9b30c0b9d4af6ed66a09e216efadefe6 files/eclipse-3 1067 MD5 76c2f3ddbb548ca9d3f1522498f51bc0 files/digest-eclipse-sdk-2.1.1 88 MD5 cc086062a18b18e0a241f27d0ed2de44 files/digest-eclipse-sdk-2.1.2 88 -MD5 6c2995197ef0a038015ffff1dee7ac72 files/00-refactor_rename.patch 59577 MD5 cc086062a18b18e0a241f27d0ed2de44 files/digest-eclipse-sdk-2.1.2-r1 88 +MD5 bfc0f8c0e74a36e0eeebf31cf6a7616c files/digest-eclipse-sdk-2.1.3 88 MD5 9613d7a4f2ef2deb91c83738ea882570 files/digest-eclipse-sdk-3.0.0_pre5 88 -MD5 46098c9b4f60fdae8a96300d19a0a642 files/eclipse-3.desktop 217 MD5 9b30c0b9d4af6ed66a09e216efadefe6 files/eclipse 1067 +MD5 9b30c0b9d4af6ed66a09e216efadefe6 files/eclipse-3 1067 +MD5 46098c9b4f60fdae8a96300d19a0a642 files/eclipse-3.desktop 217 MD5 a01c2dd64e43d4ee9dd96dbf0b4578c7 files/eclipse.desktop 213 -MD5 bfc0f8c0e74a36e0eeebf31cf6a7616c files/digest-eclipse-sdk-2.1.3 88 +MD5 bfc0f8c0e74a36e0eeebf31cf6a7616c files/digest-eclipse-sdk-2.1.3-r1 88 diff --git a/dev-util/eclipse-sdk/eclipse-sdk-2.1.3-r1.ebuild b/dev-util/eclipse-sdk/eclipse-sdk-2.1.3-r1.ebuild new file mode 100644 index 000000000000..dba3a2228151 --- /dev/null +++ b/dev-util/eclipse-sdk/eclipse-sdk-2.1.3-r1.ebuild @@ -0,0 +1,256 @@ +# Copyright 1999-2004 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-util/eclipse-sdk/eclipse-sdk-2.1.3-r1.ebuild,v 1.1 2004/04/01 16:27:31 st_lim Exp $ + +DESCRIPTION="Eclipse Tools Platform" +HOMEPAGE="http://www.eclipse.org/" +SRC_URI="http://download.eclipse.org/downloads/drops/R-2.1.3-200403101828/eclipse-sourceBuild-srcIncluded-2.1.3.zip" +IUSE="gtk motif gnome kde" + +SLOT="0" +LICENSE="CPL-1.0" +KEYWORDS="~x86 ~ppc ~sparc" + +RDEPEND=">=virtual/jdk-1.3 + gtk? ( >=x11-libs/gtk+-2.4 ) : + ( kde? ( kde-base/kde x11-libs/openmotif ) : + ( motif? ( x11-libs/openmotif ) : + ( >=x11-libs/gtk+-2.4 ) + ) + ) + gnome? ( =gnome-base/gnome-vfs-2* ) + " +# 2004-03-28: karltk +# It would be nice if this worked, but portage doesn't handle it properly +# || ( +# gtk? ( >=x11-libs/gtk+-2.4 ) +# kde? ( kde-base/kde x11-libs/openmotif ) +# motif? ( x11-libs/openmotif ) +# >=x11-libs/gtk+-2.4 +# ) + +DEPEND="${RDEPEND} + >=dev-java/ant-1.5.3 + >=sys-apps/findutils-4.1.7 + >=app-shells/tcsh-6.11" + +S=${WORKDIR}/eclipse + +src_unpack() { + unpack ${A} + epatch ${FILESDIR}/00-refactor_rename.patch + #epatch ${FILESDIR}/${P}-build.patch + + # performing the cleaning here so we can actually run a compile stage + # without loosing all previous compilation results + addwrite "/proc/self/maps" + ant -Dws=gtk -Dos=linux clean + ant -Dws=motif -Dos=linux clean +} + +src_compile() { + + # This ebuild is doing some slightly funky things since the + # source tarball also contains all the binaries for eclipse. On + # top of this, there are a ton of files that need to be merged + # so instead of specifying all these files, we're instead + # removing all the extra fluff from the source tree and then + # merging it all over when we're done. + + # This ebuild will compile eclipse for gtk2, motif, and kde + # toolkits depending on the use flags set. If all are set, the + # default version linked to is the GTK2 version. When building + # for KDE though, the motif version must be built with support + # for KDE. Apparently the motif build also supports KDE when + # this is done - I could be wrong though. + + if [ ! -z "`java-config --java-version | grep IBM`" ] ; then + ANT_EXTRA_OPTS="-Dbootclasspath=`java-config --jdk-home`/jre/lib/core.jar" + fi + + gtk_launcher_src_dir="${WORKDIR}/plugins/platform-launcher/library/gtk" + motif_launch_src_dir="${WORKDIR}/plugins/platform-launcher/library/motif" + gtk_swt_src_dir=${WORKDIR}/plugins/org.eclipse.swt/Eclipse\ SWT\ PI/gtk/library + motif_swt_src_dir=${WORKDIR}/plugins/org.eclipse.swt/Eclipse\ SWT\ PI/motif/library + + core_src_dir="${WORKDIR}/plugins/org.eclipse.core.resources.linux/src" + + case $ARCH in + sparc) + gtk_swt_dest_dir="${WORKDIR}/plugins/org.eclipse.swt.gtk/os/solaris/sparc" + motif_swt_dest_dir="${WORKDIR}/plugins/org.eclipse.swt.motif/os/solaris/sparc" + core_dest_dir="${WORKDIR}/plugins/org.eclipse.core.resources.linux/os/solaris/sparc/" + ;; + x86) + gtk_swt_dest_dir="${WORKDIR}/plugins/org.eclipse.swt.gtk/os/linux/x86" + motif_swt_dest_dir="${WORKDIR}/plugins/org.eclipse.swt.motif/os/linux/x86" + core_dest_dir="${WORKDIR}/plugins/org.eclipse.core.resources.linux/os/linux/x86/" + ;; + ppc) + gtk_swt_dest_dir="${WORKDIR}/plugins/org.eclipse.swt.gtk/os/linux/ppc" + motif_swt_dest_dir="${WORKDIR}/plugins/org.eclipse.swt.motif/os/linux/ppc" + core_dest_dir="${WORKDIR}/plugins/org.eclipse.core.resources.linux/os/linux/ppc/" + ;; + esac + + use gtk && gtk=y + use motif && motif=y + use gnome && gnome=y gtk=y + use kde && kde=y motif=y + + # force gtk to be the default if motif isn't selected + if ! [ ${motif} = "y" ] ; then + gtk=y + fi + + cd ${WORKDIR} + + # First build all java code + + # this export is pulled from the build shellscript supplied by + # eclipse. It fixes an outOfMemory exception during the ant build + # process. + export ANT_OPTS=-Xmx256m + + # remove all .so files shipped with the tarball + find ${WORKDIR} -name '*.so' -exec rm -f {} \; + + # remove the eclipse binary copied from the ant build above. + rm -f ${WORKDIR}/eclipse + + override_motif_target= + if [ "${gtk}" = "y" ] ; then + einfo "Building GTK+ frontend" + ant -buildfile build.xml -Dos=linux -Dws=gtk ${ANT_EXTRA_OPTS} || die "something went wrong" + #only do a compile/install for motif... Don't do a buildDoc. This will save time... + override_motif_target="compile install" + fi + if [ "${motif}" = "y" ] ; then + einfo "Building Motif frontend" + ant -buildfile build.xml -Dos=linux -Dws=motif ${ANT_EXTRA_OPTS} ${override_motif_target} || die "something went wrong" + fi + + einfo "building resources.core plugin" + cd ${core_src_dir} + make JDK_INCLUDE="`java-config -O`/include -I`java-config -O`/include/linux" + mkdir -p "${core_dest_dir}" + mv *.so "${core_dest_dir}" + + # I'm replacing these pkg-config lines since --libs for them + # returns -pthread instead of -lpthread and remove the -Wl, since + # ld doesn't know what to do with it. + + GNOME_LIB=`pkg-config --libs gnome-vfs-2.0 | sed -e "s:-pthread:-lpthread:" -e "s:-Wl,--export:--export:"` + GTHREAD_LIB=`pkg-config --libs gthread-2.0 | sed -e "s:-pthread:-lpthread:"` + + # Build for the gtk toolkit + if [ "${gtk}" = "y" ] ; then + einfo "building gtk swt" + # Build the eclipse gtk binary + cd ${WORKDIR}/plugins/platform-launcher/library/gtk + tcsh build.csh -output eclipse-gtk -arch $ARCH || die + mv eclipse-gtk ${WORKDIR}/eclipse-gtk + + cd "${gtk_swt_src_dir}" + cp ${WORKDIR}/plugins/org.eclipse.swt/Eclipse\ SWT/common/library/* . + + sed -e "s:/bluebird/teamswt/swt-builddir/ive:$JAVA_HOME:" \ + -e "s:JAVA_JNI=\$(IVE_HOME)/bin/include:JAVA_JNI=\$(IVE_HOME)/include:" \ + -e "s:\`pkg-config --libs gthread-2.0\`:${GTHREAD_LIB}:" \ + -e "s:\`pkg-config --libs gnome-vfs-2.0\`:${GNOME_LIB}:" \ + -e "s:-I\$(JAVA_JNI):-I\$(JAVA_JNI) -I\$(JAVA_JNI)/linux:" \ + -i make_gtk.mak + + # It appears that gtk+-2.4 which most everyone should be using by + # now deprecates the use of combobox. But eclipse is apparently + # still using this deprecation + sed -e "s:#define GTK_DISABLE_DEPRECATED::g" -i swt.c + + make -f make_gtk.mak make_swt + if [ "${gnome}" = "y" ] ; then + make -f make_gtk.mak make_gnome + fi + + # move the *.so files to the right path so eclipse can find them + mkdir -p "${gtk_swt_dest_dir}" + mv *.so "${gtk_swt_dest_dir}" + make -f make_linux.mak clean #do a clean since everything is going to end up getting merged + fi + + # Build for the motif toolkit + if [ "${motif}" = "y" ] ; then + # Build the eclipse motif binary + cd ${WORKDIR}/plugins/platform-launcher/library/motif + tcsh build.csh -output eclipse-motif -arch $ARCH || die + mv eclipse-motif ${WORKDIR}/eclipse-motif + + cd "${motif_swt_src_dir}" + cp ${WORKDIR}/plugins/org.eclipse.swt/Eclipse\ SWT/common/library/* . + + sed -e "s:/bluebird/teamswt/swt-builddir/ive:$JAVA_HOME:" \ + -e "s:JAVA_JNI=\$(IVE_HOME)/bin/include:JAVA_JNI=\$(IVE_HOME)/include:" \ + -e "s:/bluebird/teamswt/swt-builddir/motif21:/usr/X11R6:" \ + -e "s:\`pkg-config --libs gthread-2.0\`:${GTHREAD_LIB}:" \ + -e "s:\`pkg-config --libs gnome-vfs-2.0\`:${GNOME_LIB}:" \ + -e "s:/usr/lib/qt3:/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_JNI):-I\$(JAVA_JNI) -I\$(JAVA_JNI)/linux:" \ + -i make_linux.mak + + make -f make_linux.mak make_swt + if [ "${gnome}" = "y" ] ; then + make -f make_linux.mak make_gnome + fi + if [ "${kde}" = "y" ] ; then + make -f make_linux.mak make_kde + fi + + # move the *.so files to the right path so eclipse can find them + mkdir -p "${motif_swt_dest_dir}" + mv *.so "${motif_swt_dest_dir}" + make -f make_linux.mak clean #do a clean since everything is going to end up getting merged + fi + + + # remove all the java files so we can install this. + # there is no install target in build.xml for some reason and + # we don't want all of these files merged. + # also remove all the .project, .classpath and build.* files spread out all over the place + find ${WORKDIR} -name '*.java' -exec rm -f {} \; + find ${WORKDIR} -name '.classpath' -exec rm -f {} \; + find ${WORKDIR} -name '.project' -exec rm -f {} \; + find ${WORKDIR} -name 'build.*' -exec rm -f {} \; + +} + +src_install() { + cd ${WORKDIR} + + exeinto /usr/bin + doexe ${FILESDIR}/eclipse + + dodir /usr/lib/eclipse + exeinto /usr/lib/eclipse + + if [ -f eclipse-gtk ] ; then + doexe eclipse-gtk + dosym /usr/lib/eclipse/eclipse-gtk /usr/lib/eclipse/eclipse + fi + if [ -f eclipse-motif ] ; then + doexe eclipse-motif + dosym /usr/bin/eclipse /usr/bin/eclipse-motif + if ! [ -f eclipse-gtk ] ; then + dosym /usr/lib/eclipse/eclipse-motif /usr/lib/eclipse/eclipse + fi + fi + + insinto /usr/lib/eclipse + doins plugins/org.eclipse.platform/.eclipseproduct + + cp -dpR features icon.xpm plugins splash.bmp startup.jar \ + ${D}/usr/lib/eclipse/ + + insinto /usr/share/gnome/apps/Development + doins ${FILESDIR}/eclipse.desktop +} diff --git a/dev-util/eclipse-sdk/files/digest-eclipse-sdk-2.1.3-r1 b/dev-util/eclipse-sdk/files/digest-eclipse-sdk-2.1.3-r1 new file mode 100644 index 000000000000..54978fc2e107 --- /dev/null +++ b/dev-util/eclipse-sdk/files/digest-eclipse-sdk-2.1.3-r1 @@ -0,0 +1 @@ +MD5 cd8132138afbd252bf35bb83546534dc eclipse-sourceBuild-srcIncluded-2.1.3.zip 45066815 |