/[gentoo-x86]/eclass/eutils.eclass
Gentoo

Diff of /eclass/eutils.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.154 Revision 1.157
1# Copyright 1999-2005 Gentoo Foundation 1# Copyright 1999-2005 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.154 2005/02/23 01:10:58 vapier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.157 2005/03/07 17:45:07 carlo Exp $
4# 4#
5# Author: Martin Schlemmer <azarah@gentoo.org> 5# Author: Martin Schlemmer <azarah@gentoo.org>
6# 6#
7# This eclass is for general purpose functions that most ebuilds 7# This eclass is for general purpose functions that most ebuilds
8# have to implement themselves. 8# have to implement themselves.
909# name: the name that will show up in the menu 909# name: the name that will show up in the menu
910# icon: give your little like a pretty little icon ... 910# icon: give your little like a pretty little icon ...
911# this can be relative (to /usr/share/pixmaps) or 911# this can be relative (to /usr/share/pixmaps) or
912# a full path to an icon 912# a full path to an icon
913# type: what kind of application is this ? for categories: 913# type: what kind of application is this ? for categories:
914# http://www.freedesktop.org/standards/menu-spec/ 914# http://www.freedesktop.org/wiki/Standards_2fmenu_2dspec
915# path: if your app needs to startup in a specific dir 915# path: if your app needs to startup in a specific dir
916make_desktop_entry() { 916make_desktop_entry() {
917 [ -z "$1" ] && eerror "make_desktop_entry: You must specify the executable" && return 1 917 [ -z "$1" ] && eerror "make_desktop_entry: You must specify the executable" && return 1
918 918
919 local exec="${1}" 919 local exec="${1}"
941 type= 941 type=
942 subdir= 942 subdir=
943 ;; 943 ;;
944 esac 944 esac
945 fi 945 fi
946 local desktop="${T}/${exec}.desktop" 946 local desktop="${T}/${exec%% *}-${P}.desktop"
947 947
948echo "[Desktop Entry] 948echo "[Desktop Entry]
949Encoding=UTF-8 949Encoding=UTF-8
950Version=0.9.2 950Version=0.9.2
951Name=${name} 951Name=${name}

Legend:
Removed from v.1.154  
changed lines
  Added in v.1.157

  ViewVC Help
Powered by ViewVC 1.1.20