eclass/ruby-fakegem.eclass: support non-default bindir
authorHans de Graaff <graaff@gentoo.org>
Mon, 21 Dec 2015 20:08:13 +0000 (21:08 +0100)
committerHans de Graaff <graaff@gentoo.org>
Wed, 30 Dec 2015 08:10:07 +0000 (09:10 +0100)
commitd0d66933b9a8e7ad8bc3c75e03795f7db2399e71
treef2e9e288206a559ee0a9b86a12e2c615d2a7d151
parenta1b950cb1d47e3654e72ad6ba30ba7d09ad1e4f7
eclass/ruby-fakegem.eclass: support non-default bindir

By default gems can provide binaries to be bin-wrapped in /usr/bin in a
directory called "bin" in the gem. This is only a default, and it is
possible for the gem to indicate that another directory contains the
binaries to be bin-wrapped using the gemspec bindir option.
dev-ruby/rspec-core and dev-ruby/bundler are gems where the
binaries are placed in an "exe" directory.

This change introduces RUBY_FAKEGEM_BINDIR, defaulting to "bin" for
backward compatibility, allowing this directory to be specified.
eclass/ruby-fakegem.eclass