diff options
Diffstat (limited to 'dev-ruby/sprockets')
-rw-r--r-- | dev-ruby/sprockets/Manifest | 4 | ||||
-rw-r--r-- | dev-ruby/sprockets/sprockets-3.7.2.ebuild | 2 | ||||
-rw-r--r-- | dev-ruby/sprockets/sprockets-4.0.2.ebuild | 66 |
3 files changed, 70 insertions, 2 deletions
diff --git a/dev-ruby/sprockets/Manifest b/dev-ruby/sprockets/Manifest index 3b78829fee2d..0f5389c50f3d 100644 --- a/dev-ruby/sprockets/Manifest +++ b/dev-ruby/sprockets/Manifest @@ -1,3 +1,5 @@ DIST sprockets-3.7.2-git.tgz 369053 BLAKE2B 3c40de921d82b2f5c71e3ecaa114576293946352415da1195e60cdda6363066a6be05474eb7842ab1122e29fa6c19fd2f7a38fb0a7cf9972de0640eeb29d03f0 SHA512 bc7d79ba696a072644852b7a3a73ce086d297662309deb1d00318ad453f50ac6e494e6489632cb282795de2f334700155cfd21cc80be638dc471a3215422591f -EBUILD sprockets-3.7.2.ebuild 1675 BLAKE2B 0a9cf0c16763745054539c82779b941615908a2cfcb1c1a3bc22354fe4dd7cd5e4f04f267aaeefdfea62950a055675b10510ddf424bcc9fa945e09e1f169a1cd SHA512 68d0af882a947f6d2d1a65b93fb51ff32c2c3be5fbabe0ce6532672efb9d17feb8a96691656b7087a2355cc08d26d8984c8f3e77c63e965591ac7ca9f9ec9fd5 +DIST sprockets-4.0.2-git.tgz 418502 BLAKE2B 0ae8d0e47708967a4208af852f21baf9d00c4216660b081170d7f68631ee1129fb78341e6012664fc519a0f330fac23203e314c1831d7031af50844e6b91c1f0 SHA512 f733b96c78be6466b63999aa7dc900af653a5b35f6482d84c41edf47f22b093231003f8874eee2ab31e2a2cfb7049a8109a314b51a0ef36ba30d5f6e8bd81f66 +EBUILD sprockets-3.7.2.ebuild 1675 BLAKE2B 36180c428f4ee893002a66975786e5272afaa5a2ae2cda2f9a7e3638c2ff7f1d91de6945ec019e8a19c6e17a13b5fae89e6362b059687891bf0f262f399021a0 SHA512 ae01d81cd524421fe388ff7429f189927259882145a249d6182e322904f47020ed7b825e5a1f7d41dfc1d5d9a2d9b4c62d81a574c041e82c262855fd855d21e1 +EBUILD sprockets-4.0.2.ebuild 2078 BLAKE2B 1ca11a8cd90686f405269dcb8b16adfa8d6b08d0b57b960cea82753fd59ac3934e58a0f8d10f242d2f79216653ac4ef81a0c64cf92c27863c965b66064cf154e SHA512 c279b6036120acaf1f9fdf0d53766ddb6d2aad33704d56202b5ff02a805c86fb4da24d1ca9abc8ae98428cc8b13dae6de64c16f65acd180004f3a3f0aa13539b MISC metadata.xml 341 BLAKE2B b649927de729737d95d006cd0f45484827a9628ca6cdf92589986b371059bc424f9888a5c727396b7aabc0326e94cbbbf0cc49d60c8e4c8ff09f44dafdae89df SHA512 4339a35e1af44e24e5b447c3a331e79609c0ece1b9a1a54a1e23a3c40eca5d4f0b3d788e965f102115565c45a9aaf3c59d8b1997c61bf584d1c3545f1e9fd55a diff --git a/dev-ruby/sprockets/sprockets-3.7.2.ebuild b/dev-ruby/sprockets/sprockets-3.7.2.ebuild index af093d625a6e..95a5974a995a 100644 --- a/dev-ruby/sprockets/sprockets-3.7.2.ebuild +++ b/dev-ruby/sprockets/sprockets-3.7.2.ebuild @@ -2,7 +2,7 @@ # Distributed under the terms of the GNU General Public License v2 EAPI=6 -USE_RUBY="ruby23 ruby24 ruby25 ruby26" +USE_RUBY="ruby24 ruby25 ruby26 ruby27" RUBY_FAKEGEM_TASK_DOC="" RUBY_FAKEGEM_EXTRADOC="README.md" diff --git a/dev-ruby/sprockets/sprockets-4.0.2.ebuild b/dev-ruby/sprockets/sprockets-4.0.2.ebuild new file mode 100644 index 000000000000..353b8f2e76e1 --- /dev/null +++ b/dev-ruby/sprockets/sprockets-4.0.2.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +USE_RUBY="ruby25 ruby26 ruby27" + +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 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" + +IUSE="" + +ruby_add_rdepend " + dev-ruby/concurrent-ruby:1 + >=dev-ruby/rack-1:* <dev-ruby/rack-3:* + !!<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/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 +} |