From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1Nkqfq-0008KF-M1 for garchives@archives.gentoo.org; Fri, 26 Feb 2010 03:15:31 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id EFB1AE079B; Fri, 26 Feb 2010 03:15:28 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id B2EF8E06C5 for ; Fri, 26 Feb 2010 03:15:28 +0000 (UTC) Received: from stork.gentoo.org (stork.gentoo.org [64.127.104.133]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTP id 690CF1B4630 for ; Fri, 26 Feb 2010 03:15:28 +0000 (UTC) Received: from abcd by stork.gentoo.org with local (Exim 4.69) (envelope-from ) id 1Nkqfn-0006x8-Gz for gentoo-commits@lists.gentoo.org; Fri, 26 Feb 2010 03:15:27 +0000 From: "Jonathan Callen (abcd)" To: gentoo-commits@lists.gentoo.org Reply-To: gentoo-dev@lists.gentoo.org, abcd@gentoo.org Subject: [gentoo-commits] gentoo-x86 commit in eclass: eutils.eclass X-VCS-Repository: gentoo-x86 X-VCS-Files: eutils.eclass X-VCS-Directories: eclass X-VCS-Committer: abcd X-VCS-Committer-Name: Jonathan Callen Content-Type: text/plain; charset=utf8 Message-Id: Sender: Jonathan Callen Date: Fri, 26 Feb 2010 03:15:27 +0000 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: f5f7188c-49ba-48fb-8719-ec787ca2394f X-Archives-Hash: ad1837207b424e55015f3c008b047c6f abcd 10/02/26 03:15:27 Modified: eutils.eclass Log: Properly implement the Desktop File Specification in make_desktop_entry= () Revision Changes Path 1.334 eclass/eutils.eclass file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/eutils.ecla= ss?rev=3D1.334&view=3Dmarkup plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/eutils.ecla= ss?rev=3D1.334&content-type=3Dtext/plain diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/eutils.ecla= ss?r1=3D1.333&r2=3D1.334 Index: eutils.eclass =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v retrieving revision 1.333 retrieving revision 1.334 diff -u -r1.333 -r1.334 --- eutils.eclass 17 Feb 2010 17:10:23 -0000 1.333 +++ eutils.eclass 26 Feb 2010 03:15:26 -0000 1.334 @@ -1,6 +1,6 @@ # Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.333 2010/02/= 17 17:10:23 betelgeuse Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.334 2010/02/= 26 03:15:26 abcd Exp $ =20 # @ECLASS: eutils.eclass # @MAINTAINER: @@ -961,6 +961,7 @@ news) type=3DNews;; nntp) type=3DNews;; p2p) type=3DFileTransfer;; + voip) type=3DTelephony;; *) type=3D;; esac type=3D"Network;${type}" @@ -979,7 +980,7 @@ visual*) type=3DDataVisualization;; *) type=3D;; esac - type=3D"Science;${type}" + type=3D"Education;Science;${type}" ;; =20 sys) @@ -991,7 +992,7 @@ client) type=3DWebBrowser;; *) type=3D;; esac - type=3D"Network" + type=3D"Network;${type}" ;; =20 *) @@ -1007,6 +1008,17 @@ local desktop=3D"${T}/$(echo ${exec} | sed 's:[[:space:]/:]:_:g')-${des= ktop_name}.desktop" #local desktop=3D${T}/${exec%% *:-${desktop_name}}.desktop =20 + # Don't append another ";" when a valid category value is provided. + type=3D${type%;}${type:+;} + + eshopts_push -s extglob + if [[ -n ${icon} && ${icon} !=3D /* && ${icon} =3D=3D *.@(xpm|png|svg) = ]]; then + ewarn "As described in the Icon Theme Specification, icon file extensi= ons are not" + ewarn "allowed in .desktop files if the value is not an absolute path.= " + icon=3D${icon%.@(xpm|png|svg)} + fi + eshopts_pop + cat <<-EOF > "${desktop}" [Desktop Entry] Name=3D${name} @@ -1015,7 +1027,7 @@ Exec=3D${exec} TryExec=3D${exec%% *} Icon=3D${icon} - Categories=3D${type}; + Categories=3D${type} EOF =20 [[ ${path} ]] && echo "Path=3D${path}" >> "${desktop}"