summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2004-02-24 03:53:26 +0000
committerMike Frysinger <vapier@gentoo.org>2004-02-24 03:53:26 +0000
commitbf26f35181eecb0ad5d7207bea2eaa382c905547 (patch)
treefc0c5e935654020f6ea88c10d928de80e5f6d6d1 /eclass
parentDid somebody order a better comment? (diff)
downloadhistorical-bf26f35181eecb0ad5d7207bea2eaa382c905547.tar.gz
historical-bf26f35181eecb0ad5d7207bea2eaa382c905547.tar.bz2
historical-bf26f35181eecb0ad5d7207bea2eaa382c905547.zip
change install location of desktop files #26578
Diffstat (limited to 'eclass')
-rw-r--r--eclass/eutils.eclass11
1 files changed, 8 insertions, 3 deletions
diff --git a/eclass/eutils.eclass b/eclass/eutils.eclass
index e609794a7dc0..c49014940c15 100644
--- a/eclass/eutils.eclass
+++ b/eclass/eutils.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.80 2004/02/21 07:48:12 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.81 2004/02/24 03:53:26 vapier Exp $
#
# Author: Martin Schlemmer <azarah@gentoo.org>
#
@@ -698,21 +698,26 @@ make_desktop_entry() {
local name="${2:-${PN}}"
local icon="${3:-${PN}.png}"
local type="${4}"
+ local subdir="${6}"
local path="${5:-${GAMES_PREFIX}}"
if [ -z "${type}" ]
then
case ${CATEGORY} in
"app-emulation")
type=Emulator
+ subdir="Games"
;;
"games-"*)
type=Game
+ subdir="Games"
;;
"net-"*)
- type=Network;
+ type=Network
+ subdir="${type}"
;;
*)
type=
+ subdir=
;;
esac
fi
@@ -752,7 +757,7 @@ Categories=Application;${type};" > ${desktop}
if [ -d "/usr/share/applnk" ]
then
- insinto /usr/share/applnk/${type}
+ insinto /usr/share/applnk/${subdir}
doins ${desktop}
fi