From: Jon Nelson <jnelson@jamponi.net>
To: gentoo-dev@gentoo.org
Cc: tod@gentoo.org
Subject: Re: [gentoo-dev] Menu System
Date: Wed, 17 Apr 2002 23:07:48 -0500 [thread overview]
Message-ID: <20020417230748.43bb3722.jnelson@jamponi.net> (raw)
In-Reply-To: <1019101288.3695.1250.camel@Q.neidt.net>
On 17 Apr 2002 22:41:27 -0500
Tod M Neidt <tod@gentoo.org> wrote:
> On Wed, 2002-04-17 at 17:29, Mario Andres Yepes C wrote:
> >
> > I think thats the basic idea... The thing would be that portage should
> > provide a couple of functions to easy the process of adding an entry
> > to the menu.
> >
> > Somethink like
> >
> > add_menu(){
> > mkdir -p ${MENUDIR}
> > cat >> ${MENUDIR}/${PN} << EOF
> > ?package(${P}): section="$2" icon="$3" title="$4" longtitle="$5"
> > needs="$1" command="oo$1" $mimetypes_item
> > EOF
> > }
> >
> > So in an ebuild you could have...
> >
> > add_menu Applications/Games amor.png "A waste of cpu" "Amor, a game"
> > x11
> >
> > Of course this is just a quick idea, I think that the function could
> > be better implemented so the way to call it is more straight forward.
> >
>
> Hi!
>
> My thought on this issue would be the addition of a 'domenu' helper
> script that could be a one line addition in the src_install function.
>
> The 'domenu' script would cascade through the desktop USE variables
> (i.e. gnome, kde, etc , might have to add some for other desktops that
> don't already have a USE variable.) If the USE variable for a
> particlular desktop is set then insert a menu item. for example (off
> the top of my head, so illustrative, not ncessarily working),
The problem with that approach is that if you later decide to use gnome,
you would have to re-emerge everything to get its menu entry.
Having each program place its menu entry (or entries) in a central
location (ala Debian, again), and then having a post-process program
zip through and create the KDE, GNOME, AfterStep, BlackBox, and
so on "system" menus sounds better to me.
Porting the "menu" package from Debian shouldn't be hard at all.
--
Pound for pound, the amoeba is the most vicious animal on earth.
Jon Nelson <jnelson@jamponi.net>
C and Python Code Gardener
next prev parent reply other threads:[~2002-04-18 4:07 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-04-17 15:07 [gentoo-dev] Menu System Mario Andres Yepes C
2002-04-17 15:18 ` Grant Goodyear
2002-04-17 15:19 ` Jano Lukac
2002-04-17 15:16 ` John Dee
2002-04-17 17:23 ` Dan Armak
2002-04-17 18:08 ` Jon Nelson
2002-04-17 18:56 ` Martin Schlemmer
2002-04-17 22:29 ` Mario Andres Yepes C
2002-04-18 3:41 ` Tod M Neidt
2002-04-18 4:07 ` Jon Nelson [this message]
2002-04-18 4:22 ` Tod M Neidt
2002-04-18 16:01 ` Jon Nelson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20020417230748.43bb3722.jnelson@jamponi.net \
--to=jnelson@jamponi.net \
--cc=gentoo-dev@gentoo.org \
--cc=tod@gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox