# Copyright 2000-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/gnome-extra/slab/slab-1.9999.ebuild,v 1.11 2006/07/02 20:24:08 vapier Exp $ inherit eutils cvs mono gnome2 DESCRIPTION="The new Desktop Menu from SuSE Linux Enterprise by Novell" HOMEPAGE="http://www.novell.com/products/desktop/preview.html" # Have to set SRC_URI blank or gnome2 eclass tries to fetch ${P}.tar.gz SRC_URI="" ECVS_SERVER="anoncvs.gnome.org/cvs/gnome" ECVS_MODULE="slab" ECVS_AUTH="pserver" ECVS_USER="anonymous" ECVS_PASS="" S="${WORKDIR}/${ECVS_MODULE}" LICENSE="LGPL-2.1" SLOT="0" KEYWORDS="alpha amd64 arm ~hppa ~ppc ppc64 sh sparc x86" IUSE="doc nogcontrol" # We have USE flags depending on each other, which leads to this logic. We # prefer an activated USE flag and override the dependent USE flags. RDEPEND=">=net-misc/networkmanager-0.6.3 >=net-dns/avahi-0.6.10 >=dev-lang/mono-1.1.10 >=sys-apps/dbus-0.30 >=gnome-base/libgtop-2.14.1 >=sys-apps/hal-0.5.7-r3" DEPEND="${RDEPEND} doc? ( app-doc/doxygen mono? ( >=dev-util/monodoc-1.1.8 ) )" PDEPEND="!nogcontrol? ( gnome-extra/gcontrol )" src_unpack() { cvs_src_unpack cd ${S} gnome2_omf_fix epatch ${FILESDIR}/01-control-center-fix.patch epatch ${FILESDIR}/02-slab-autogen-noconfigure.patch } src_compile() { ./autogen.sh --libexecdir=/usr/libexec --sysconfdir=/etc --libdir=/usr/lib --includedir=/usr/include --sbindir=/sbin gnome2_src_compile } src_install() { gnome2_src_install # Rename control-center so that we can install gcontrol without # stepping on anyone's toes. mv ${D}/usr/bin/control-center ${D}/usr/bin/slab-control-center if use nogcontrol; then dosym /usr/bin/slab-control-center /usr/bin/control-center fi dodoc AUTHORS COPYING ChangeLog README NEWS } pkg_postinst() { gnome2_pkg_postinst }