diff options
author | Hans de Graaff <graaff@gentoo.org> | 2017-01-02 07:46:04 +0100 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2017-01-02 07:57:12 +0100 |
commit | ead004df48b13ab5355ef78fc36657faa3b854dc (patch) | |
tree | 5e6eb8e7e41f8652d64f14a773908b066fd513ec /dev-ruby/sprockets | |
parent | dev-ruby/rubytest-cli: add ruby23 (diff) | |
download | gentoo-ead004df48b13ab5355ef78fc36657faa3b854dc.tar.gz gentoo-ead004df48b13ab5355ef78fc36657faa3b854dc.tar.bz2 gentoo-ead004df48b13ab5355ef78fc36657faa3b854dc.zip |
dev-ruby/sprockets: add 3.7.1
Package-Manager: portage-2.3.0
Diffstat (limited to 'dev-ruby/sprockets')
-rw-r--r-- | dev-ruby/sprockets/Manifest | 1 | ||||
-rw-r--r-- | dev-ruby/sprockets/sprockets-3.7.1.ebuild | 61 |
2 files changed, 62 insertions, 0 deletions
diff --git a/dev-ruby/sprockets/Manifest b/dev-ruby/sprockets/Manifest index 05fb0becb8e7..7dfbde90809f 100644 --- a/dev-ruby/sprockets/Manifest +++ b/dev-ruby/sprockets/Manifest @@ -5,3 +5,4 @@ DIST sprockets-3.4.1-git.tgz 298315 SHA256 fb2dcf86378c45c8028fb9b483f2def9ae558 DIST sprockets-3.5.2-git.tgz 302784 SHA256 8ef5507db16113c9f839371544a8ed4e3911c99525df95cc55bf61413f432b3b SHA512 8e599cf646baf53650ecafc65923d7e92c0d04cbf7207f64a0aaa4098d068ce4a1c252c5ce879188cff9d9af6f88ba50fa39d7af643b2668f23b1b8535a284c2 WHIRLPOOL 108da86d47be7b889ab74c5f75bd3ff592ff310e43f006d1a4362d5912bb044fa2dd5b29f86bec0ff4222c85093785fbf4a55f94c73b30ac4fe2fbe0862a1c40 DIST sprockets-3.6.3-git.tgz 367032 SHA256 40b51d0fb647bb4647e180b7aa21c6645344bc0dd59ff2c829340cc07c42c358 SHA512 4e497e87e0a5e93baa142071bf200810b47ad26dd9f431dbcda8e332629d971e94d43da2ebd04331d7be7f6807a4c707bdd0cf33303aa689da8996be26adbcac WHIRLPOOL 3f8d1193ef01233c73337202c0a6b9af1c5d1c870b7eaf0eb2b653dd54f0ae1feef72698a820746b2d349ffefa9ec4afe14995fe9498f10b22f4cd0a01bee4ab DIST sprockets-3.7.0-git.tgz 368648 SHA256 58056528f8b078fc42210b9e021f2ec9e8bd72b594f7422bac441276a4a7cb0d SHA512 ed9e2ee8515a69e56816701182502b09fcad25900a6f77696daa32e943d6ab0ec01cae9df2592373b00f2e28fbc63c7476ffff793702a9d6857f38ee913781f6 WHIRLPOOL 31e776f3af7f83d54ec4a9458aa19064f47343e92e328da669bb0b72a2f3d66863ccdd33cbb5a0d22045e9affb91bb906270d663b6d66e5f53428d3cfd08977a +DIST sprockets-3.7.1-git.tgz 368910 SHA256 14f4012d8ba7a6566c071173d0683c831fff2d2e9e9018eaf3f1673dcb09081b SHA512 b766070806d62ef10839c12c0e1ba31b3553d014fc45df27fe7dc678d6980b8da3080733b1bcc3d40b1ed9d41550e45da7a365d10fc5de0b1eb88d769169cc3e WHIRLPOOL 1905031746a4728c9da845ad39ffc35e514f165d6ff2d49202f71a8ba849813d03cadcd303817d4548fc55e45dea8643c76b04678fc2de73581eb3543a7520e3 diff --git a/dev-ruby/sprockets/sprockets-3.7.1.ebuild b/dev-ruby/sprockets/sprockets-3.7.1.ebuild new file mode 100644 index 000000000000..899f33c6a3ed --- /dev/null +++ b/dev-ruby/sprockets/sprockets-3.7.1.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +USE_RUBY="ruby20 ruby21 ruby22 ruby23" + +RUBY_FAKEGEM_TASK_DOC="" +RUBY_FAKEGEM_EXTRADOC="README.md" + +RUBY_FAKEGEM_GEMSPEC="sprockets.gemspec" + +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 ~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-2.12.3-r1:2" + +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:^:#:' 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 +} |