diff options
author | Hans de Graaff <graaff@gentoo.org> | 2022-07-15 09:42:22 +0200 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2022-07-15 10:09:19 +0200 |
commit | 4c3b781cacbac658c049f3aa2fe34c0982ad31a1 (patch) | |
tree | e6f7fa297e88eaa04f617f9fb13c285551dc8189 /dev-ruby/seed-fu | |
parent | dev-ruby/mash: enable ruby30, ruby31 (diff) | |
download | gentoo-4c3b781cacbac658c049f3aa2fe34c0982ad31a1.tar.gz gentoo-4c3b781cacbac658c049f3aa2fe34c0982ad31a1.tar.bz2 gentoo-4c3b781cacbac658c049f3aa2fe34c0982ad31a1.zip |
dev-ruby/seed-fu: EAPI 6 -> 8, add ruby30
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby/seed-fu')
-rw-r--r-- | dev-ruby/seed-fu/seed-fu-2.3.9-r1.ebuild | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/dev-ruby/seed-fu/seed-fu-2.3.9-r1.ebuild b/dev-ruby/seed-fu/seed-fu-2.3.9-r1.ebuild new file mode 100644 index 000000000000..b12e4c868d1b --- /dev/null +++ b/dev-ruby/seed-fu/seed-fu-2.3.9-r1.ebuild @@ -0,0 +1,34 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +USE_RUBY="ruby26 ruby27 ruby30" + +RUBY_FAKEGEM_GEMSPEC="seed-fu.gemspec" +RUBY_FAKEGEM_RECIPE_TEST="rspec3" +RUBY_FAKEGEM_RECIPE_DOC="yard" +RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.md" +RUBY_FAKEGEM_DOCDIR="doc" + +inherit ruby-fakegem + +DESCRIPTION="Advanced seed data handling for Rails" +HOMEPAGE="https://github.com/mbleigh/seed-fu" +SRC_URI="https://github.com/mbleigh/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" +IUSE="test" + +ruby_add_rdepend " + >=dev-ruby/activerecord-3.1:* + >=dev-ruby/activesupport-3.1:*" +ruby_add_bdepend "test? ( dev-ruby/sqlite3 )" + +all_ruby_prepare() { + sed -i -e '/bundler/d' spec/spec_helper.rb || die "sed failed" + + # Avoid failing test that appears not be innocent + sed -i -e '/raise an ActiveRecord::RecordNotSaved/,/end/ s:^:#:' spec/seeder_spec.rb || die +} |