diff options
author | Hans de Graaff <graaff@gentoo.org> | 2022-12-24 15:05:22 +0100 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2022-12-24 16:00:35 +0100 |
commit | 35e82b002a1edc82f55bb9e9439339197fa65038 (patch) | |
tree | ce87f7cd3e0bc0f1b9fa2feedf46f9f4e3310cb6 /dev-ruby/sprockets | |
parent | dev-ruby/simplecov: add 0.22.0 (diff) | |
download | gentoo-35e82b002a1edc82f55bb9e9439339197fa65038.tar.gz gentoo-35e82b002a1edc82f55bb9e9439339197fa65038.tar.bz2 gentoo-35e82b002a1edc82f55bb9e9439339197fa65038.zip |
dev-ruby/sprockets: add 4.2.0
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby/sprockets')
-rw-r--r-- | dev-ruby/sprockets/Manifest | 1 | ||||
-rw-r--r-- | dev-ruby/sprockets/sprockets-4.2.0.ebuild | 67 |
2 files changed, 68 insertions, 0 deletions
diff --git a/dev-ruby/sprockets/Manifest b/dev-ruby/sprockets/Manifest index ba1cef4420b5..8211fb440d7e 100644 --- a/dev-ruby/sprockets/Manifest +++ b/dev-ruby/sprockets/Manifest @@ -2,3 +2,4 @@ DIST sprockets-3.7.2-git.tgz 369053 BLAKE2B 3c40de921d82b2f5c71e3ecaa11457629394 DIST sprockets-4.0.2-git.tgz 418502 BLAKE2B 0ae8d0e47708967a4208af852f21baf9d00c4216660b081170d7f68631ee1129fb78341e6012664fc519a0f330fac23203e314c1831d7031af50844e6b91c1f0 SHA512 f733b96c78be6466b63999aa7dc900af653a5b35f6482d84c41edf47f22b093231003f8874eee2ab31e2a2cfb7049a8109a314b51a0ef36ba30d5f6e8bd81f66 DIST sprockets-4.1.0-git.tgz 421796 BLAKE2B 8544f8299a5abe8ef89a47d7849fd54f5a04eb623cacc316c2c4656b291c55879f1519d2f3628921af1eee64e67451a15d50d68d1dd93e84a95a833e76994667 SHA512 af964e614f414886cd737888119449b6d2829a41965ba7ab82806e3887ec6eadacc947a19e34568c5f418da7cf47175bd0cb0f4f402bd6e2db41f684ed0cc8e4 DIST sprockets-4.1.1-git.tgz 421833 BLAKE2B 9e3280c9746245c9f40137e020f1f96d6337e3354efe285f68e94f5dd2aaf158f7e1ec174c610f244386fc554b52d07636492979e2adfee19433cbb1c8cdb330 SHA512 128c96861020d6c30699da584ff8d7bb06eabfc59a520471b2fcdaa06200c6d975a7b267686bb26833ccce0ff581e9be7fa261ff71cc532fb4cb1a84036563a1 +DIST sprockets-4.2.0-git.tgz 422096 BLAKE2B 466e328895e318b9e0eecf46e91e0c6b3c04cf5dcc2b6004de2b81b6d2ab4745b9bb8b2a14bc6b9927f169e0b936c19005aa01aa01e805007d37f297750c253e SHA512 8b22cafcb439dee7f4397fae64108854047ea21d7b8faf80d60b2907d8318f28d168014645b48f35f6a765a7ec925697c3755e4ed8d7724f453cbfae1f10880b diff --git a/dev-ruby/sprockets/sprockets-4.2.0.ebuild b/dev-ruby/sprockets/sprockets-4.2.0.ebuild new file mode 100644 index 000000000000..521808aed007 --- /dev/null +++ b/dev-ruby/sprockets/sprockets-4.2.0.ebuild @@ -0,0 +1,67 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +USE_RUBY="ruby27 ruby30 ruby31" + +RUBY_FAKEGEM_EXTRADOC="README.md" + +RUBY_FAKEGEM_GEMSPEC="sprockets.gemspec" + +inherit ruby-fakegem + +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="$(ver_cut 1)" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~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-2.2.4:2.2 + !<dev-ruby/sprockets-3.7.2-r1:3" + +ruby_add_bdepend "test? ( + dev-ruby/json + dev-ruby/rack-test + =dev-ruby/coffee-script-2* + =dev-ruby/execjs-2* + =dev-ruby/sass-3* >=dev-ruby/sass-3.1 + dev-ruby/sassc + 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:^:#:' -e '/\(es6_asset.js\|traceur.es6\)/ s:^:#:' test/test_asset.rb || die + sed -i -e '/compile babel source map/askip' test/test_source_maps.rb || die + sed -e '/change jst template namespace/askip' \ + -e '/find_asset. does not raise an exception/askip' \ + -e '/es6 asset/askip' \ + -i test/test_environment.rb || die + rm -f test/test_require.rb test/test_{babel,closure,eco,ejs,jsminc,yui}_{compressor,processor}.rb || die + # Fails only within Gentoo test environment, not clear why + sed -i -e '/extension exporters/a skip' test/test_exporting.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 +} |