diff options
author | Alexis Ballier <aballier@gentoo.org> | 2009-05-22 15:23:35 +0000 |
---|---|---|
committer | Alexis Ballier <aballier@gentoo.org> | 2009-05-22 15:23:35 +0000 |
commit | ec3f18f899af49c24dbb3ebbe4fffc2e505995d9 (patch) | |
tree | da579d29c8a9c0b5c9f677631ac5ea549eeb485d /eclass/freebsd.eclass | |
parent | Add patch to build with glibc-2.10, closes bug #270715. (diff) | |
download | gentoo-2-ec3f18f899af49c24dbb3ebbe4fffc2e505995d9.tar.gz gentoo-2-ec3f18f899af49c24dbb3ebbe4fffc2e505995d9.tar.bz2 gentoo-2-ec3f18f899af49c24dbb3ebbe4fffc2e505995d9.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/freebsd.eclass')
-rw-r--r-- | eclass/freebsd.eclass | 14 |
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() { |