1 |
commit: ac649d96b8739e8a813d889513b11e0e911b651f |
2 |
Author: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Nov 7 08:41:34 2021 +0000 |
4 |
Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Nov 7 08:47:23 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ac649d96 |
7 |
|
8 |
eclass/ruby-fakegem.eclass: also set sitelibdir for extensions |
9 |
|
10 |
Normally extensions don't install in sitelibdir since they only deal |
11 |
with compiled code, but there are edge cases. Set sitelibdir correctly |
12 |
to the install destination so that we can keep using the "install" |
13 |
target in the Makefile. |
14 |
|
15 |
Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org> |
16 |
|
17 |
eclass/ruby-fakegem.eclass | 2 +- |
18 |
1 file changed, 1 insertion(+), 1 deletion(-) |
19 |
|
20 |
diff --git a/eclass/ruby-fakegem.eclass b/eclass/ruby-fakegem.eclass |
21 |
index 573e3511daf..7f88c292e53 100644 |
22 |
--- a/eclass/ruby-fakegem.eclass |
23 |
+++ b/eclass/ruby-fakegem.eclass |
24 |
@@ -558,7 +558,7 @@ each_fakegem_install() { |
25 |
local _extensionsdir="$(ruby_fakegem_gemsdir)/extensions/$(ruby_rbconfig_value 'arch')/$(ruby_rbconfig_value 'ruby_version')/${RUBY_FAKEGEM_NAME}-${RUBY_FAKEGEM_VERSION}" |
26 |
|
27 |
for extension in ${RUBY_FAKEGEM_EXTENSIONS[@]} ; do |
28 |
- emake V=1 sitearchdir="${ED}${_extensionsdir}" -C ${extension%/*} install |
29 |
+ emake V=1 sitearchdir="${ED}${_extensionsdir}" sitelibdir="${ED}$(ruby_rbconfig_value 'sitelibdir')" -C ${extension%/*} install |
30 |
done |
31 |
|
32 |
# Add the marker to indicate that the extensions are installed |