dev-ruby/ffi: use get_modname for prefix support
authorHans de Graaff <graaff@gentoo.org>
Sun, 22 Jan 2017 08:31:18 +0000 (09:31 +0100)
committerHans de Graaff <graaff@gentoo.org>
Sun, 22 Jan 2017 08:31:57 +0000 (09:31 +0100)
Thanks to amadio in https://github.com/gentoo/gentoo/pull/3563

Package-Manager: portage-2.3.0

dev-ruby/ffi/ffi-1.9.17.ebuild

index fee39257e533c0492a5fcc8eef4e46254729f744..88c7fda56e3120696c448c00f736b20aed49b5db 100644 (file)
@@ -12,7 +12,7 @@ RUBY_FAKEGEM_RECIPE_DOC="rdoc"
 RUBY_FAKEGEM_DOCDIR="doc"
 RUBY_FAKEGEM_EXTRADOC="README.md"
 
-inherit ruby-fakegem
+inherit multilib ruby-fakegem
 
 DESCRIPTION="Ruby extension for programmatically loading dynamic libraries"
 HOMEPAGE="https://wiki.github.com/ffi/ffi"
@@ -46,7 +46,7 @@ each_ruby_configure() {
 
 each_ruby_compile() {
        emake -Cext/ffi_c V=1
-       cp ext/ffi_c/ffi_c.so lib/ || die
+       cp ext/ffi_c/ffi_c$(get_modname) lib/ || die
 
        ${RUBY} -S rake -f gen/Rakefile || die "types.conf generation failed"
 }