You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
833 B

# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=5
# ruby25: fails tests
USE_RUBY="ruby22 ruby23 ruby24"
RUBY_FAKEGEM_DOCDIR="doc"
RUBY_FAKEGEM_TASK_DOC=""
RUBY_FAKEGEM_EXTRADOC="CHANGELOG README"
RUBY_FAKEGEM_NAME="PriorityQueue"
inherit multilib ruby-fakegem
DESCRIPTION="A fibonacci-heap priority-queue implementation"
HOMEPAGE="https://rubygems.org/gems/PriorityQueue"
LICENSE="Ruby"
SLOT="0"
KEYWORDS="~amd64"
IUSE=""
all_ruby_prepare() {
rm Makefile *.o *.so || die
sed -i -e "s/::Config/RbConfig/" setup.rb || die
}
each_ruby_configure() {
${RUBY} setup.rb config || die
}
each_ruby_compile() {
${RUBY} setup.rb setup || die
cp ext/priority_queue/*$(get_modname) lib/ || die
}
each_ruby_test() {
${RUBY} -Ilib test/priority_queue_test.rb || die
}