Skip to content

Commit

Permalink
eclass/ruby-fakegem.eclass: fix EXTENSION_LIBDIR handling
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
graaff committed Feb 7, 2021
1 parent bcb11ee commit 1794d15
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion eclass/ruby-fakegem.eclass
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 1794d15

Please sign in to comment.