# Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/kde-base/kdesktop/kdesktop-3.5.9-r1.ebuild,v 1.6 2008/05/18 21:59:53 maekke Exp $ KMNAME=kdebase EAPI="1" inherit kde-meta eutils SRC_URI="${SRC_URI} mirror://gentoo/kdebase-3.5-patchset-05.tar.bz2 mirror://gentoo/kde-3.5.9-seli-xinerama.tar.bz2" DESCRIPTION="KDesktop is the KDE interface that handles the icons, desktop popup menus and screensaver system." KEYWORDS="alpha amd64 hppa ia64 ppc ppc64 sparc x86 ~x86-fbsd" IUSE="kdehiddenvisibility pertty transparency xscreensaver" DEPEND=">=kde-base/libkonq-${PV}:${SLOT} >=kde-base/kcontrol-${PV}:${SLOT} xscreensaver? ( x11-proto/scrnsaverproto )" # Requires the desktop background settings module, # so until we separate the kcontrol modules into separate ebuilds :-), # there's a dep here RDEPEND="${DEPEND} >=kde-base/kcheckpass-${PV}:${SLOT} >=kde-base/kdialog-${PV}:${SLOT} >=kde-base/konqueror-${PV}:${SLOT} xscreensaver? ( x11-libs/libXScrnSaver )" 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 PATCHES="" if use pertty; then PATCHES="${PATCHES} ${FILESDIR}/$KMNAME-3.5.5-$PN-rounded-text-box-corners.patch" fi if use transparency; then PATCHES="${PATCHES} ${FILESDIR}/$PN-transparency-0.1.patch" fi pkg_setup() { kde_pkg_setup if use pertty && ! built_with_use --missing false =kde-base/kdelibs-3.5* pertty; then eerror "The pertty USE flag in this package enables special extensions" eerror "and requires that kdelibs be patched to support these extensions." eerror "Since it appears your version of kdelibs was not compiled with these" eerror "extensions, you must either emerge kdesktop without pertty or" eerror "re-emerge kdelibs with pertty enabled and then emerge kdesktop again." die "Missing pertty USE flag on kde-base/kdelibs" fi } src_unpack() { kde-meta_src_unpack # see bug #143375 sed -e "s:SUBDIRS = . lock pics patterns programs init:SUBDIRS = . lock pics patterns programs:" \ -i kdesktop/Makefile.am # Xinerama patch by Lubos Lunak. # http://ktown.kde.org/~seli/xinerama/ epatch "${WORKDIR}/kdebase-kdesktop-only-seli-xinerama.patch" } src_compile() { myconf="${myconf} $(use_with xscreensaver)" kde-meta_src_compile } pkg_postinst() { kde_pkg_postinst echo einfo "This ebuild contains patches from kdemod & xeffects projects" ewarn "Do NOT report bugs to Gentoo's bugzilla" einfo "You may post them to http://arcong.ath.cx/" einfo "Thank you on behalf of the Arcon team" dodir "${PREFIX}"/share/templates/.source/emptydir }