commit:     4b912aaa138bcf94e62e1809baa04b6d4f062d50
Author:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
AuthorDate: Sun Jul 21 06:34:55 2019 +0000
Commit:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
CommitDate: Thu Jul 25 06:09:42 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4b912aaa

ruby-ng.eclass: use ruby_rbconfig_value

Consistently use ruby_rbconfig_value to get ruby configuration
information.

Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org>

 eclass/ruby-ng.eclass | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/eclass/ruby-ng.eclass b/eclass/ruby-ng.eclass
index 59d4450a995..8663033a499 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

Reply via email to