summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gardiner <obz@gentoo.org>2004-07-23 05:34:13 +0000
committerMike Gardiner <obz@gentoo.org>2004-07-23 05:34:13 +0000
commitc67047468e180b89150e3ee40ff0efa139172165 (patch)
tree3ee981a2ca9fe14eba85815dd8e7bd85d322969d /eclass/gtk-engines.eclass
parentcorrecting broken deps for ia64 (diff)
downloadhistorical-c67047468e180b89150e3ee40ff0efa139172165.tar.gz
historical-c67047468e180b89150e3ee40ff0efa139172165.tar.bz2
historical-c67047468e180b89150e3ee40ff0efa139172165.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/gtk-engines.eclass')
-rw-r--r--eclass/gtk-engines.eclass9
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