1 |
|
# Copyright 1999-2025 Gentoo Authors
|
|
1 |
# Copyright 1999-2024 Gentoo Authors
|
2 |
2 |
# Distributed under the terms of the GNU General Public License v2
|
3 |
3 |
|
4 |
4 |
EAPI=8
|
5 |
5 |
|
6 |
|
USE_RUBY="ruby32 ruby33 ruby34"
|
7 |
|
|
8 |
|
RUBY_FAKEGEM_RECIPE_TEST="none"
|
9 |
|
|
|
6 |
USE_RUBY="ruby31 ruby32 ruby33"
|
|
7 |
RUBY_FAKEGEM_RECIPE_TEST="rspec3"
|
10 |
8 |
RUBY_FAKEGEM_EXTRAINSTALL="CHANGELOG.md README.md"
|
11 |
|
|
12 |
9 |
RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec"
|
13 |
|
|
14 |
10 |
RUBY_FAKEGEM_BINWRAP=""
|
15 |
11 |
|
16 |
12 |
inherit ruby-fakegem
|
... | ... | |
23 |
19 |
SLOT="$(ver_cut 1)"
|
24 |
20 |
KEYWORDS="amd64 arm arm64 ~hppa ~loong ppc ppc64 ~riscv ~s390 sparc ~x86"
|
25 |
21 |
|
26 |
|
ruby_add_rdepend ">=dev-ruby/activesupport-4.2.0:*"
|
|
22 |
# Fedora manage to run the tests, but it's still pretty tricky.
|
|
23 |
# https://src.fedoraproject.org/rpms/rubygem-shoulda-matchers/blob/rawhide/f/rubygem-shoulda-matchers.spec
|
|
24 |
RESTRICT="test"
|
|
25 |
|
|
26 |
ruby_add_rdepend ">=dev-ruby/activesupport-5.2.0:*"
|
27 |
27 |
|
28 |
28 |
all_ruby_prepare() {
|
29 |
29 |
sed -i -e '/pry/ s:^:#:' spec/spec_helper.rb || die
|
30 |
|
#sed -i -e '/s.files/,/^ end/ s:^:#:' ${RUBY_FAKEGEM_GEMSPEC} || die
|
|
30 |
|
|
31 |
#rm Gemfile.lock || die
|
|
32 |
|
|
33 |
# Avoid Appraisal and Bundler.
|
|
34 |
#sed -i "/current_bundle/ s/^/#/" \
|
|
35 |
# spec/acceptance_spec_helper.rb \
|
|
36 |
# spec/support/unit/load_environment.rb || die
|
|
37 |
#sed -i "/CurrentBundle/ s/^/#/" \
|
|
38 |
# spec/acceptance_spec_helper.rb \
|
|
39 |
# spec/support/unit/load_environment.rb || die
|
|
40 |
|
|
41 |
# Avoid git and sprockets dependencies.
|
|
42 |
#sed -i '/def rails_new_command/,/^ end$/ {
|
|
43 |
# /rails new/ s/"$/ --skip-git --skip-asset-pipeline&/
|
|
44 |
#}' spec/support/unit/rails_application.rb || die
|
|
45 |
#sed -i '/def rails_new_command/,/^ end$/ {
|
|
46 |
# /rails new/ s/"$/ --skip-git --skip-asset-pipeline&/
|
|
47 |
#}' spec/support/acceptance/helpers/step_helpers.rb || die
|
31 |
48 |
}
|