I need to install Ruby bindings (something.so) during an ebuild,
specifically into the /usr/lib64/ruby/vendor_ruby/3.0.0/x86_64-linux
directory. I scanned existing ebuilds for an example, but have not yet
found one. The developer manual [1] mentions newlib.so, but that
function appears to inject "/lib64" into the destination path on my
machine. Thus, I currently use the following crutch:

  exeinto /usr/lib64/ruby/vendor_ruby/3.0.0/x86_64-linux
  doexe ./bindings/ruby/something.so

While this works for the time being, this seems quite wrong to me,
because the destination path is obviously hardcoded. Is there perhaps
something in the ruby-utils or ruby-single eclasses I missed? I had
hoped to find support for installing vendor modules for Ruby here.

Your suggestiions are appreciated.

-Ralph

[1] https://devmanual.gentoo.org/function-reference/install-functions/index.html

Reply via email to