Gentoo Archives: gentoo-commits

From: "Justin Lecher (jlec)" <jlec@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in eclass: eutils.eclass
Date: Tue, 03 Jan 2012 08:45:46
Message-Id: 20120103084536.C8F232004B@flycatcher.gentoo.org
1 jlec 12/01/03 08:45:36
2
3 Modified: eutils.eclass
4 Log:
5 Convert make_desktop_entry() comment block to be eclass-manpages conform, #397451
6
7 Revision Changes Path
8 1.377 eclass/eutils.eclass
9
10 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/eutils.eclass?rev=1.377&view=markup
11 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/eutils.eclass?rev=1.377&content-type=text/plain
12 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/eutils.eclass?r1=1.376&r2=1.377
13
14 Index: eutils.eclass
15 ===================================================================
16 RCS file: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v
17 retrieving revision 1.376
18 retrieving revision 1.377
19 diff -u -r1.376 -r1.377
20 --- eutils.eclass 17 Dec 2011 06:13:50 -0000 1.376
21 +++ eutils.eclass 3 Jan 2012 08:45:36 -0000 1.377
22 @@ -1,6 +1,6 @@
23 # Copyright 1999-2011 Gentoo Foundation
24 # Distributed under the terms of the GNU General Public License v2
25 -# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.376 2011/12/17 06:13:50 vapier Exp $
26 +# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.377 2012/01/03 08:45:36 jlec Exp $
27
28 # @ECLASS: eutils.eclass
29 # @MAINTAINER:
30 @@ -609,20 +609,23 @@
31 sed -i 's/\r$//' -- "$@" || die
32 }
33
34 -# Make a desktop file !
35 -# Great for making those icons in kde/gnome startmenu !
36 -# Amaze your friends ! Get the women ! Join today !
37 -#
38 -# make_desktop_entry(<command>, [name], [icon], [type], [fields])
39 -#
40 -# binary: what command does the app run with ?
41 -# name: the name that will show up in the menu
42 -# icon: give your little like a pretty little icon ...
43 -# this can be relative (to /usr/share/pixmaps) or
44 -# a full path to an icon
45 -# type: what kind of application is this ? for categories:
46 -# http://standards.freedesktop.org/menu-spec/latest/apa.html
47 +# @FUNCTION: make_desktop_entry
48 +# @USAGE: make_desktop_entry(<command>, [name], [icon], [type], [fields])
49 +# @DESCRIPTION:
50 +# Make a .desktop file.
51 +#
52 +# @CODE
53 +# binary: what command does the app run with ?
54 +# name: the name that will show up in the menu
55 +# icon: give your little like a pretty little icon ...
56 +# this can be relative (to /usr/share/pixmaps) or
57 +# a full path to an icon
58 +# type: what kind of application is this?
59 +# for categories:
60 +# http://standards.freedesktop.org/menu-spec/latest/apa.html
61 +# if unset, function tries to guess from package's category
62 # fields: extra fields to append to the desktop file; a printf string
63 +# @CODE
64 make_desktop_entry() {
65 [[ -z $1 ]] && die "make_desktop_entry: You must specify the executable"