You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/dev-ruby/gettext_i18n_rails/gettext_i18n_rails-0.4.6.eb...

41 lines
1.1 KiB

# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-ruby/gettext_i18n_rails/gettext_i18n_rails-0.4.6.ebuild,v 1.3 2012/07/01 07:26:09 graaff Exp $
EAPI="4"
# jruby support requires sqlite3 support for jruby.
USE_RUBY="ruby18 ruby19 ree18"
RUBY_FAKEGEM_TASK_DOC=""
RUBY_FAKEGEM_EXTRADOC="Readme.md"
RUBY_FAKEGEM_TASK_TEST="spec"
RUBY_FAKEGEM_EXTRAINSTALL="init.rb VERSION"
inherit ruby-fakegem
DESCRIPTION="FastGettext / Rails integration."
HOMEPAGE="https://github.com/grosser/gettext_i18n_rails"
LICENSE="public-domain"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
ruby_add_bdepend "test? ( dev-ruby/rspec:2 dev-ruby/activerecord[sqlite3] )"
ruby_add_rdepend "dev-ruby/fast_gettext"
all_ruby_prepare() {
rm Gemfile Gemfile.lock || die
# Remove specs for slim and hamlet, template engines we don't package.
rm spec/gettext_i18n_rails/slim_parser_spec.rb spec/gettext_i18n_rails/hamlet_parser_spec.rb || die
}
each_ruby_test() {
# Call specs directly because the Rakefile will use the wrong interpreter
${RUBY} -S rspec spec || die
}