1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 USE_RUBY="ruby24 ruby25 ruby26 ruby27"
7 RUBY_FAKEGEM_TASK_TEST="test"
9 RUBY_FAKEGEM_GEMSPEC="backports.gemspec"
13 DESCRIPTION="Backports of Ruby features for older Ruby"
14 HOMEPAGE="https://github.com/marcandre/backports"
15 SRC_URI="https://github.com/marcandre/backports/archive/v${PV}.tar.gz -> $P{P}.tar.gz"
19 KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~s390 ~sparc ~x86"
23 # Avoid activesupport test that no longer works in Rails 5. This also avoids
24 # a dependency on activesupport
25 sed -i -e '/test_rails/,/^ end/ s:^:#:' test/_backport_guards_test.rb || die
27 sed -i -e '/rubocop/I s:^:#:' Rakefile || die