/[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.241
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.241 2006/06/15 14:45:59 vapier 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#
10# Maintainer: see each individual function, base-system@gentoo.org as default
9 11
10inherit multilib portability 12inherit multilib portability
11
12DEPEND="!bootstrap? ( sys-devel/patch )"
13RDEPEND=""
14# sys-apps/shadow is needed for useradd, etc, bug #94745.
15 13
16DESCRIPTION="Based on the ${ECLASS} eclass" 14DESCRIPTION="Based on the ${ECLASS} eclass"
17 15
18# Wait for the supplied number of seconds. If no argument is supplied, defaults 16# 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 17# to five seconds. If the EPAUSE_IGNORE env var is set, don't wait. If we're not
765 763
766# Make a desktop file ! 764# Make a desktop file !
767# Great for making those icons in kde/gnome startmenu ! 765# Great for making those icons in kde/gnome startmenu !
768# Amaze your friends ! Get the women ! Join today ! 766# Amaze your friends ! Get the women ! Join today !
769# 767#
770# make_desktop_entry(<binary>, [name], [icon], [type], [path]) 768# make_desktop_entry(<command>, [name], [icon], [type], [path])
771# 769#
772# binary: what binary does the app run with ? 770# binary: what command does the app run with ?
773# name: the name that will show up in the menu 771# name: the name that will show up in the menu
774# icon: give your little like a pretty little icon ... 772# icon: give your little like a pretty little icon ...
775# this can be relative (to /usr/share/pixmaps) or 773# this can be relative (to /usr/share/pixmaps) or
776# a full path to an icon 774# a full path to an icon
777# type: what kind of application is this ? for categories: 775# type: what kind of application is this ? for categories:
898Version=0.9.2 896Version=0.9.2
899Name=${name} 897Name=${name}
900Type=Application 898Type=Application
901Comment=${DESCRIPTION} 899Comment=${DESCRIPTION}
902Exec=${exec} 900Exec=${exec}
903TryExec=${exec} 901TryExec=${exec%% *}
904Path=${path} 902Path=${path}
905Icon=${icon} 903Icon=${icon}
906Categories=Application;${type};" > "${desktop}" 904Categories=Application;${type};" > "${desktop}"
907 905
908 ( 906 (
1111 if [[ -z ${skip} ]] ; then 1109 if [[ -z ${skip} ]] ; then
1112 local ver=$(grep -a '#.*Makeself' "${src}" | awk '{print $NF}') 1110 local ver=$(grep -a '#.*Makeself' "${src}" | awk '{print $NF}')
1113 local skip=0 1111 local skip=0
1114 exe=tail 1112 exe=tail
1115 case ${ver} in 1113 case ${ver} in
1116 1.5.*) # tested 1.5.{3,4,5} ... guessing 1.5.x series is same 1114 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) 1115 skip=$(grep -a ^skip= "${src}" | cut -d= -f2)
1118 ;; 1116 ;;
1119 2.0|2.0.1) 1117 2.0|2.0.1)
1120 skip=$(grep -a ^$'\t'tail "${src}" | awk '{print $2}' | cut -b2-) 1118 skip=$(grep -a ^$'\t'tail "${src}" | awk '{print $2}' | cut -b2-)
1121 ;; 1119 ;;

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

  ViewVC Help
Powered by ViewVC 1.1.20