1 # Copyright 1999-2016 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 USE_RUBY="ruby20 ruby21 ruby22"
8 RUBY_FAKEGEM_TASK_TEST="test:regular"
9 RUBY_FAKEGEM_TASK_DOC=""
10 RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.rdoc"
12 RUBY_FAKEGEM_GEMSPEC="railties.gemspec"
14 RUBY_FAKEGEM_BINWRAP=""
16 inherit ruby-fakegem versionator
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"
23 SLOT="$(get_version_component_range 1-2)"
24 KEYWORDS="~amd64 ~arm ~ppc ~ppc64"
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.21"
37 ~dev-ruby/activesupport-${PV}
38 ~dev-ruby/actionpack-${PV}
39 >=dev-ruby/thor-0.18.1
40 >=dev-ruby/rake-0.8.7"
44 ~dev-ruby/actionview-${PV}
49 rm "${S}/../Gemfile" || die "Unable to remove Gemfile"
50 sed -i -e '/load_paths/d' test/abstract_unit.rb || die "Unable to remove load paths"
51 sed -i -e '1igem "minitest", "~>4.0"' test/abstract_unit.rb || die
54 sed -i -e 's/~> 3.4/>= 3.4/' ${RUBY_FAKEGEM_GEMSPEC} || die
60 ruby_fakegem_binwrapper rails rails-${PV}
64 elog "To select between slots of rails, use:"
65 elog "\teselect rails"