2015-03-12 10:40:53 +03:00
|
|
|
# Copyright 1999-2015 Gentoo Foundation
|
2014-07-03 22:53:31 +04:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
2015-03-12 10:40:53 +03:00
|
|
|
# $Header: /var/cvsroot/gentoo-x86/dev-ruby/gettext_i18n_rails/gettext_i18n_rails-1.0.5.ebuild,v 1.3 2015/03/11 16:54:37 ago Exp $
|
2014-07-03 22:53:31 +04:00
|
|
|
|
|
|
|
EAPI=5
|
|
|
|
|
|
|
|
# jruby support requires sqlite3 support for jruby.
|
|
|
|
USE_RUBY="ruby19 ruby20"
|
|
|
|
|
|
|
|
RUBY_FAKEGEM_TASK_DOC=""
|
|
|
|
RUBY_FAKEGEM_EXTRADOC="Readme.md"
|
|
|
|
|
|
|
|
RUBY_FAKEGEM_RECIPE_TEST="rspec"
|
|
|
|
|
|
|
|
RUBY_FAKEGEM_EXTRAINSTALL="init.rb"
|
|
|
|
|
|
|
|
inherit ruby-fakegem
|
|
|
|
|
2014-08-06 16:54:19 +04:00
|
|
|
DESCRIPTION="FastGettext / Rails integration"
|
2014-07-03 22:53:31 +04:00
|
|
|
HOMEPAGE="https://github.com/grosser/gettext_i18n_rails"
|
|
|
|
SRC_URI="https://github.com/grosser/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
|
|
|
|
|
|
|
LICENSE="public-domain"
|
|
|
|
SLOT="0"
|
2015-03-12 10:40:53 +03:00
|
|
|
KEYWORDS="~amd64 ~x86"
|
2014-07-03 22:53:31 +04:00
|
|
|
IUSE=""
|
|
|
|
|
|
|
|
ruby_add_bdepend "test? ( dev-ruby/activerecord:3.2[sqlite3] dev-ruby/temple )"
|
|
|
|
ruby_add_rdepend ">=dev-ruby/fast_gettext-0.4.8"
|
|
|
|
|
|
|
|
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/haml_parser_spec.rb || die
|
|
|
|
|
|
|
|
# Test against Rails 3.2 (newer versions don't work and we don't use
|
|
|
|
# appraisals for now.
|
|
|
|
sed -e '2igem "rails", "~>3.2.0"' -i spec/spec_helper.rb || die
|
|
|
|
}
|