diff options
author | Mike Gardiner <obz@gentoo.org> | 2004-07-23 05:34:13 +0000 |
---|---|---|
committer | Mike Gardiner <obz@gentoo.org> | 2004-07-23 05:34:13 +0000 |
commit | 945a3e241e1ce58f5b2a4928ea566049b6714e69 (patch) | |
tree | caba4eb95b22b5ec137c7b6267c055a3f800b377 /eclass | |
parent | correcting broken deps for ia64 (Manifest recommit) (diff) | |
download | gentoo-2-945a3e241e1ce58f5b2a4928ea566049b6714e69.tar.gz gentoo-2-945a3e241e1ce58f5b2a4928ea566049b6714e69.tar.bz2 gentoo-2-945a3e241e1ce58f5b2a4928ea566049b6714e69.zip |
Removed sed usage on PVP from the global scope, and awk usage from
SRC_PATH from the global scope, see bug #55708
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/gtk-engines.eclass | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/eclass/gtk-engines.eclass b/eclass/gtk-engines.eclass index 83183e4da504..68384c0f66e9 100644 --- a/eclass/gtk-engines.eclass +++ b/eclass/gtk-engines.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/gtk-engines.eclass,v 1.27 2004/06/25 00:39:48 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/gtk-engines.eclass,v 1.28 2004/07/23 05:34:13 obz Exp $ # # The gtk-engines eclass is inherited by all gtk-engines-* ebuilds. # @@ -132,17 +132,16 @@ then elif [ "X${ENGINE}" = "Xcrux" ] then - PVP=($(echo " $PV " | sed 's:[-\._]: :g')) + PVP="${PV//[-\._]/ }" SRC_URI="mirror://gnome/sources/${MY_PN}/${PVP[0]}.${PVP[1]}/${MY_P}.tar.bz2" elif [ "X${MY_PN}" = "Xgtk-engines" ] && [ "$SLOT" -eq "2" ] then - PVP=($(echo " $PV " | sed 's:[-\._]: :g')) + PVP="${PV//[-\._]/ }" SRC_URI="mirror://gnome/sources/${MY_PN}/${PVP[0]}.${PVP[1]}/${MY_P}.tar.bz2" else - SRC_PATH=`echo ${MY_PN} | awk '{print substr($0,1,1);}'` - SRC_PATH="${SRC_PATH}/${MY_PN}/${MY_PN}_${PV}.orig.tar.gz" + SRC_PATH="${MY_PN:0:1}/${MY_PN}/${MY_PN}_${PV}.orig.tar.gz" SRC_URI="http://ftp.debian.org/debian/pool/main/$SRC_PATH" fi |