gentoo-ebuilds/dev-ruby/nanotest/nanotest-0.9.4.1-r2.ebuild
Hans de Graaff 790f891e1f
dev-ruby/nanotest: enable ruby34
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
2024-12-31 07:39:20 +01:00

28 lines
662 B
Bash

# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
USE_RUBY="ruby31 ruby32 ruby33 ruby34"
RUBY_FAKEGEM_EXTRADOC="README.md"
inherit ruby-fakegem
DESCRIPTION="Extremely mynymal test framework"
HOMEPAGE="https://github.com/mynyml/nanotest"
LICENSE="MIT"
SLOT="0"
KEYWORDS="amd64 arm arm64 ~hppa ~loong ppc ppc64 ~riscv ~s390 sparc x86"
IUSE="test"
ruby_add_bdepend "test? ( dev-ruby/minitest:5 )"
all_ruby_prepare() {
sed -e 's/MiniTest::Unit::TestCase/Minitest::Test/' \
-i test/test_helper.rb test/test_nanotest.rb || die
}
each_ruby_test() {
${RUBY} -I.:lib test/test_nanotest.rb || die
}