diff options
| author | Sam James <sam@gentoo.org> | 2023-03-25 06:51:54 +0000 |
|---|---|---|
| committer | Sam James <sam@gentoo.org> | 2023-03-25 07:11:19 +0000 |
| commit | 4f43c5a9bc8382632708cee6ba838f21e9ca625d (patch) | |
| tree | 223ede410af39e3f5ef1d7e53d5d215da395112f /dev-ruby/contracts/contracts-0.17-r1.ebuild | |
| parent | d65d8f843fa954ed5db91901bc1c091a9ee1f137 (diff) | |
| download | gentoo-4f43c5a9bc8382632708cee6ba838f21e9ca625d.tar.gz gentoo-4f43c5a9bc8382632708cee6ba838f21e9ca625d.tar.bz2 gentoo-4f43c5a9bc8382632708cee6ba838f21e9ca625d.zip | |
dev-ruby/contracts: EAPI 8, enable ruby32
This needs a minor patch for ruby32 but it's merged upstream &
the patch only actually touches tests/examples.
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-ruby/contracts/contracts-0.17-r1.ebuild')
| -rw-r--r-- | dev-ruby/contracts/contracts-0.17-r1.ebuild | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/dev-ruby/contracts/contracts-0.17-r1.ebuild b/dev-ruby/contracts/contracts-0.17-r1.ebuild new file mode 100644 index 000000000000..6232037c76e4 --- /dev/null +++ b/dev-ruby/contracts/contracts-0.17-r1.ebuild @@ -0,0 +1,31 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +USE_RUBY="ruby30 ruby31 ruby32" + +RUBY_FAKEGEM_RECIPE_TEST="rspec3" + +RUBY_FAKEGEM_EXTRADOC="CHANGELOG.markdown README.md TODO.markdown TUTORIAL.md" + +inherit ruby-fakegem + +DESCRIPTION="provides contracts for Ruby" +HOMEPAGE="https://github.com/egonSchiele/contracts.ruby" + +LICENSE="MIT" +SLOT="$(ver_cut 1-2)" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" + +PATCHES=( + "${FILESDIR}"/${P}-ruby32.patch +) + +each_ruby_test() { + # COLUMNS needed for: + # ./spec/contracts_spec.rb:654 # Contracts: Contracts to_s formatting in expected should wrap and pretty print for long return contracts + # ./spec/contracts_spec.rb:643 # Contracts: Contracts to_s formatting in expected should wrap and pretty print for long param contracts + local -x COLUMNS=80 + each_fakegem_test +} |
