diff options
author | Hans de Graaff <graaff@gentoo.org> | 2021-03-11 11:33:01 +0100 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2021-03-11 11:54:51 +0100 |
commit | 56727587de325b4357b445256a7e96cdf2fcfd01 (patch) | |
tree | 331434e52cc13082ad9d9d55f93252e4bdf92c99 /dev-ruby/globalid/globalid-0.4.2-r2.ebuild | |
parent | profiles/package.mask: mask dev-ruby/astrolabe for removal (diff) | |
download | gentoo-56727587de325b4357b445256a7e96cdf2fcfd01.tar.gz gentoo-56727587de325b4357b445256a7e96cdf2fcfd01.tar.bz2 gentoo-56727587de325b4357b445256a7e96cdf2fcfd01.zip |
dev-ruby/globalid: fix tests
Forward port upstream fix for activesupport time extensions.
Closes: https://bugs.gentoo.org/775203
Package-Manager: Portage-3.0.13, Repoman-3.0.2
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby/globalid/globalid-0.4.2-r2.ebuild')
-rw-r--r-- | dev-ruby/globalid/globalid-0.4.2-r2.ebuild | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/dev-ruby/globalid/globalid-0.4.2-r2.ebuild b/dev-ruby/globalid/globalid-0.4.2-r2.ebuild new file mode 100644 index 000000000000..8a4c361b25e6 --- /dev/null +++ b/dev-ruby/globalid/globalid-0.4.2-r2.ebuild @@ -0,0 +1,31 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +USE_RUBY="ruby25 ruby26 ruby27" + +RUBY_FAKEGEM_EXTRADOC="README.md" + +RUBY_FAKEGEM_GEMSPEC="globalid.gemspec" + +inherit ruby-fakegem + +DESCRIPTION="Reference models by URI" +HOMEPAGE="https://github.com/rails/globalid" +SRC_URI="https://github.com/rails/globalid/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux" +IUSE="" + +PATCHES=( "${FILESDIR}/${P}-integer-time.patch" ) + +ruby_add_bdepend "test? ( dev-ruby/bundler >=dev-ruby/activemodel-4.2.0 >=dev-ruby/railties-4.2.0 )" +ruby_add_rdepend ">=dev-ruby/activesupport-4.2.0:*" + +all_ruby_prepare() { + rm -f Gemfile.lock || die + + sed -i -e '2irequire "forwardable"' test/helper.rb || die +} |