diff options
author | Gilles Dartiguelongue <eva@gentoo.org> | 2010-12-07 06:21:59 +0000 |
---|---|---|
committer | Gilles Dartiguelongue <eva@gentoo.org> | 2010-12-07 06:21:59 +0000 |
commit | 8217b8ef3c6b055627cbfcfa2544f04f723b9680 (patch) | |
tree | 391c367cb75e7014e0bbdb44c99d9c22022a6324 /eclass/gnome2-utils.eclass | |
parent | list supported EAPI explicitely (diff) | |
download | historical-8217b8ef3c6b055627cbfcfa2544f04f723b9680.tar.gz historical-8217b8ef3c6b055627cbfcfa2544f04f723b9680.tar.bz2 historical-8217b8ef3c6b055627cbfcfa2544f04f723b9680.zip |
replace usage of type -P by variables
Diffstat (limited to 'eclass/gnome2-utils.eclass')
-rw-r--r-- | eclass/gnome2-utils.eclass | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/eclass/gnome2-utils.eclass b/eclass/gnome2-utils.eclass index 0094968210f6..f9acd01e8d8f 100644 --- a/eclass/gnome2-utils.eclass +++ b/eclass/gnome2-utils.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/gnome2-utils.eclass,v 1.14 2010/12/07 06:18:55 eva Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/gnome2-utils.eclass,v 1.15 2010/12/07 06:21:59 eva Exp $ # # gnome2-utils.eclass @@ -22,6 +22,12 @@ # Path to scrollkeeper-update : ${SCROLLKEEPER_UPDATE_BIN:="${ROOT}usr/bin/scrollkeeper-update"} +# Path to gtk-update-icon-cache +: ${GTK_UPDATE_ICON_CACHE:="/usr/bin/gtk-update-icon-cache"} + +# Path to glib-compile-schemas +: ${GLIB_COMPILE_SCHEMAS:="/usr/bin/glib-compile-schemas"} + DEPEND=">=sys-apps/sed-4" @@ -123,7 +129,7 @@ gnome2_icon_savelist() { # Updates Gtk+ icon cache files under /usr/share/icons if the current ebuild # have installed anything under that location. gnome2_icon_cache_update() { - local updater="$(type -p gtk-update-icon-cache 2> /dev/null)" + local updater="${ROOT}${GTK_UPDATE_ICON_CACHE}" if [[ ! -x "${updater}" ]] ; then debug-print "${updater} is not executable" @@ -229,7 +235,7 @@ gnome2_schemas_savelist() { } gnome2_schemas_update() { - local updater="$(type -P glib-compile-schemas 2>/dev/null)" + local updater="${ROOT}${GLIB_COMPILE_SCHEMAS}" if [[ ! -x ${updater} ]]; then debug-print "${updater} is not executable" |