# Copyright 1999-2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eclipse-ext 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_compile() { einfo "Nothing to do -- binary plugin!" } src_install() { eclipse-ext_require-slot 3 || \ die "Failed to find suitable Eclipse installation" eclipse-ext_create-ext-layout binary || die "Failed to create layout" eclipse-ext_install-features eclipse/features/* || \ die "Failed to install features" eclipse-ext_install-plugins eclipse/plugins/* || \ die "Failed to install plugins" }