/[gentoo-x86]/dev-ruby/fast_gettext/fast_gettext-0.6.10.ebuild
Gentoo

Contents of /dev-ruby/fast_gettext/fast_gettext-0.6.10.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Fri Oct 5 10:03:43 2012 UTC (22 months, 3 weeks ago) by graaff
Branch: MAIN
Version bump.

(Portage version: 2.1.11.9/cvs/Linux x86_64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-ruby/fast_gettext/fast_gettext-0.6.9.ebuild,v 1.1 2012/08/06 17:29:08 graaff Exp $
4
5 EAPI="4"
6
7 # jruby support requires sqlite3 support for jruby.
8 USE_RUBY="ruby18 ruby19 ree18"
9
10 RUBY_FAKEGEM_TASK_DOC=""
11 RUBY_FAKEGEM_EXTRADOC="CHANGELOG Readme.md"
12
13 RUBY_FAKEGEM_RECIPE_TEST="rspec"
14
15 inherit ruby-fakegem
16
17 DESCRIPTION="GetText but 3.5 x faster, 560 x less memory, simple, clean namespace (7 vs 34) and threadsave!"
18 HOMEPAGE="https://github.com/grosser/fast_gettext"
19
20 LICENSE="public-domain"
21 SLOT="0"
22 KEYWORDS="~amd64 ~x86"
23 IUSE=""
24
25 ruby_add_bdepend "test? ( dev-ruby/activerecord dev-ruby/bundler )"
26
27 all_ruby_prepare() {
28 rm Gemfile.lock || die
29
30 # Remove jeweler from Gemfile since it is not needed for tests.
31 sed -i '/jeweler/d' Gemfile || die
32
33 # Avoid unneeded dependency on git.
34 sed -i -e '/git ls-files/ s:^:#:' fast_gettext.gemspec || die
35
36 # Don't run a test that requires safe mode which we can't provide
37 # due to insecure directory settings for the portage dir. This spec
38 # also calls out to ruby which won't work with different ruby
39 # implementations.
40 sed -i -e '/can work in SAFE mode/,/end/ s:^:#:' spec/fast_gettext/translation_repository/mo_spec.rb || die
41 }
42
43 each_ruby_prepare() {
44 # Make sure the right ruby interpreter is used
45 sed -i -e "s:bundle exec ruby:bundle exec ${RUBY}:" spec/fast_gettext/vendor/*spec.rb || die
46 }

  ViewVC Help
Powered by ViewVC 1.1.20