summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2015-10-14 07:13:10 +0200
committerHans de Graaff <graaff@gentoo.org>2015-10-14 07:13:10 +0200
commit7ae4f1dbc8519aa2100365b94495d1afad4a2cc4 (patch)
treebc2ad681d0dc7f18e2e871bb53c3f29d5c2f6e40 /dev-ruby/sprockets
parentdev-ruby/sprockets: cleanup (diff)
downloadgentoo-7ae4f1dbc8519aa2100365b94495d1afad4a2cc4.tar.gz
gentoo-7ae4f1dbc8519aa2100365b94495d1afad4a2cc4.tar.bz2
gentoo-7ae4f1dbc8519aa2100365b94495d1afad4a2cc4.zip
dev-ruby/sprockets: add 3.4.0
Package-Manager: portage-2.2.20.1
Diffstat (limited to 'dev-ruby/sprockets')
-rw-r--r--dev-ruby/sprockets/Manifest1
-rw-r--r--dev-ruby/sprockets/sprockets-3.4.0.ebuild59
2 files changed, 60 insertions, 0 deletions
diff --git a/dev-ruby/sprockets/Manifest b/dev-ruby/sprockets/Manifest
index a5c270918a4d..b946991442fa 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.3.5-git.tgz 297306 SHA256 f8cba6b61de022e3ab5d4fc14bcaac487da405251e651234a9c24187bf38cec9 SHA512 d7f850a333cf1930e68d0c630df8afec688dd1f219a8c8d03c1b7f093bc0103044b27272623e70225b0f5334c450e604067b41fbbea6a9b4ddf1922ee280565f WHIRLPOOL 8aa934a435023f4c7ecbcf3d93f2ad7af6bcdb1cbf7f20d128f69dd28bec61e5135968154881c071556d8b9af950f7e08a8ce5ca3e91d9251889a55d015cb658
+DIST sprockets-3.4.0-git.tgz 297425 SHA256 bb5f3b64a3413596b703bf4cf36644a96db908a1301f89e0e09c2b3fa85ae238 SHA512 a4d1860d91109e2e54323b9bc3432e07f0d48580cfb1d543c2072cb1a144317a0597e1833a731a7555d76658c7110b04f85b5706f91e9ffdf88c9a1df14deb05 WHIRLPOOL efa286c1d73c52798bd4313ba6d4e80d132a2f2ad6af848ea8f80a54c279fcc3f29f6a87646793098033c2f3678562bf63b9fa552d9139872df38ed458ba2b6d
diff --git a/dev-ruby/sprockets/sprockets-3.4.0.ebuild b/dev-ruby/sprockets/sprockets-3.4.0.ebuild
new file mode 100644
index 000000000000..703a4ea7a05d
--- /dev/null
+++ b/dev-ruby/sprockets/sprockets-3.4.0.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+USE_RUBY="ruby19 ruby20 ruby21"
+
+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 ~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/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
+}