From 09ef96d9040749bafaa6259ccff99d2550df67de Mon Sep 17 00:00:00 2001 From: Mamoru Komachi Date: Sat, 24 Apr 2004 13:39:55 +0000 Subject: Do not run src_compile twice if only one version of ruby is installed. --- eclass/ruby.eclass | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/eclass/ruby.eclass b/eclass/ruby.eclass index adbabb5f6060..d2fd8851b30d 100644 --- a/eclass/ruby.eclass +++ b/eclass/ruby.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/ruby.eclass,v 1.28 2004/04/10 13:02:38 usata Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/ruby.eclass,v 1.29 2004/04/24 13:39:55 usata Exp $ # # Author: Mamoru KOMACHI # @@ -179,7 +179,7 @@ prepall() { [[ ! -x /usr/bin/ruby18 ]] && export USE_RUBY=${USE_RUBY/ruby18/} [[ ! -x /usr/bin/ruby19 ]] && export USE_RUBY=${USE_RUBY/ruby19/} - if [ -n "${USE_RUBY}" -a "${USE_RUBY}" != "any" ] ; then + if [ $(echo "${USE_RUBY}" | wc -w) -ge 2 ] ; then einfo "Now we are building the package for ${USE_RUBY}" for rb in ${USE_RUBY} ruby ; do einfo "Using $rb" @@ -190,6 +190,7 @@ prepall() { einfo "Unpacking for $rb" src_unpack || die "src_unpack failed" cd ${S} + find . -name '*.[ao]' -exec rm {} \; einfo "Building for $rb" src_compile || die "src_compile failed" cd ${S} -- cgit v1.2.3-65-gdbad