diff options
author | Hans de Graaff <graaff@gentoo.org> | 2020-04-25 11:26:22 +0200 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2020-04-25 14:15:59 +0200 |
commit | 7eb2a01ec9819803e00e2a0286aa932c18e30cdc (patch) | |
tree | 5507174a0e8417a61565845a403da97571cd9a44 /dev-ruby/roadie-rails/roadie-rails-2.1.1.ebuild | |
parent | dev-ruby/html2haml: drop obsolete haml slot (diff) | |
download | gentoo-7eb2a01ec9819803e00e2a0286aa932c18e30cdc.tar.gz gentoo-7eb2a01ec9819803e00e2a0286aa932c18e30cdc.tar.bz2 gentoo-7eb2a01ec9819803e00e2a0286aa932c18e30cdc.zip |
dev-ruby/roadie-rails: add 2.1.1
Package-Manager: Portage-2.3.89, Repoman-2.3.20
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby/roadie-rails/roadie-rails-2.1.1.ebuild')
-rw-r--r-- | dev-ruby/roadie-rails/roadie-rails-2.1.1.ebuild | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/dev-ruby/roadie-rails/roadie-rails-2.1.1.ebuild b/dev-ruby/roadie-rails/roadie-rails-2.1.1.ebuild new file mode 100644 index 000000000000..7d87cf6e720e --- /dev/null +++ b/dev-ruby/roadie-rails/roadie-rails-2.1.1.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +USE_RUBY="ruby25 ruby26" +RUBY_FAKEGEM_EXTRADOC="README.md" +RUBY_FAKEGEM_RECIPE_TEST="rspec3" +RUBY_FAKEGEM_RECIPE_DOC="yard" + +RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec" + +inherit ruby-fakegem + +DESCRIPTION="Hooks Roadie into your Rails application to help with email generation" +HOMEPAGE="https://github.com/Mange/roadie-rails" +SRC_URI="https://github.com/Mange/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="$(ver_cut 1)" +KEYWORDS="~amd64" +IUSE="" + +#RESTRICT="test" + +ruby_add_rdepend ">=dev-ruby/roadie-3.1 + || ( dev-ruby/railties:6.0 dev-ruby/railties:5.2 )" +ruby_add_bdepend " + test? ( + dev-ruby/bundler + dev-ruby/rspec-rails + dev-ruby/rspec-collection_matchers )" + +all_ruby_prepare() { + sed -i -e '/codecov/ s:^:#:' Gemfile || die + sed -i -e 's/git ls-files/find . -print/' ${RUBY_FAKEGEM_GEMSPEC} || die + + # Avoid already removed rails version + sed -i -e '/rails_51/ s:^:#:' spec/integration_spec.rb || die +} + +each_ruby_test() { + ${RUBY} -S bundle exec rspec-3 spec || die +} |