diff options
author | Hans de Graaff <graaff@gentoo.org> | 2011-04-25 08:37:26 +0000 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2011-04-25 08:37:26 +0000 |
commit | 4617cd6347736ac2979300fdd99658ae36cb7890 (patch) | |
tree | d0fcebf6b8c77d65f023f95e3db332f091c4ea30 /eclass/ruby-ng.eclass | |
parent | Fix typo. (diff) | |
download | gentoo-2-4617cd6347736ac2979300fdd99658ae36cb7890.tar.gz gentoo-2-4617cd6347736ac2979300fdd99658ae36cb7890.tar.bz2 gentoo-2-4617cd6347736ac2979300fdd99658ae36cb7890.zip |
Handle case where RUBY_S is not provided.
Diffstat (limited to 'eclass/ruby-ng.eclass')
-rw-r--r-- | eclass/ruby-ng.eclass | 8 |
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}/} |