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

Diff of /eclass/eutils.eclass

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

Revision 1.434 Revision 1.435
1# Copyright 1999-2013 Gentoo Foundation 1# Copyright 1999-2013 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.434 2014/04/27 19:01:30 vapier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.435 2014/07/04 08:01:51 ulm Exp $
4 4
5# @ECLASS: eutils.eclass 5# @ECLASS: eutils.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# base-system@gentoo.org 7# base-system@gentoo.org
8# @BLURB: many extra (but common) functions that are used in ebuilds 8# @BLURB: many extra (but common) functions that are used in ebuilds
949} 949}
950 950
951# @FUNCTION: _eutils_eprefix_init 951# @FUNCTION: _eutils_eprefix_init
952# @INTERNAL 952# @INTERNAL
953# @DESCRIPTION: 953# @DESCRIPTION:
954# Initialized prefix variables for EAPI<3. 954# Initialized prefix variables for EAPI<3.
955_eutils_eprefix_init() { 955_eutils_eprefix_init() {
956 has "${EAPI:-0}" 0 1 2 && : ${ED:=${D}} ${EPREFIX:=} ${EROOT:=${ROOT}} 956 has "${EAPI:-0}" 0 1 2 && : ${ED:=${D}} ${EPREFIX:=} ${EROOT:=${ROOT}}
957} 957}
958 958
959# @FUNCTION: validate_desktop_entries 959# @FUNCTION: validate_desktop_entries
1167# @CODE 1167# @CODE
1168# example 1: newicon foobar.png NEWNAME.png 1168# example 1: newicon foobar.png NEWNAME.png
1169# results in: insinto /usr/share/pixmaps 1169# results in: insinto /usr/share/pixmaps
1170# newins foobar.png NEWNAME.png 1170# newins foobar.png NEWNAME.png
1171# 1171#
1172# example 2: newicon -s 48 foobar.png NEWNAME.png 1172# example 2: newicon -s 48 foobar.png NEWNAME.png
1173# results in: insinto /usr/share/icons/hicolor/48x48/apps 1173# results in: insinto /usr/share/icons/hicolor/48x48/apps
1174# newins foobar.png NEWNAME.png 1174# newins foobar.png NEWNAME.png
1175# @CODE 1175# @CODE
1176newicon() { 1176newicon() {
1177 _iconins ${FUNCNAME} "$@" 1177 _iconins ${FUNCNAME} "$@"
1268 1268
1269 # let portage worry about it 1269 # let portage worry about it
1270 has preserve-libs ${FEATURES} && return 0 1270 has preserve-libs ${FEATURES} && return 0
1271 1271
1272 _eutils_eprefix_init 1272 _eutils_eprefix_init
1273 1273
1274 local lib notice=0 1274 local lib notice=0
1275 for lib in "$@" ; do 1275 for lib in "$@" ; do
1276 [[ -e ${EROOT}/${lib} ]] || continue 1276 [[ -e ${EROOT}/${lib} ]] || continue
1277 if [[ ${notice} -eq 0 ]] ; then 1277 if [[ ${notice} -eq 0 ]] ; then
1278 notice=1 1278 notice=1

Legend:
Removed from v.1.434  
changed lines
  Added in v.1.435

  ViewVC Help
Powered by ViewVC 1.1.20