From afa326daf9c622cd7c8052bc90991b4b753a91d2 Mon Sep 17 00:00:00 2001 From: Carsten Lohrke Date: Fri, 20 Apr 2007 18:53:35 +0000 Subject: [PATCH] Take into account that KDE 3.x doesn't really comply to the basedir spec --- eclass/kde-functions.eclass | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/eclass/kde-functions.eclass b/eclass/kde-functions.eclass index d83e38ce8da1..bdd9421b0556 100644 --- a/eclass/kde-functions.eclass +++ b/eclass/kde-functions.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/kde-functions.eclass,v 1.148 2007/04/19 10:24:56 carlo Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/kde-functions.eclass,v 1.149 2007/04/20 18:53:35 carlo Exp $ # # Author Dan Armak # @@ -911,16 +911,20 @@ postprocess_desktop_entries() { [[ $EBUILD_PHASE != preinst ]] && [[ $EBUILD_PHASE != install ]] && \ die "postprocess_desktop_entries() has to be called in src_install() or pkg_preinst()." - local desktop_entries="$(find "${D}${PREFIX}/share/applnk" -name '*.desktop' \ - -not -path '*.hidden*' 2>/dev/null)" - if [[ -n ${desktop_entries} ]]; then - for entry in ${desktop_entries} ; do - dodir ${PREFIX}/share/applications/kde - mv ${entry} ${D}${PREFIX}/share/applications/kde - done + # Only third party apps, KDE 3.x isn't so basedir spec compliant... + if [[ -z ${KDEBASE} ]] ; then + local desktop_entries="$(find "${D}${PREFIX}/share/applnk" -name '*.desktop' \ + -not -path '*.hidden*' 2>/dev/null)" + + if [[ -n ${desktop_entries} ]]; then + for entry in ${desktop_entries} ; do + dodir ${PREFIX}/share/applications/kde + mv ${entry} ${D}${PREFIX}/share/applications/kde + done + fi fi - validate_desktop_entries ${PREFIX}/share/applications + validate_desktop_entries ${PREFIX}/share/appl{nk,ications} } # is this a kde-base ebuid? -- 2.26.2