From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-14) on finch.gentoo.org X-Spam-Level: X-Spam-Status: No, score=-1.1 required=5.0 tests=DMARC_NONE,MAILING_LIST_MULTI, NICE_REPLY_A autolearn=unavailable autolearn_force=no version=4.0.0 Received: from mail.fidnet.com (three.fidnet.com [216.229.64.73]) by chiba.3jane.net (Postfix) with SMTP id 8551AABDBB for ; Wed, 17 Apr 2002 22:42:18 -0500 (CDT) Received: (qmail 20321 invoked from network); 18 Apr 2002 03:42:17 -0000 Received: from dialup-mo-16.stjames.fidnet.com (216.229.82.16) by three.fidnet.com with SMTP; 18 Apr 2002 03:42:16 -0000 Subject: Re: [gentoo-dev] Menu System From: Tod M Neidt To: gentoo-dev@gentoo.org In-Reply-To: <200204171729.46831.marioy@logos.upb.edu.co> References: <200204171007.54557.marioy@logos.upb.edu.co> <200204172023.06703.danarmak@gentoo.org> <20020417130833.6250e75b.jnelson@jamponi.net> <200204171729.46831.marioy@logos.upb.edu.co> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Ximian Evolution 1.0.3 Date: 17 Apr 2002 22:41:27 -0500 Message-Id: <1019101288.3695.1250.camel@Q.neidt.net> Mime-Version: 1.0 Sender: gentoo-dev-admin@gentoo.org Errors-To: gentoo-dev-admin@gentoo.org X-BeenThere: gentoo-dev@gentoo.org X-Mailman-Version: 2.0.6 Precedence: bulk Reply-To: gentoo-dev@gentoo.org List-Help: List-Post: List-Subscribe: , List-Id: Gentoo Linux developer list List-Unsubscribe: , List-Archive: X-Archives-Salt: 922ecec3-ed23-45eb-9bb4-d305a4252da9 X-Archives-Hash: c5972e8a1715e53a259f232edc1ca169 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), if use gnome; then if [ -e ${FILESDIR}/${PN}.desktop]; then SUBMENU=$( grep Type $