# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/kde-base/kdesktop/kdesktop-3.5.0.ebuild,v 1.6 2006/01/14 09:30:59 flameeyes Exp $ KMNAME=kdebase MAXKDEVER=$PV KM_DEPRANGE="$PV $MAXKDEVER" inherit kde-meta eutils SRC_URI="${SRC_URI} mirror://gentoo/kdebase-${PV}-patches-1.tar.bz2" DESCRIPTION="The KDE desktop" KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~sparc ~x86" IUSE="xscreensaver" DEPEND="$DEPEND $(deprange $PV $MAXKDEVER kde-base/libkonq) $(deprange $PV $MAXKDEVER kde-base/kdm) $(deprange $PV $MAXKDEVER kde-base/kcontrol) xscreensaver? ( || ( ( x11-proto/scrnsaverproto ) virtual/x11 ) )" # Requires the desktop background settings module, # so until we separate the kcontrol modules into separate ebuilds :-), # there's a dep here RDEPEND="${DEPEND} $(deprange $PV $MAXKDEVER kde-base/kcheckpass) $(deprange $PV $MAXKDEVER kde-base/kdialog) xscreensaver? ( || ( ( x11-libs/libXScrnSaver ) virtual/x11 ) )" KMCOPYLIB="libkonq libkonq/" KMEXTRACTONLY="kcheckpass/kcheckpass.h libkonq/ kdm/kfrontend/themer/ kioslave/thumbnail/configure.in.in" # for the HAVE_LIBART test KMCOMPILEONLY="kcontrol/background kdmlib/" KMNODOCS=true src_unpack() { unpack "kdebase-${PV}-patches-1.tar.bz2" kde-meta_src_unpack epatch "${WORKDIR}/patches/${P}-xscreensaver.patch" } src_compile() { myconf="${myconf} $(use_with xscreensaver)" kde-meta_src_compile } src_install() { # ugly, needs fixing: don't install kcontrol/background kde-meta_src_install rmdir ${D}/${PREFIX}/share/templates/.source/emptydir } pkg_postinst() { mkdir -p ${PREFIX}/share/templates/.source/emptydir }