summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2021-11-07 09:41:34 +0100
committerHans de Graaff <graaff@gentoo.org>2021-11-07 09:47:23 +0100
commitac649d96b8739e8a813d889513b11e0e911b651f (patch)
tree42ccf66a0b045391a7a541e4b2b09dfa2adee99d
parentdev-python/parse_type: add 0.5.6 (diff)
downloadgentoo-ac649d96b8739e8a813d889513b11e0e911b651f.tar.gz
gentoo-ac649d96b8739e8a813d889513b11e0e911b651f.tar.bz2
gentoo-ac649d96b8739e8a813d889513b11e0e911b651f.zip
eclass/ruby-fakegem.eclass: also set sitelibdir for extensions
Normally extensions don't install in sitelibdir since they only deal with compiled code, but there are edge cases. Set sitelibdir correctly to the install destination so that we can keep using the "install" target in the Makefile. Signed-off-by: Hans de Graaff <graaff@gentoo.org>
-rw-r--r--eclass/ruby-fakegem.eclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/eclass/ruby-fakegem.eclass b/eclass/ruby-fakegem.eclass
index 573e3511daf7..7f88c292e536 100644
--- a/eclass/ruby-fakegem.eclass
+++ b/eclass/ruby-fakegem.eclass
@@ -558,7 +558,7 @@ each_fakegem_install() {
local _extensionsdir="$(ruby_fakegem_gemsdir)/extensions/$(ruby_rbconfig_value 'arch')/$(ruby_rbconfig_value 'ruby_version')/${RUBY_FAKEGEM_NAME}-${RUBY_FAKEGEM_VERSION}"
for extension in ${RUBY_FAKEGEM_EXTENSIONS[@]} ; do
- emake V=1 sitearchdir="${ED}${_extensionsdir}" -C ${extension%/*} install
+ emake V=1 sitearchdir="${ED}${_extensionsdir}" sitelibdir="${ED}$(ruby_rbconfig_value 'sitelibdir')" -C ${extension%/*} install
done
# Add the marker to indicate that the extensions are installed