diff options
author | Hans de Graaff <graaff@gentoo.org> | 2012-01-28 11:01:28 +0000 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2012-01-28 11:01:28 +0000 |
commit | 72edc9aa87913817d0b1b1ba057eea75e25b5b33 (patch) | |
tree | cacd20e2b47eb45d139a324ed09651a99b09234e /dev-ruby | |
parent | Stable for amd64, wrt bug #401085 (diff) | |
download | gentoo-2-72edc9aa87913817d0b1b1ba057eea75e25b5b33.tar.gz gentoo-2-72edc9aa87913817d0b1b1ba057eea75e25b5b33.tar.bz2 gentoo-2-72edc9aa87913817d0b1b1ba057eea75e25b5b33.zip |
Version bump for Rails 3.2. Add partial test coverage now that some dependencies are available.
(Portage version: 2.1.10.44/cvs/Linux x86_64)
Diffstat (limited to 'dev-ruby')
-rw-r--r-- | dev-ruby/sprockets/ChangeLog | 10 | ||||
-rw-r--r-- | dev-ruby/sprockets/sprockets-2.1.2.ebuild | 47 |
2 files changed, 55 insertions, 2 deletions
diff --git a/dev-ruby/sprockets/ChangeLog b/dev-ruby/sprockets/ChangeLog index 14a33df7bdbc..ee8b8d5bebf7 100644 --- a/dev-ruby/sprockets/ChangeLog +++ b/dev-ruby/sprockets/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for dev-ruby/sprockets -# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-ruby/sprockets/ChangeLog,v 1.3 2011/12/31 19:48:25 grobian Exp $ +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/sprockets/ChangeLog,v 1.4 2012/01/28 11:01:28 graaff Exp $ + +*sprockets-2.1.2 (28 Jan 2012) + + 28 Jan 2012; Hans de Graaff <graaff@gentoo.org> +sprockets-2.1.2.ebuild: + Version bump for Rails 3.2. Add partial test coverage now that some + dependencies are available. 31 Dec 2011; Fabian Groffen <grobian@gentoo.org> sprockets-2.0.3-r1.ebuild: Add Prefix keywords, bug #396547 diff --git a/dev-ruby/sprockets/sprockets-2.1.2.ebuild b/dev-ruby/sprockets/sprockets-2.1.2.ebuild new file mode 100644 index 000000000000..a76b8f280846 --- /dev/null +++ b/dev-ruby/sprockets/sprockets-2.1.2.ebuild @@ -0,0 +1,47 @@ +# 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.1.2.ebuild,v 1.1 2012/01/28 11:01:28 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/tarball/v${PV} -> ${P}.tgz" +RUBY_S="sstephenson-sprockets-*" + +LICENSE="MIT" +SLOT="$(get_version_component_range 1-2)" +KEYWORDS="~amd64 ~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/rack-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 +} |