diff options
author | Hans de Graaff <graaff@gentoo.org> | 2019-07-21 08:34:55 +0200 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2019-07-25 08:09:42 +0200 |
commit | 4b912aaa138bcf94e62e1809baa04b6d4f062d50 (patch) | |
tree | 50a95de570929556d96f641994d444a9283d0ece /eclass | |
parent | ruby-ng.eclass: make presence of RUBY_PATCHES fatal (diff) | |
download | gentoo-4b912aaa138bcf94e62e1809baa04b6d4f062d50.tar.gz gentoo-4b912aaa138bcf94e62e1809baa04b6d4f062d50.tar.bz2 gentoo-4b912aaa138bcf94e62e1809baa04b6d4f062d50.zip |
ruby-ng.eclass: use ruby_rbconfig_value
Consistently use ruby_rbconfig_value to get ruby configuration
information.
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/ruby-ng.eclass | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/eclass/ruby-ng.eclass b/eclass/ruby-ng.eclass index 59d4450a9954..8663033a499c 100644 --- a/eclass/ruby-ng.eclass +++ b/eclass/ruby-ng.eclass @@ -515,10 +515,10 @@ _each_ruby_check_install() { # we have a Mach-O object here [[ ${CHOST} == *-darwin ]] && scancmd=scanmacho - local libruby_basename=$(${RUBY} -rrbconfig -e 'puts RbConfig::CONFIG["LIBRUBY_SO"]') + local libruby_basename=$(ruby_rbconfig_value 'LIBRUBY_SO') local libruby_soname=$(basename $(${scancmd} -F "%S#F" -qS "${EPREFIX}/usr/$(get_libdir)/${libruby_basename}") 2>/dev/null) - local sitedir=$(${RUBY} -rrbconfig -e 'puts RbConfig::CONFIG["sitedir"]') - local sitelibdir=$(${RUBY} -rrbconfig -e 'puts RbConfig::CONFIG["sitelibdir"]') + local sitedir=$(ruby_rbconfig_value 'sitedir') + local sitelibdir=$(ruby_rbconfig_value 'sitelibdir') # The current implementation lacks libruby (i.e.: jruby) [[ -z ${libruby_soname} ]] && return 0 |