summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2003-07-02 23:01:08 +0000
committerMike Frysinger <vapier@gentoo.org>2003-07-02 23:01:08 +0000
commit1b928a01f765a6e4c25dc93c791e6cc08abd4eae (patch)
tree06c65baa61507e47ecfdeab9db7fa8ccb2f882f2 /eclass
parentadded ~ppc keyword, please test (diff)
downloadhistorical-1b928a01f765a6e4c25dc93c791e6cc08abd4eae.tar.gz
historical-1b928a01f765a6e4c25dc93c791e6cc08abd4eae.tar.bz2
historical-1b928a01f765a6e4c25dc93c791e6cc08abd4eae.zip
tweaks for desktop entry maker
Diffstat (limited to 'eclass')
-rw-r--r--eclass/eutils.eclass32
1 files changed, 16 insertions, 16 deletions
diff --git a/eclass/eutils.eclass b/eclass/eutils.eclass
index 322dd93d3d4a..b88b41a9b6f5 100644
--- a/eclass/eutils.eclass
+++ b/eclass/eutils.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.39 2003/07/01 02:03:26 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.40 2003/07/02 23:01:08 vapier Exp $
#
# Author: Martin Schlemmer <azarah@gentoo.org>
#
@@ -673,6 +673,7 @@ make_desktop_entry() {
*) type="" ;;
esac
fi
+ local desktop=${T}/${exec}.desktop
echo "[Desktop Entry]
Encoding=UTF-8
@@ -683,29 +684,28 @@ Comment=${DESCRIPTION}
Exec=${exec}
Path=${path}
Icon=${icon}
-Categories=Application;${type};" > ${T}/${name}.desktop
- name=${T}/${name}.desktop
+Categories=Application;${type};" > ${desktop}
if [ -d /usr/share/applications ] ; then
insinto /usr/share/applications
- doins ${name}
+ doins ${desktop}
fi
- if [ -d /usr/share/gnome/apps ] ; then
- insinto /usr/share/gnome/apps/Games
- doins ${name}
- fi
+ #if [ -d /usr/share/gnome/apps ] ; then
+ # insinto /usr/share/gnome/apps/Games
+ # doins ${desktop}
+ #fi
- if [ ! -z "`ls /usr/kde/* 2>/dev/null`" ] ; then
- for ver in /usr/kde/* ; do
- insinto ${ver}/share/applnk/Games
- doins ${name}
- done
- fi
+ #if [ ! -z "`ls /usr/kde/* 2>/dev/null`" ] ; then
+ # for ver in /usr/kde/* ; do
+ # insinto ${ver}/share/applnk/Games
+ # doins ${desktop}
+ # done
+ #fi
if [ -d /usr/share/applnk ] ; then
- insinto /usr/share/applnk
- doins ${name}
+ insinto /usr/share/applnk/${type}
+ doins ${desktop}
fi
return 0