summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2008-04-12 08:36:28 +0000
committerHans de Graaff <graaff@gentoo.org>2008-04-12 08:36:28 +0000
commit04fd26f209d9dd2f6f6493e125318295de560abb (patch)
treeebad03791c7edca8b2ed7b2a273b106cdc95ea6f /eclass/ruby-gnome2.eclass
parentdev-cpp/libxmlpp: fix manifest, bug #215451 (diff)
downloadhistorical-04fd26f209d9dd2f6f6493e125318295de560abb.tar.gz
historical-04fd26f209d9dd2f6f6493e125318295de560abb.tar.bz2
historical-04fd26f209d9dd2f6f6493e125318295de560abb.zip
Support bash arrays in the PATCHES variable
Diffstat (limited to 'eclass/ruby-gnome2.eclass')
-rw-r--r--eclass/ruby-gnome2.eclass12
1 files changed, 8 insertions, 4 deletions
diff --git a/eclass/ruby-gnome2.eclass b/eclass/ruby-gnome2.eclass
index e8c31d9a0f77..5d70319a6e2a 100644
--- a/eclass/ruby-gnome2.eclass
+++ b/eclass/ruby-gnome2.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/ruby-gnome2.eclass,v 1.11 2007/01/26 15:53:18 pclouds Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/ruby-gnome2.eclass,v 1.12 2008/04/12 08:36:28 graaff Exp $
#
# This eclass simplifies installation of the various pieces of
# ruby-gnome2 since they share a very common installation procedure.
@@ -46,9 +46,13 @@ END
unpack ${A}
cd ${S}
# apply bulk patches
- if [[ -n "${PATCHES}" ]] ; then
- for p in ${PATCHES} ; do
- epatch $p
+ if [[ ${#PATCHES[@]} -gt 1 ]]; then
+ for x in "${PATCHES[@]}"; do
+ epatch "${x}"
+ done
+ else
+ for x in ${PATCHES}; do
+ epatch "${x}"
done
fi
}