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

Diff of /eclass/eutils.eclass

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

Revision 1.237 Revision 1.240
1# Copyright 1999-2006 Gentoo Foundation 1# Copyright 1999-2006 Gentoo Foundation
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.237 2006/06/04 15:18:12 vapier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.240 2006/06/09 15:36:40 wolf31o2 Exp $
4# 4#
5# This eclass is for general purpose functions that most ebuilds 5# This eclass is for general purpose functions that most ebuilds
6# have to implement themselves. 6# have to implement themselves.
7# 7#
8# NB: If you add anything, please comment it! 8# NB: If you add anything, please comment it!
9 9
10inherit multilib portability 10inherit multilib portability
11
12DEPEND="!bootstrap? ( sys-devel/patch )"
13RDEPEND=""
14# sys-apps/shadow is needed for useradd, etc, bug #94745.
15 11
16DESCRIPTION="Based on the ${ECLASS} eclass" 12DESCRIPTION="Based on the ${ECLASS} eclass"
17 13
18# Wait for the supplied number of seconds. If no argument is supplied, defaults 14# Wait for the supplied number of seconds. If no argument is supplied, defaults
19# to five seconds. If the EPAUSE_IGNORE env var is set, don't wait. If we're not 15# to five seconds. If the EPAUSE_IGNORE env var is set, don't wait. If we're not
765 761
766# Make a desktop file ! 762# Make a desktop file !
767# Great for making those icons in kde/gnome startmenu ! 763# Great for making those icons in kde/gnome startmenu !
768# Amaze your friends ! Get the women ! Join today ! 764# Amaze your friends ! Get the women ! Join today !
769# 765#
770# make_desktop_entry(<binary>, [name], [icon], [type], [path]) 766# make_desktop_entry(<command>, [name], [icon], [type], [path])
771# 767#
772# binary: what binary does the app run with ? 768# binary: what command does the app run with ?
773# name: the name that will show up in the menu 769# name: the name that will show up in the menu
774# icon: give your little like a pretty little icon ... 770# icon: give your little like a pretty little icon ...
775# this can be relative (to /usr/share/pixmaps) or 771# this can be relative (to /usr/share/pixmaps) or
776# a full path to an icon 772# a full path to an icon
777# type: what kind of application is this ? for categories: 773# type: what kind of application is this ? for categories:
898Version=0.9.2 894Version=0.9.2
899Name=${name} 895Name=${name}
900Type=Application 896Type=Application
901Comment=${DESCRIPTION} 897Comment=${DESCRIPTION}
902Exec=${exec} 898Exec=${exec}
903TryExec=${exec} 899TryExec=${exec%% *}
904Path=${path} 900Path=${path}
905Icon=${icon} 901Icon=${icon}
906Categories=Application;${type};" > "${desktop}" 902Categories=Application;${type};" > "${desktop}"
907 903
908 ( 904 (
1111 if [[ -z ${skip} ]] ; then 1107 if [[ -z ${skip} ]] ; then
1112 local ver=$(grep -a '#.*Makeself' "${src}" | awk '{print $NF}') 1108 local ver=$(grep -a '#.*Makeself' "${src}" | awk '{print $NF}')
1113 local skip=0 1109 local skip=0
1114 exe=tail 1110 exe=tail
1115 case ${ver} in 1111 case ${ver} in
1116 1.5.*) # tested 1.5.{3,4,5} ... guessing 1.5.x series is same 1112 1.5.*|1.6.0-nv) # tested 1.5.{3,4,5} ... guessing 1.5.x series is same
1117 skip=$(grep -a ^skip= "${src}" | cut -d= -f2) 1113 skip=$(grep -a ^skip= "${src}" | cut -d= -f2)
1118 ;; 1114 ;;
1119 2.0|2.0.1) 1115 2.0|2.0.1)
1120 skip=$(grep -a ^$'\t'tail "${src}" | awk '{print $2}' | cut -b2-) 1116 skip=$(grep -a ^$'\t'tail "${src}" | awk '{print $2}' | cut -b2-)
1121 ;; 1117 ;;

Legend:
Removed from v.1.237  
changed lines
  Added in v.1.240

  ViewVC Help
Powered by ViewVC 1.1.20