From c0bf190da61cc26836870398a43a77cf6b0390cd Mon Sep 17 00:00:00 2001 From: Hans de Graaff Date: Sat, 20 Feb 2021 11:44:58 +0100 Subject: dev-ruby/sprockets: fix blocker on old slot Add a revision that can be installed with slot 4 and use a soft blocker. Package-Manager: Portage-3.0.13, Repoman-3.0.2 Signed-off-by: Hans de Graaff --- dev-ruby/sprockets/sprockets-3.7.2-r1.ebuild | 61 ++++++++++++++++++++++++++++ dev-ruby/sprockets/sprockets-4.0.2.ebuild | 2 +- 2 files changed, 62 insertions(+), 1 deletion(-) create mode 100644 dev-ruby/sprockets/sprockets-3.7.2-r1.ebuild (limited to 'dev-ruby/sprockets') diff --git a/dev-ruby/sprockets/sprockets-3.7.2-r1.ebuild b/dev-ruby/sprockets/sprockets-3.7.2-r1.ebuild new file mode 100644 index 000000000000..0b2f62510c15 --- /dev/null +++ b/dev-ruby/sprockets/sprockets-3.7.2-r1.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +USE_RUBY="ruby25 ruby26 ruby27" + +RUBY_FAKEGEM_TASK_DOC="" +RUBY_FAKEGEM_EXTRADOC="README.md" + +RUBY_FAKEGEM_GEMSPEC="sprockets.gemspec" + +RUBY_FAKEGEM_BINWRAP="" + +inherit ruby-fakegem versionator + +DESCRIPTION="Ruby library for compiling and serving web assets" +HOMEPAGE="https://github.com/rails/sprockets" +SRC_URI="https://github.com/rails/sprockets/archive/v${PV}.tar.gz -> ${P}-git.tgz" + +LICENSE="MIT" +SLOT="$(get_version_component_range 1)" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" + +IUSE="" + +ruby_add_rdepend " + dev-ruby/concurrent-ruby:1 + >=dev-ruby/rack-1:* =dev-ruby/sass-3.1 + dev-ruby/uglifier + )" + +all_ruby_prepare() { + # Avoid tests for template types that we currently don't package: + # eco and ejs. + sed -i -e '/eco templates/,/end/ s:^:#:' \ + -e '/ejs templates/,/end/ s:^:#:' test/test_environment.rb || die + sed -i -e '/.ejs/ s:^:#:' test/test_asset.rb || die + rm -f test/test_require.rb test/test_{closure,eco,ejs,yui}_{compressor,processor}.rb || die + sed -i -e "/bundler/d" Rakefile || die +} + +each_ruby_prepare() { + sed -i -e "s:ruby:${RUBY}:" test/test_sprocketize.rb || die +} + +each_ruby_test() { + # Make sure we have completely separate copies. Hardlinks won't work + # for this test suite. + cp -R test test-new || die + rm -rf test || die + mv test-new test || die + + each_fakegem_test +} diff --git a/dev-ruby/sprockets/sprockets-4.0.2.ebuild b/dev-ruby/sprockets/sprockets-4.0.2.ebuild index cbef97b50292..5d9da86eb6a4 100644 --- a/dev-ruby/sprockets/sprockets-4.0.2.ebuild +++ b/dev-ruby/sprockets/sprockets-4.0.2.ebuild @@ -23,7 +23,7 @@ IUSE="" ruby_add_rdepend " dev-ruby/concurrent-ruby:1 >=dev-ruby/rack-1:*