dev-ruby/rbtree: fix installation of files

Place compiled object file in a location where it
can be found and used when installed as a gem.
This also fixes bug 593376

Package-Manager: portage-2.2.28
This commit is contained in:
Hans de Graaff
2016-09-11 08:51:50 +02:00
parent 88f0c97970
commit fa2041c116

View File

@@ -3,16 +3,15 @@
# $Id$
EAPI=5
# ruby23: fails tests
USE_RUBY="ruby20 ruby21 ruby22"
RUBY_FAKEGEM_TASK_TEST=""
RUBY_FAKEGEM_TASK_DOC=""
RUBY_FAKEGEM_EXTRADOC="README"
inherit multilib ruby-fakegem
RUBY_FAKEGEM_EXTRAINSTALL="rbtree$(get_modname)"
DESCRIPTION="Ruby/RBTree module"
HOMEPAGE="http://www.geocities.co.jp/SiliconValley-PaloAlto/3388/rbtree/README.html"
@@ -24,6 +23,8 @@ IUSE="test"
all_ruby_prepare() {
# Fix test for random hash ordering.
sed -i -e '527 s/flatten/flatten.sort/g' test.rb || die
mkdir lib || die
}
each_ruby_configure() {
@@ -32,6 +33,7 @@ each_ruby_configure() {
each_ruby_compile() {
emake V=1
cp rbtree$(get_modname) lib/ || die
}
each_ruby_test() {