1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
5 USE_RUBY="ruby25 ruby26 ruby27"
7 RUBY_FAKEGEM_TASK_TEST="test:regular"
8 RUBY_FAKEGEM_RECIPE_DOC=""
9 RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.rdoc"
11 RUBY_FAKEGEM_GEMSPEC="railties.gemspec"
13 RUBY_FAKEGEM_BINDIR="exe"
14 RUBY_FAKEGEM_BINWRAP=""
18 DESCRIPTION="Tools for creating, working with, and running Rails applications"
19 HOMEPAGE="https://github.com/rails/rails"
20 SRC_URI="https://github.com/rails/rails/archive/v${PV}.tar.gz -> rails-${PV}.tgz"
24 KEYWORDS="~amd64 ~arm ~arm64 ~x86"
27 RUBY_S="rails-${PV}/${PN}"
29 # The test suite has many failures, most likely due to a mismatch in
30 # exact dependencies or environment specifics. Needs further
34 RDEPEND+=">=app-eselect/eselect-rails-0.24"
37 ~dev-ruby/activesupport-${PV}
38 ~dev-ruby/actionpack-${PV}
39 >=dev-ruby/thor-0.20.3
41 dev-ruby/method_source
46 ~dev-ruby/actionview-${PV}
51 rm "${S}/../Gemfile" || die "Unable to remove Gemfile"
52 sed -i -e '/load_paths/d' test/abstract_unit.rb || die "Unable to remove load paths"
53 sed -i -e '1igem "minitest", "~>4.0"' test/abstract_unit.rb || die
59 ruby_fakegem_binwrapper rails rails-${PV}
63 elog "To select between slots of rails, use:"
64 elog "\teselect rails"