summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2021-02-07 08:29:32 +0100
committerHans de Graaff <graaff@gentoo.org>2021-02-07 09:23:58 +0100
commit1794d15eb71d57fd5654c1e67692417abc2b456a (patch)
tree4ad3dc1cc9eaebc89e95023f1f9c7f459c79cbed /eclass/ruby-fakegem.eclass
parentdev-ruby/msgpack: add 1.4.2 (diff)
downloadgentoo-1794d15eb71d57fd5654c1e67692417abc2b456a.tar.gz
gentoo-1794d15eb71d57fd5654c1e67692417abc2b456a.tar.bz2
gentoo-1794d15eb71d57fd5654c1e67692417abc2b456a.zip
eclass/ruby-fakegem.eclass: fix EXTENSION_LIBDIR handling
Create the directory if needed and take into account that RUBY_FAKEGEM_EXTENSION_LIBDIR may or may not have an ending /. Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'eclass/ruby-fakegem.eclass')
-rw-r--r--eclass/ruby-fakegem.eclass3
1 files changed, 2 insertions, 1 deletions
diff --git a/eclass/ruby-fakegem.eclass b/eclass/ruby-fakegem.eclass
index f3b3ee02085c..fd8e4ed88bc2 100644
--- a/eclass/ruby-fakegem.eclass
+++ b/eclass/ruby-fakegem.eclass
@@ -444,7 +444,8 @@ all_fakegem_compile() {
each_fakegem_compile() {
for extension in "${RUBY_FAKEGEM_EXTENSIONS[@]}" ; do
emake V=1 -C ${extension%/*}
- cp "${extension%/*}"/*$(get_modname) "${RUBY_FAKEGEM_EXTENSION_LIBDIR}" || die "Copy of extension into ${RUBY_FAKEGEM_EXTENSION_LIBDIR} failed"
+ mkdir -p "${RUBY_FAKEGEM_EXTENSION_LIBDIR%/}"
+ cp "${extension%/*}"/*$(get_modname) "${RUBY_FAKEGEM_EXTENSION_LIBDIR%/}/" || die "Copy of extension into ${RUBY_FAKEGEM_EXTENSION_LIBDIR} failed"
done
}