summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2011-04-25 08:37:26 +0000
committerHans de Graaff <graaff@gentoo.org>2011-04-25 08:37:26 +0000
commitbc57556169d9317d2e78d02f89c8ad20044e4047 (patch)
tree365bc0b7e7d1b0062fb3a6da81034b67151c2104 /eclass
parentFix typo. (diff)
downloadhistorical-bc57556169d9317d2e78d02f89c8ad20044e4047.tar.gz
historical-bc57556169d9317d2e78d02f89c8ad20044e4047.tar.bz2
historical-bc57556169d9317d2e78d02f89c8ad20044e4047.zip
Handle case where RUBY_S is not provided.
Diffstat (limited to 'eclass')
-rw-r--r--eclass/ruby-ng.eclass8
1 files changed, 6 insertions, 2 deletions
diff --git a/eclass/ruby-ng.eclass b/eclass/ruby-ng.eclass
index 195230e57489..7cc7b0bbc775 100644
--- a/eclass/ruby-ng.eclass
+++ b/eclass/ruby-ng.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/ruby-ng.eclass,v 1.31 2011/04/25 06:27:22 graaff Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/ruby-ng.eclass,v 1.32 2011/04/25 08:37:26 graaff Exp $
#
# @ECLASS: ruby-ng.eclass
# @MAINTAINER:
@@ -259,7 +259,11 @@ _ruby_invoke_environment() {
old_S=${S}
case ${EAPI} in
4)
- sub_S=${RUBY_S}
+ if [ -z ${RUBY_S} ]; then
+ sub_S=${P}
+ else
+ sub_S=${RUBY_S}
+ fi
;;
*)
sub_S=${S#${WORKDIR}/}