diff options
Diffstat (limited to 'dev-ruby')
-rw-r--r-- | dev-ruby/backports/Manifest | 1 | ||||
-rw-r--r-- | dev-ruby/backports/backports-3.21.0.ebuild | 28 |
2 files changed, 29 insertions, 0 deletions
diff --git a/dev-ruby/backports/Manifest b/dev-ruby/backports/Manifest index bd7e3e75da29..2c090ac85fb3 100644 --- a/dev-ruby/backports/Manifest +++ b/dev-ruby/backports/Manifest @@ -1,2 +1,3 @@ DIST backports-3.15.0.gem 152064 BLAKE2B a2c2a1f35ab6f682be23a5189bafec563a2d028ed5f0e0a4880ad85e09ac7af1085a601323ec3459c5be87a5271c6c3e47b6e80005c50e3084d4ac1dc9f2fd35 SHA512 4eb1f928c37596971fa274d838ab991bce462a7f571cb68501fc81e579693528e93536c25e4b64d93f4f0edfd313c8aacd8af014bb5c586cc182867e78f614d5 DIST backports-3.20.2.tar.gz 178633 BLAKE2B 2e2f2f31099763bb218f3ada9f9d040d4b41fc842bbc8b91d703e91b89bab9d6e7bbf3aae1ecfe34abe6099d6cb34929ae72ba66d4ee473841563257fa85cf3c SHA512 a91a2c9186315fca8e0b33554ef26986abe8565e08a79b9f150f8115f998b2a7a440bbc64b92f89c4e95e1c5e852bfeea6ab337804cf017517e77229f10820e5 +DIST backports-3.21.0.tar.gz 178706 BLAKE2B b895655fbbd15e99021f3d9d4f5efe84957c43cffc4e6442a286494624af3d9afa50933cb9f46d86a752c2aa1f52e867d4063e5f8357c969c7ade75b38566f52 SHA512 9d3a5315d412f16c28172121f7b64b424d3728e76c2b9b4466937572bc922f595f5b56caa265e9b03ed44ca64643c36086d60ddc1ff8799e11d953dc75aaee65 diff --git a/dev-ruby/backports/backports-3.21.0.ebuild b/dev-ruby/backports/backports-3.21.0.ebuild new file mode 100644 index 000000000000..20962fcf5671 --- /dev/null +++ b/dev-ruby/backports/backports-3.21.0.ebuild @@ -0,0 +1,28 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +USE_RUBY="ruby26 ruby27 ruby30" +RUBY_FAKEGEM_TASK_TEST="test" + +RUBY_FAKEGEM_GEMSPEC="backports.gemspec" + +inherit ruby-fakegem + +DESCRIPTION="Backports of Ruby features for older Ruby" +HOMEPAGE="https://github.com/marcandre/backports" +SRC_URI="https://github.com/marcandre/backports/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~s390 ~sparc ~x86" +IUSE="" + +all_ruby_prepare() { + # Avoid activesupport test that no longer works in Rails 5. This also avoids + # a dependency on activesupport + sed -i -e '/test_rails/,/^ end/ s:^:#:' test/_backport_guards_test.rb || die + + sed -i -e '/rubocop/I s:^:#:' Rakefile || die +} |