summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorAlexis Ballier <aballier@gentoo.org>2009-05-22 15:23:35 +0000
committerAlexis Ballier <aballier@gentoo.org>2009-05-22 15:23:35 +0000
commite78a6fa9f9bc1994a32ec89d7b64424ff61718e1 (patch)
tree14930511ee1baac3b1d569aa506cdcbd6d49f933 /eclass
parentAdd patch to build with glibc-2.10, closes bug #270715. (diff)
downloadhistorical-e78a6fa9f9bc1994a32ec89d7b64424ff61718e1.tar.gz
historical-e78a6fa9f9bc1994a32ec89d7b64424ff61718e1.tar.bz2
historical-e78a6fa9f9bc1994a32ec89d7b64424ff61718e1.zip
add support for bash arrays in PATCHES, grabbed from base.eclass, maybe this should be factorized, we'll see about that later
Diffstat (limited to 'eclass')
-rw-r--r--eclass/freebsd.eclass14
1 files changed, 10 insertions, 4 deletions
diff --git a/eclass/freebsd.eclass b/eclass/freebsd.eclass
index 8b1974ace33f..6793b2a9184d 100644
--- a/eclass/freebsd.eclass
+++ b/eclass/freebsd.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/freebsd.eclass,v 1.13 2007/04/21 12:28:43 drizzt Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/freebsd.eclass,v 1.14 2009/05/22 15:23:35 aballier Exp $
#
# Diego Pettenò <flameeyes@gentoo.org>
@@ -58,9 +58,15 @@ freebsd_get_bmake() {
}
freebsd_do_patches() {
- for patch in ${PATCHES}; do
- epatch "${patch}"
- done
+ if [[ ${#PATCHES[@]} -gt 1 ]] ; then
+ for x in "${PATCHES[@]}"; do
+ epatch "${x}"
+ done
+ else
+ for x in ${PATCHES} ; do
+ epatch "${x}"
+ done
+ fi
}
freebsd_rename_libraries() {