summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@gentoo.org>2009-12-05 11:33:10 +0000
committerDiego Elio Pettenò <flameeyes@gentoo.org>2009-12-05 11:33:10 +0000
commitd0edbcb3e36b6310704effce397e37fbfe75db09 (patch)
treeedce727c1a39fb77eac7c8676db816266e09d664 /eclass/ruby-ng.eclass
parentAvoid calling ruby twice since we already calculated that directory. (diff)
downloadhistorical-d0edbcb3e36b6310704effce397e37fbfe75db09.tar.gz
historical-d0edbcb3e36b6310704effce397e37fbfe75db09.tar.bz2
historical-d0edbcb3e36b6310704effce397e37fbfe75db09.zip
Add a check for $RUBY to be set in doruby.
Diffstat (limited to 'eclass/ruby-ng.eclass')
-rw-r--r--eclass/ruby-ng.eclass5
1 files changed, 3 insertions, 2 deletions
diff --git a/eclass/ruby-ng.eclass b/eclass/ruby-ng.eclass
index ac0c7ebb9232..5fbb6043e314 100644
--- a/eclass/ruby-ng.eclass
+++ b/eclass/ruby-ng.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/ruby-ng.eclass,v 1.3 2009/12/05 11:32:19 flameeyes Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/ruby-ng.eclass,v 1.4 2009/12/05 11:33:10 flameeyes Exp $
#
# @ECLASS: ruby-ng.eclass
# @MAINTAINER:
@@ -411,8 +411,9 @@ ruby-ng_src_install() {
# @DESCRIPTION:
# Installs the specified file(s) into the sitelibdir of the Ruby interpreter in ${RUBY}.
doruby() {
+ [[ -z ${RUBY} ]] && die "\$RUBY is not set"
( # don't want to pollute calling env
- insinto $(${RUBY} -r rbconfig -e 'print Config::CONFIG["sitelibdir"]')
+ insinto $(${RUBY} -rrbconfig -e 'print Config::CONFIG["sitelibdir"]')
insopts -m 0644
doins "$@"
) || die "failed to install $@"