# Copyright 1999-2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: $ #S=${WORKDIR}/eclipse DESCRIPTION="C/C++ Development Tools for Eclipse" HOMEPAGE="http://www.eclipse.org" SRC_URI="gtk2? (http://download.eclipse.org/tools/cdt/releases/new/zips/org.eclipse.cdt-2.0-linux.gtk.x86.zip) motif? (http://download.eclipse.org/tools/cdt/releases/new/zips/org.eclipse.cdt-2.0-linux.motif.x86.zip)" SLOT="2" LICENSE="CPL-1.0" KEYWORDS="~x86" DEPEND=">=dev-util/eclipse-sdk-3.0_rc8" RDEPEND="${DEPEND} gtk2? ( >=x11-libs/gtk+-2.2.4-r1 ) motif? ( >=x11-libs/openmotif-2.1.30-r4 ) " src_unpack() { if [ `use gtk2` ] && [ `use motif` ]; then ewarn "" einfo "This package cannot be built with gtk2 and motif in USE" einfo "Please use only one" einfo "you can type USE=\"-motif gtk2\" emerge ${P}.ebuild" ewarn "" sleep 5 die elif [ ! `use gtk2` ] && [ ! `use motif` ]; then ewarn "" einfo "This package needs either gtk2 or motif in USE vars" einfo "But never both" ewarn "" sleep 5 die else mkdir ${S} cd ${S} unpack ${A} fi } src_install () { dodir /usr/lib/eclipse-3/plugins dodir /usr/lib/eclipse-3/features cp -dpR eclipse/plugins/org.eclipse.cdt* ${D}/usr/lib/eclipse-3/plugins/ cp -dpR eclipse/features/org.eclipse.cdt* ${D}/usr/lib/eclipse-3/features/ dohtml eclipse/plugins/org.eclipse.cdt.core_2.0.0/about.html }