diff options
author | Hans de Graaff <graaff@gentoo.org> | 2016-03-07 07:22:24 +0100 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2016-03-07 20:29:46 +0100 |
commit | 868c7b5cd9c5fcfacfd334fda74514d7256c5050 (patch) | |
tree | 0ab7bcd941adf65f01f85d57e4a751ece6876483 /dev-ruby/sprockets/sprockets-3.5.2.ebuild | |
parent | dev-ruby/sprockets: cleanup (diff) | |
download | gentoo-868c7b5cd9c5fcfacfd334fda74514d7256c5050.tar.gz gentoo-868c7b5cd9c5fcfacfd334fda74514d7256c5050.tar.bz2 gentoo-868c7b5cd9c5fcfacfd334fda74514d7256c5050.zip |
dev-ruby/sprockets: add 3.5.2
Drop arm, ppc, ppc64, x86, prefix keywords due to new
dependency on dev-ruby/concurrent-ruby, bug 576666
Package-Manager: portage-2.2.26
Diffstat (limited to 'dev-ruby/sprockets/sprockets-3.5.2.ebuild')
-rw-r--r-- | dev-ruby/sprockets/sprockets-3.5.2.ebuild | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/dev-ruby/sprockets/sprockets-3.5.2.ebuild b/dev-ruby/sprockets/sprockets-3.5.2.ebuild new file mode 100644 index 000000000000..2bd1e1a5ff4b --- /dev/null +++ b/dev-ruby/sprockets/sprockets-3.5.2.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +USE_RUBY="ruby20 ruby21 ruby22" + +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" + +IUSE="" + +ruby_add_rdepend " + dev-ruby/concurrent-ruby:1 + =dev-ruby/rack-1*:* + !!<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 +} + +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 +} |