Skip to content

Commit

Permalink
eclass/ruby-fakegem.eclass: updated extensions dir according to formu…
Browse files Browse the repository at this point in the history
…la from rubygems

Signed-off-by: Andrew Aladjev <aladjev.andrew@gmail.com>
  • Loading branch information
andrew-aladev committed Dec 6, 2021
1 parent 7fafad2 commit 9dbc38f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion eclass/ruby-fakegem.eclass
Expand Up @@ -561,7 +561,10 @@ ruby_fakegem_extensions_installed() {
# The directory where rubygems expects extensions for this package
# version.
ruby_fakegem_extensionsdir() {
echo "$(ruby_fakegem_gemsdir)/extensions/$(ruby_rbconfig_value 'arch')/$(ruby_rbconfig_value 'ruby_version')/${RUBY_FAKEGEM_NAME}-${RUBY_FAKEGEM_VERSION}"
# Using formula from ruby src/lib/rubygems/basic_specification.
extensions_dir=$(${RUBY} --disable=did_you_mean -e "puts File.join('extensions', Gem::Platform.local.to_s, Gem.extension_api_version)")

echo "$(ruby_fakegem_gemsdir)/${extensions_dir}/${RUBY_FAKEGEM_NAME}-${RUBY_FAKEGEM_VERSION}"
}

# @FUNCTION: each_fakegem_install
Expand Down

0 comments on commit 9dbc38f

Please sign in to comment.