Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 86788 Details for
Bug 112537
version bump: dev-util/eclipse-sdk-3.2_rc1
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
eclipse-sdk-3.2_rc4.ebuild
eclipse-sdk-3.2_rc4.ebuild (text/plain), 8.57 KB, created by
Brian Merrill
on 2006-05-14 23:14:11 UTC
(
hide
)
Description:
eclipse-sdk-3.2_rc4.ebuild
Filename:
MIME Type:
Creator:
Brian Merrill
Created:
2006-05-14 23:14:11 UTC
Size:
8.57 KB
patch
obsolete
># 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.0.rc4.ebuild,v 1.1 2006/04/20 13:49:19 nichoj Exp $ > >inherit eutils java-utils flag-o-matic check-reqs > >MY_PV="${PV/rc/RC}" >MY_PV="${MY_PV/_/}" >MY_A="eclipse-sourceBuild-srcIncluded-${MY_PV}.zip" >RELEASE_DATE="200605121600" >DESCRIPTION="Eclipse Tools Platform" >HOMEPAGE="http://www.eclipse.org/" >SRC_URI="http://download.eclipse.org/eclipse/downloads/drops/S-${MY_PV}-${RELEASE_DATE}/${MY_A}" >IUSE="nogecko-sdk gnome jikes nosrc nodoc atk cairo glx" >SLOT="3.2" >LICENSE="CPL-1.0" >KEYWORDS="~x86 ~ppc ~amd64" >S="${WORKDIR}" > >RDEPEND=">=virtual/jre-1.5 > >=x11-libs/gtk+-2.2.4 > !nogecko-sdk? ( net-libs/gecko-sdk ) > cairo? ( >=x11-libs/cairo-1.0.2 ) > atk? ( >=dev-libs/atk-1.6 ) > gnome? ( =gnome-base/gnome-vfs-2* =gnome-base/libgnomeui-2* )" > >DEPEND="${RDEPEND} > >=virtual/jdk-1.5 > jikes? ( >=dev-java/jikes-1.21 ) > >=dev-java/ant-1.6.3 > >=dev-java/ant-core-1.6.3 > >=sys-apps/findutils-4.1.7 > app-arch/unzip > app-arch/zip" > >ECLIPSE_DIR="/usr/lib/eclipse-${SLOT}" >ECLIPSE_LINKS_DIR="${ECLIPSE_DIR}/links" >JAVA_HEAP_MEM="768" >JAVA_EXTRA_MEM="128" > ># TODO: ># - make a extension location in /var/lib that's writable by 'eclipse' group ># - use make_desktop_entry from eutils instead of our own stuff ># - somehow use jdk 1.4 and jdk 1.5 at the same time, otherwise it might not ># be possible to develop for embedded platforms using this jdk > >pkg_setup() { > let "CHECKREQS_MEMORY=${JAVA_HEAP_MEM} + ${JAVA_EXTRA_MEM}" > debug-print "Checking for sufficient physical RAM" > check_reqs > > # Make sure our vm is sane > java-utils_setup-vm > java-utils_ensure-vm-version-ge 1 5 > > # All other gentoo archs match in eclipse build system except amd64 > if use amd64 ; then > eclipsearch=x86_64 > else > eclipsearch=${ARCH} > fi > > # eventually, we'll have a plugin directory that's user writable, as group > # 'eclipse' -nichoj > > # Add the eclipse group, for our plugin directories > #enewgroup eclipse >} > >src_unpack() { > unpack ${A} > > # 1: fix classpath (eclipse bug #128921) > # 2: fix building of native code filesystem library > # - hard coded JAVA_HOME, use ebuild CFLAGS > # 3: fix building of native update code library > # - remove hard coded x86 path > # - some gcc versions refuse if both -static and -fPIC are used > epatch ${FILESDIR}/07-eclipse-3.2.patch > > einfo "Setting up virtual machine" > java-utils_setup-vm > > einfo "Cleaning out prebuilt code" > clean-prebuilt-code > > einfo "Patching makefiles" > fix_makefiles >} > >src_compile() { > > if use !nogecko-sdk ; then > einfo "Will compile embedded Mozilla support against net-libs/gecko-sdk" > setup-mozilla-opts > else > einfo "Not building embedded Mozilla support" > fi > > use jikes && bootstrap_ant_opts="-Dbuild.compiler=jikes" > > ANT_OPTS="-Xmx${JAVA_HEAP_MEM}M -Djava5.home=$JAVA_HOME" > > debug-print "Bootstrapping bootstrap ecj" > ant --noconfig -nouserlib ${bootstrap_ant_opts} -quiet -buildfile jdtcoresrc/compilejdtcorewithjavac.xml || die "Failed to bootstrap ecj" > > debug-print "Bootstrapping ecj" > ant --noconfig -nouserlib -lib jdtcoresrc/ecj.jar -quiet -buildfile jdtcoresrc/compilejdtcore.xml || die "Failed to bootstrap ecj" > > # eclipse build scripts misdetect the CPU model because it prefers > # "uname -p" to "uname -m". Override the selection here > MODEL="`uname -m`" > export MODEL > > einfo "Building native code" > build-native > > debug-print "Compiling Eclipse -- see ${S}/compilelog.txt for details" > ant --noconfig -nouserlib -lib jdtcoresrc/ecj.jar -verbose -buildfile build.xml \ > -Djava5.home=$JAVA_HOME \ > -DinstallOs=linux \ > -DinstallWs=gtk \ > -DinstallArch=${eclipsearch} \ > -Dbootclasspath=${bootclasspath} \ > -Dlibsconfig=true \ > -DjavacTarget=1.5 \ > -DjavacSource=1.5 \ > -DjavacVerbose=false \ > -DjavacFailOnError=true \ > -DjavacDebugInfo=true \ > -DbuildId="Gentoo Linux ${PF}" \ > || die "Failed to compile Eclipse" > > cp launchertmp/eclipse eclipse-gtk || die "Cannot find eclipse binary" > > # TODO use make_desktop_entry from eutils during src_install instead -nichoj > create-desktop-entry >} > >src_install() { > dodir /usr/lib > > debug-print "Installing features and plugins" > > [ -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} > exeinto ${ECLIPSE_DIR} > > debug-print "Installing eclipse-gtk binary" > doexe eclipse-gtk || die "Failed to install eclipse binary" > # need to rename inf file to eclipse-gtk.ini, see bug #128128 > > if use nosrc; then > debug-print "Removing source code" > strip-src > fi > > if use nodoc ; then > debug-print "Removing documentation" > strip-docs > fi > > # Install startup script > exeinto /usr/bin > doexe ${FILESDIR}/eclipse-${SLOT} > > install-desktop-entry > > doman ${FILESDIR}/eclipse.1 > > install-link-files > > # eventually, we'll have a user writable extension location -nichoj > # TODO make g+w > #dodir /var/lib/eclipse-${SLOT} > #touch ${D}/var/lib/eclipse-${SLOT}/.eclipseextension > #fowners root:eclipse /var/lib/eclipse-${SLOT} > >} > ># ----------------------------------------------------------------------------- ># Helper functions ># ----------------------------------------------------------------------------- > >fix_makefiles() { > > # Select the set of native libraries to compile > local libs="make_swt make_awt make_atk make_glx" > > if use gnome ; then > einfo "Building GNOME VFS support" > libs="${libs} make_gnome" > fi > > if use !nogecko-sdk ; then > einfo "Building embedded browser support" > libs="${libs} make_mozilla" > fi > > if use atk ; then > einfo "Building ATK support" > libs="${libs} make_atk" > fi > > if use cairo ; then > einfo "Building Cairo support" > libs="${libs} make_cairo" > fi > > # the ibm jdk ebuild should have fixed headers, but until then > # we just fix the compiling here (see bug #97421) > if use amd64 ; then > if [ ! -z "`java-config --java-version | grep IBM`" ] ; then > einfo "Fixing IBM jdk header problem" > CFLAGS="${CFLAGS} -D_JNI_IMPORT_OR_EXPORT_= " > fi > fi > > sed -i "s/make -f \$MAKEFILE all .*/make -f \$MAKEFILE ${libs}/" "plugins/org.eclipse.swt/Eclipse SWT PI/gtk/library/build.sh" || die "Failed to patch build.sh" > > # patch gentoo CFLAGS into place > sed -i -e "s/^CFLAGS =\(.*\)\\\\/CFLAGS =\1 $CFLAGS \\\\/" -e "s/^MOZILLACFLAGS =\(.*\)\\\\/MOZILLACFLAGS =\1 $CFLAGS \\\\/" "plugins/org.eclipse.swt/Eclipse SWT PI/gtk/library/make_linux.mak" || die "Failed to patch make_linux.mak" >} > > >clean-prebuilt-code() { > find ${S} -type f \( -name '*.class' -o -name '*.so' -o -name '*.dll' -o -name '*.so.*' -o -name 'eclipse' \) -print0 | xargs -0 rm -f >} > >setup-mozilla-opts() { > # - override eclipse default mozilla detection logic from: > # plugins/org.eclipse.swt/Eclipse\ SWT\ PI/gtk/library/build.sh > # - add embed_base (bugs.gentoo.org:#130273) > GECKO_INCLUDES="`pkg-config --cflags gecko-sdk-gtkmozembed | sed 's|\(-I[^ ]*/include\) |\1 \1/embed_base |'`" > GECKO_LIBS="`pkg-config --libs gecko-sdk-gtkmozembed`" > MAKE_MOZILLA=make_mozilla > export GECKO_INCLUDES GECKO_LIBS MAKE_MOZILLA >} > >build-native() { > make -C plugins/org.eclipse.core.filesystem/natives/unix/linux > cp -v plugins/org.eclipse.core.filesystem/natives/unix/linux/*.so plugins/org.eclipse.core.filesystem.linux.${eclipsearch}/os/linux/${eclipsearch} >} >create-desktop-entry() { > sed -e "s/@PV@/${PV}/" ${FILESDIR}/eclipse-${SLOT}.desktop \ > > eclipse-${SLOT}.desktop || die "Failed to create desktop entry" >} > >install-desktop-entry() { > dodir /usr/share/applications > insinto /usr/share/applications > doins eclipse-${SLOT}.desktop >} > >install_link_file() { > local path=${1} > local file=${2} > > echo "path=${path}" > "${D}/${ECLIPSE_LINKS_DIR}/${file}" >} > >install-link-files() { > einfo "Installing link files" > > dodir ${ECLIPSE_LINKS_DIR} > install_link_file /opt/eclipse-extensions-3.2 eclipse-binary-extensions-3.2.link > > install_link_file /usr/lib/eclipse-extensions-3.2 eclipse-extensions-3.2.link > ># install_link_file /var/lib/eclipse-3.2 eclipse-var-3.2.link >} > >strip-src() { > local bp=${D}/${ECLIPSE_DIR} > > rm -rf ${bp}/plugins/org.eclipse.pde.source_3* \ > ${bp}/plugins/org.eclipse.jdt.source_3* \ > ${bp}/plugins/org.eclipse.platform.source.linux.* \ > ${bp}/plugins/org.eclipse.platform.source_3* \ > ${bp}/features/org.eclipse.jdt.source_3* \ > ${bp}/features/org.eclipse.pde.source_3* \ > ${bp}/features/org.eclipse.platform.source_3* >} > >strip-docs() { > local bp=${D}/${ECLIPSE_DIR} > > rm -rf ${bp}/plugins/org.eclipse.platform.doc.* \ > ${bp}/plugins/org.eclipse.jdt.doc.* \ > ${bp}/plugins/org.eclipse.pde.doc.* >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 112537
:
72891
|
72892
|
76315
|
76316
|
76317
|
85088
|
85089
|
85090
|
85785
|
85786
|
85787
|
85788
|
85789
|
86787
|
86788
|
86789
|
86790
|
86791
|
87685
|
87686
|
89787