summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMamoru Komachi <usata@gentoo.org>2004-01-22 07:37:25 +0000
committerMamoru Komachi <usata@gentoo.org>2004-01-22 07:37:25 +0000
commitf219f4b88452f9616a2b52d59800f4f1dc2d8970 (patch)
treee43f2daedd08ceb21a07242f5c4ec7830aabfa54 /eclass/ruby.eclass
parentRemoved redundant html directory created in docs dir (diff)
downloadhistorical-f219f4b88452f9616a2b52d59800f4f1dc2d8970.tar.gz
historical-f219f4b88452f9616a2b52d59800f4f1dc2d8970.tar.bz2
historical-f219f4b88452f9616a2b52d59800f4f1dc2d8970.zip
Added setup.rb support
Diffstat (limited to 'eclass/ruby.eclass')
-rw-r--r--eclass/ruby.eclass13
1 files changed, 12 insertions, 1 deletions
diff --git a/eclass/ruby.eclass b/eclass/ruby.eclass
index 821de6be201e..b45bc5ff5719 100644
--- a/eclass/ruby.eclass
+++ b/eclass/ruby.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/ruby.eclass,v 1.20 2004/01/22 07:25:32 usata Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/ruby.eclass,v 1.21 2004/01/22 07:37:25 usata Exp $
#
# Author: Mamoru KOMACHI <usata@gentoo.org>
#
@@ -97,6 +97,12 @@ erubyconf() {
${RUBY} install.rb setup $@ \
|| die "install.rb setup failed"
fi
+ if [ -f setup.rb ] ; then
+ ${RUBY} setup.rb config --prefix=/usr $@ \
+ || die "setup.rb config failed"
+ ${RUBY} setup.rb setup $@ \
+ || die "setup.rb setup failed"
+ fi
if [ -f extconf.rb ] ; then
${RUBY} extconf.rb $@ || die "extconf.rb failed"
fi
@@ -172,6 +178,11 @@ erubyinstall() {
|| die "install.rb config failed"
${RUBY} install.rb install $@ \
|| die "install.rb install failed"
+ elif [ -f setup.rb ] ; then
+ ${RUBY} setup.rb config --prefix=${D}/usr $@ \
+ || die "setup.rb config failed"
+ ${RUBY} setup.rb install $@ \
+ || die "setup.rb install failed"
elif [ -f extconf.rb -o -f Makefile ] ; then
make DESTDIR=${D} $@ install || die "make install failed"
else