summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorMamoru Komachi <usata@gentoo.org>2004-04-24 13:39:55 +0000
committerMamoru Komachi <usata@gentoo.org>2004-04-24 13:39:55 +0000
commit4a669654b938d27379ed9dffdaecda93898b6961 (patch)
treec17d9baafa2d7a2a5db5719cb4d15fa653401a3c /eclass
parent~amd64 (diff)
downloadhistorical-4a669654b938d27379ed9dffdaecda93898b6961.tar.gz
historical-4a669654b938d27379ed9dffdaecda93898b6961.tar.bz2
historical-4a669654b938d27379ed9dffdaecda93898b6961.zip
Do not run src_compile twice if only one version of ruby is installed.
Diffstat (limited to 'eclass')
-rw-r--r--eclass/ruby.eclass5
1 files 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 <usata@gentoo.org>
#
@@ -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}