diff options
author | Hans de Graaff <graaff@gentoo.org> | 2018-06-20 06:48:37 +0200 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2018-06-20 06:48:37 +0200 |
commit | fabf3399353f8cef212d438660a5c17fc19801d0 (patch) | |
tree | 1ad542d83fcae506e4ba64ab16c20a86637825ef /dev-ruby | |
parent | net-p2p/transmission: remove old (diff) | |
download | gentoo-fabf3399353f8cef212d438660a5c17fc19801d0.tar.gz gentoo-fabf3399353f8cef212d438660a5c17fc19801d0.tar.bz2 gentoo-fabf3399353f8cef212d438660a5c17fc19801d0.zip |
dev-ruby/sprockets: add 3.7.2
Package-Manager: Portage-2.3.40, Repoman-2.3.9
Diffstat (limited to 'dev-ruby')
-rw-r--r-- | dev-ruby/sprockets/Manifest | 1 | ||||
-rw-r--r-- | dev-ruby/sprockets/sprockets-3.7.2.ebuild | 60 |
2 files changed, 61 insertions, 0 deletions
diff --git a/dev-ruby/sprockets/Manifest b/dev-ruby/sprockets/Manifest index ecd5a1344025..a48c6a2bce1c 100644 --- a/dev-ruby/sprockets/Manifest +++ b/dev-ruby/sprockets/Manifest @@ -1 +1,2 @@ DIST sprockets-3.7.1-git.tgz 368910 BLAKE2B 1411f0ad02da1fe6c3774a3c7fd689b174e18ef72a2a032eccfca2c9b4bb5298312488cd97511572e7785e7eb1b00b6accce90046b2d59b91edc8b38542aa0e1 SHA512 b766070806d62ef10839c12c0e1ba31b3553d014fc45df27fe7dc678d6980b8da3080733b1bcc3d40b1ed9d41550e45da7a365d10fc5de0b1eb88d769169cc3e +DIST sprockets-3.7.2-git.tgz 369053 BLAKE2B 3c40de921d82b2f5c71e3ecaa114576293946352415da1195e60cdda6363066a6be05474eb7842ab1122e29fa6c19fd2f7a38fb0a7cf9972de0640eeb29d03f0 SHA512 bc7d79ba696a072644852b7a3a73ce086d297662309deb1d00318ad453f50ac6e494e6489632cb282795de2f334700155cfd21cc80be638dc471a3215422591f diff --git a/dev-ruby/sprockets/sprockets-3.7.2.ebuild b/dev-ruby/sprockets/sprockets-3.7.2.ebuild new file mode 100644 index 000000000000..a4b1d68a893f --- /dev/null +++ b/dev-ruby/sprockets/sprockets-3.7.2.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +USE_RUBY="ruby23 ruby24 ruby25" + +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 ~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-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 +} |