1 |
|
# Copyright 1999-2024 Gentoo Authors
|
|
1 |
# Copyright 1999-2025 Gentoo Authors
|
2 |
2 |
# Distributed under the terms of the GNU General Public License v2
|
3 |
3 |
|
4 |
4 |
EAPI=8
|
5 |
|
USE_RUBY="ruby30 ruby31 ruby32"
|
|
5 |
USE_RUBY="ruby31 ruby32 ruby33"
|
6 |
6 |
|
7 |
7 |
RUBY_FAKEGEM_RECIPE_TEST="cucumber"
|
8 |
8 |
RUBY_FAKEGEM_RECIPE_DOC="none"
|
... | ... | |
18 |
18 |
SRC_URI="https://github.com/cucumber/aruba/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
19 |
19 |
LICENSE="MIT"
|
20 |
20 |
|
21 |
|
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
|
22 |
21 |
SLOT="$(ver_cut 1)"
|
23 |
|
IUSE=""
|
|
22 |
KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
|
|
23 |
IUSE="test"
|
24 |
24 |
|
25 |
|
DEPEND="${DEPEND} test? ( app-alternatives/bc )"
|
26 |
|
RDEPEND="${RDEPEND}"
|
|
25 |
DEPEND="test? ( app-alternatives/bc )"
|
27 |
26 |
|
28 |
27 |
ruby_add_rdepend "
|
29 |
28 |
=dev-ruby/bundler-2*
|
30 |
|
>=dev-ruby/childprocess-2.0 <dev-ruby/childprocess-5
|
31 |
29 |
>=dev-ruby/contracts-0.16.0 <dev-ruby/contracts-0.18
|
|
30 |
>=dev-util/cucumber-8.0 <dev-util/cucumber-10
|
32 |
31 |
>=dev-ruby/rspec-expectations-3.4:3
|
33 |
32 |
dev-ruby/thor:1
|
34 |
|
>=dev-util/cucumber-2.4 <dev-util/cucumber-9
|
35 |
|
!<dev-util/aruba-1.1.2-r1"
|
|
33 |
"
|
36 |
34 |
|
37 |
|
ruby_add_bdepend "test? ( dev-ruby/pry dev-ruby/rspec:3 )"
|
|
35 |
ruby_add_bdepend "test? ( >=dev-ruby/appraisal-2.4:2 dev-ruby/pry dev-ruby/rspec:3 )"
|
38 |
36 |
|
39 |
37 |
all_ruby_prepare() {
|
40 |
38 |
# Remove bundler-related code.
|
... | ... | |
48 |
46 |
|
49 |
47 |
sed -e 's:_relative ": "./:' \
|
50 |
48 |
-e 's/git ls-files -z/find * -print0/' \
|
51 |
|
-e '/\(pry-doc\|rake-manifest\|rubocop\|yard-junk\)/ s:^:#:' \
|
52 |
|
-e '/simplecov/ s/22/23/' \
|
|
49 |
-e '/\(kramdown\|pry-doc\|rake-manifest\|rubocop\|simplecov\|yard-junk\)/ s:^:#:' \
|
53 |
50 |
-i ${RUBY_FAKEGEM_GEMSPEC} || die
|
54 |
51 |
|
55 |
52 |
# Avoid features with minor output differences
|
56 |
|
sed -i -e '/Use .aruba. with .Minitest./i\ @wip' features/01_getting_started_with_aruba/supported_testing_frameworks.feature || die
|
57 |
|
sed -i -e '/Create files for Minitest/i\ @wip' features/06_use_aruba_cli/initialize_project_with_aruba.feature || die
|
|
53 |
sed -e '/Use .aruba. with .Minitest./i\ @wip' \
|
|
54 |
-i features/01_getting_started_with_aruba/supported_testing_frameworks.feature || die
|
|
55 |
sed -e '/Create files for Minitest/i\ @wip' \
|
|
56 |
-i features/06_use_aruba_cli/initialize_project_with_aruba.feature || die
|
58 |
57 |
rm -f features/03_testing_frameworks/cucumber/steps/command/wait_for_output_of_command.feature || die
|
59 |
58 |
|
60 |
59 |
# Avoid feature that requires aruba to be installed already
|
61 |
60 |
rm -r features/03_testing_frameworks/cucumber/disable_bundler.feature || die
|
|
61 |
|
|
62 |
# Avoid feature that makes assumptions about physical block size
|
|
63 |
# that we cannot guarantee, bug #935294
|
|
64 |
rm -f features/04_aruba_api/filesystem/report_disk_usage.feature || die
|
62 |
65 |
}
|
63 |
66 |
|
64 |
67 |
each_ruby_test() {
|