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

Diff of /eclass/eutils.eclass

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

Revision 1.39 Revision 1.40
1# Copyright 1999-2003 Gentoo Technologies, Inc. 1# Copyright 1999-2003 Gentoo Technologies, Inc.
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.39 2003/07/01 02:03:26 vapier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.40 2003/07/02 23:01:08 vapier 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.
671 app-emulation) type=Emulator ;; 671 app-emulation) type=Emulator ;;
672 app-games) type=Game ;; 672 app-games) type=Game ;;
673 *) type="" ;; 673 *) type="" ;;
674 esac 674 esac
675 fi 675 fi
676 local desktop=${T}/${exec}.desktop
676 677
677echo "[Desktop Entry] 678echo "[Desktop Entry]
678Encoding=UTF-8 679Encoding=UTF-8
679Version=0.9.2 680Version=0.9.2
680Name=${name} 681Name=${name}
681Type=Application 682Type=Application
682Comment=${DESCRIPTION} 683Comment=${DESCRIPTION}
683Exec=${exec} 684Exec=${exec}
684Path=${path} 685Path=${path}
685Icon=${icon} 686Icon=${icon}
686Categories=Application;${type};" > ${T}/${name}.desktop 687Categories=Application;${type};" > ${desktop}
687 name=${T}/${name}.desktop
688 688
689 if [ -d /usr/share/applications ] ; then 689 if [ -d /usr/share/applications ] ; then
690 insinto /usr/share/applications 690 insinto /usr/share/applications
691 doins ${name} 691 doins ${desktop}
692 fi 692 fi
693 693
694 if [ -d /usr/share/gnome/apps ] ; then 694 #if [ -d /usr/share/gnome/apps ] ; then
695 insinto /usr/share/gnome/apps/Games 695 # insinto /usr/share/gnome/apps/Games
696 doins ${name} 696 # doins ${desktop}
697 fi 697 #fi
698 698
699 if [ ! -z "`ls /usr/kde/* 2>/dev/null`" ] ; then 699 #if [ ! -z "`ls /usr/kde/* 2>/dev/null`" ] ; then
700 for ver in /usr/kde/* ; do 700 # for ver in /usr/kde/* ; do
701 insinto ${ver}/share/applnk/Games 701 # insinto ${ver}/share/applnk/Games
702 doins ${name} 702 # doins ${desktop}
703 done 703 # done
704 fi 704 #fi
705 705
706 if [ -d /usr/share/applnk ] ; then 706 if [ -d /usr/share/applnk ] ; then
707 insinto /usr/share/applnk 707 insinto /usr/share/applnk/${type}
708 doins ${name} 708 doins ${desktop}
709 fi 709 fi
710 710
711 return 0 711 return 0
712} 712}
713 713

Legend:
Removed from v.1.39  
changed lines
  Added in v.1.40

  ViewVC Help
Powered by ViewVC 1.1.20