summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2012-12-09 09:25:51 +0000
committerHans de Graaff <graaff@gentoo.org>2012-12-09 09:25:51 +0000
commit0422b4d8530cb531ffe46ca01656a65b32318d45 (patch)
tree69c7191b59417176264f98f106590ac81a982963 /dev-ruby
parentAdd dependency on sci-mathematics/sha1-polyml, which fixes warnings for some ... (diff)
downloadgentoo-2-0422b4d8530cb531ffe46ca01656a65b32318d45.tar.gz
gentoo-2-0422b4d8530cb531ffe46ca01656a65b32318d45.tar.bz2
gentoo-2-0422b4d8530cb531ffe46ca01656a65b32318d45.zip
Version bump.
(Portage version: 2.1.11.31/cvs/Linux x86_64, signed Manifest commit with key 0x8883FA56A308A8D7!)
Diffstat (limited to 'dev-ruby')
-rw-r--r--dev-ruby/sprockets/ChangeLog7
-rw-r--r--dev-ruby/sprockets/sprockets-2.2.2.ebuild56
2 files changed, 62 insertions, 1 deletions
diff --git a/dev-ruby/sprockets/ChangeLog b/dev-ruby/sprockets/ChangeLog
index 2251db123b58..ca25f6f4226e 100644
--- a/dev-ruby/sprockets/ChangeLog
+++ b/dev-ruby/sprockets/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for dev-ruby/sprockets
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-ruby/sprockets/ChangeLog,v 1.11 2012/11/11 15:37:52 graaff Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/sprockets/ChangeLog,v 1.12 2012/12/09 09:25:51 graaff Exp $
+
+*sprockets-2.2.2 (09 Dec 2012)
+
+ 09 Dec 2012; Hans de Graaff <graaff@gentoo.org> +sprockets-2.2.2.ebuild:
+ Version bump.
*sprockets-2.2.1 (11 Nov 2012)
diff --git a/dev-ruby/sprockets/sprockets-2.2.2.ebuild b/dev-ruby/sprockets/sprockets-2.2.2.ebuild
new file mode 100644
index 000000000000..130b6205cf5e
--- /dev/null
+++ b/dev-ruby/sprockets/sprockets-2.2.2.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/sprockets/sprockets-2.2.2.ebuild,v 1.1 2012/12/09 09:25:51 graaff Exp $
+
+EAPI=4
+USE_RUBY="ruby18 ruby19 ree18"
+
+RUBY_FAKEGEM_TASK_DOC=""
+
+RUBY_FAKEGEM_GEMSPEC="sprockets.gemspec"
+
+inherit ruby-fakegem versionator
+
+DESCRIPTION="Ruby library for compiling and serving web assets."
+HOMEPAGE="https://github.com/sstephenson/sprockets"
+SRC_URI="https://github.com/sstephenson/sprockets/archive/v${PV}.tar.gz -> ${P}-git.tgz"
+
+LICENSE="MIT"
+SLOT="$(get_version_component_range 1-2)"
+KEYWORDS="~amd64 ~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/hike-1* >=dev-ruby/hike-1.2
+ =dev-ruby/multi_json-1*
+ =dev-ruby/rack-1*
+ =dev-ruby/tilt-1* >=dev-ruby/tilt-1.3.1"
+
+ruby_add_bdepend "test? (
+ dev-ruby/json
+ dev-ruby/rack-test
+ =dev-ruby/coffee-script-2*
+ =dev-ruby/execjs-1*
+ )"
+
+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
+
+ # Avoid failing tests. These no longer fail in upstream HEAD and we
+ # did not run tests before at all so its not a regression.
+ #sed -i -e '/function() {}/ s:^:#:' test/test_environment.rb || die
+ rm test/test_asset.rb test/test_server.rb || die
+
+ # Ignore failing tests with sprockets 2.2.1. These pass with the
+ # latest versions but we need to put in this old version to support
+ # Rails 3.2.9.
+ sed -i -e '/depedencies are cached/,/end/ s:^:#:' test/test_caching.rb || die
+ sed -i -e '/remove old asset/,/^ end/ s:^:#:' test/test_manifest.rb || die
+
+ # Fix missing json include
+ sed -i -e '5irequire "json"' test/sprockets_test.rb || die
+}