summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2016-03-07 07:22:24 +0100
committerHans de Graaff <graaff@gentoo.org>2016-03-07 20:29:46 +0100
commit868c7b5cd9c5fcfacfd334fda74514d7256c5050 (patch)
tree0ab7bcd941adf65f01f85d57e4a751ece6876483 /dev-ruby/sprockets
parentdev-ruby/sprockets: cleanup (diff)
downloadgentoo-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')
-rw-r--r--dev-ruby/sprockets/Manifest1
-rw-r--r--dev-ruby/sprockets/sprockets-3.5.2.ebuild60
2 files changed, 61 insertions, 0 deletions
diff --git a/dev-ruby/sprockets/Manifest b/dev-ruby/sprockets/Manifest
index af19ad03bb01..000f45215e17 100644
--- a/dev-ruby/sprockets/Manifest
+++ b/dev-ruby/sprockets/Manifest
@@ -2,3 +2,4 @@ DIST sprockets-2.11.3-git.tgz 195342 SHA256 010a3cfcee4a196552b19d07ad1b00221be9
DIST sprockets-2.12.3-git.tgz 195647 SHA256 998ed806114a50b9168ad569c67d037fa866c185b2620924abdf4c542123529b SHA512 fd9544ed946bdf95968f198e74a36b682613d68e29a46708fd46c8b58792bf52526936b4c8d9ec3acea8f7cce789a69bcf4da3269741d43e186001061cbed03a WHIRLPOOL 4305464c17b275a6956fde436e1a65004da29580e0cc5f9962af9911778bf54ff303235fcfea85f28b1c7735e6f021fd63b1e719286efbd72a0be3dd95b14210
DIST sprockets-2.2.3-git.tgz 185139 SHA256 d8d8c59a4f129357f5d9093db02d8e5df0b2df7aaeee23fc6c5864fdbc29997c SHA512 6850423efbb8521e4f4980e30e1464821be148474b511aca05478078b2601cf569a244cddeb9f164ba759d4207dcc2605c89b4b5b45431ebbee26b56f07b5e01 WHIRLPOOL 5b8eb85651975429c994e3e741d31a7989b031d51c4d9fb3d2a70da700a9187e888e100965b4f034f13d38d9066cb48a8c201841d2d639398c1c4f7c0dc1985e
DIST sprockets-3.4.1-git.tgz 298315 SHA256 fb2dcf86378c45c8028fb9b483f2def9ae558613794255f6eb12c97db0f220db SHA512 dd8bae1d922b662ef3215742731024d13b3fbc435124bb25351eeb6d33363383cb630ff60a8f6199205f31ed484e76c4a40d2c8a02b05e35bd9e73eb43a951bb WHIRLPOOL 8ae84a080dc7dab113a6109a3c50e61b3da8b753391e0ac2113c8ac6f89b955c6b4c6d40dee6ff8d6522a0c289c0a49e1777bbf7958f819adbcae6204641d9f7
+DIST sprockets-3.5.2-git.tgz 302784 SHA256 8ef5507db16113c9f839371544a8ed4e3911c99525df95cc55bf61413f432b3b SHA512 8e599cf646baf53650ecafc65923d7e92c0d04cbf7207f64a0aaa4098d068ce4a1c252c5ce879188cff9d9af6f88ba50fa39d7af643b2668f23b1b8535a284c2 WHIRLPOOL 108da86d47be7b889ab74c5f75bd3ff592ff310e43f006d1a4362d5912bb044fa2dd5b29f86bec0ff4222c85093785fbf4a55f94c73b30ac4fe2fbe0862a1c40
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
+}