mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
dev-ruby/megatest: new package, add 0.3.0
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
This commit is contained in:
1
dev-ruby/megatest/Manifest
Normal file
1
dev-ruby/megatest/Manifest
Normal file
@@ -0,0 +1 @@
|
||||
DIST megatest-0.3.0.tar.gz 57003 BLAKE2B 26f10266af79c8ed1aac5ae032ba918dcd3aa06abfa0f8897a65e0f172f8c3dd427b087021f4456cd73334f0e144c2fcae898feaa5fbbba706107d35ca553995 SHA512 5a7e8194f45e2c2509f79b631c990a8882c205f11affc6ebcc6c820c86468759d9e8c677b3bafe88864e51f73f1796ac96e84d241f5715e7eb45377519415473
|
||||
40
dev-ruby/megatest/megatest-0.3.0.ebuild
Normal file
40
dev-ruby/megatest/megatest-0.3.0.ebuild
Normal file
@@ -0,0 +1,40 @@
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
USE_RUBY="ruby32 ruby33 ruby34"
|
||||
|
||||
RUBY_FAKEGEM_BINDIR="exe"
|
||||
RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.md TODO.md"
|
||||
RUBY_FAKEGEM_GEMSPEC="megatest.gemspec"
|
||||
|
||||
inherit ruby-fakegem
|
||||
|
||||
DESCRIPTION="A test-unit like framework with a focus on usability, designed with CI in mind."
|
||||
HOMEPAGE="https://github.com/byroot/megatest"
|
||||
SRC_URI="https://github.com/byroot/megatest/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="$(ver_cut 1)"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
all_ruby_prepare() {
|
||||
sed -e '/\(bundler\|rubocop\)/I s:^:#:' \
|
||||
-i Rakefile || die
|
||||
|
||||
sed -e 's/git ls-files -z/find * -print0/' \
|
||||
-e 's:_relative ": "./:' \
|
||||
-e 's/__FILE__/"megatest.gemspec"/' \
|
||||
-e 's/__dir__/"."/' \
|
||||
-i ${RUBY_FAKEGEM_GEMSPEC} || die
|
||||
|
||||
# Avoid testing redis support for now since it is not packaged yet.
|
||||
sed -e '/redis_queue/ s:^:#:' \
|
||||
-i test/test_helper.rb || die
|
||||
rm -f test/megatest/redis_queue_test.rb test/integration/multi_process_integration_test.rb || die
|
||||
}
|
||||
|
||||
each_ruby_test() {
|
||||
${RUBY} -I lib exe/megatest test || die
|
||||
}
|
||||
12
dev-ruby/megatest/metadata.xml
Normal file
12
dev-ruby/megatest/metadata.xml
Normal file
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="project">
|
||||
<email>ruby@gentoo.org</email>
|
||||
<name>Gentoo Ruby Project</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="github">byroot/megatest</remote-id>
|
||||
<remote-id type="rubygems">megatest</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
Reference in New Issue
Block a user