diff options
Diffstat (limited to 'dev-ruby/heapy/heapy-0.2.0-r1.ebuild')
-rw-r--r-- | dev-ruby/heapy/heapy-0.2.0-r1.ebuild | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/dev-ruby/heapy/heapy-0.2.0-r1.ebuild b/dev-ruby/heapy/heapy-0.2.0-r1.ebuild new file mode 100644 index 00000000..3cb1b703 --- /dev/null +++ b/dev-ruby/heapy/heapy-0.2.0-r1.ebuild @@ -0,0 +1,39 @@ +# 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_TASK_DOC="" +RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.md" + +RUBY_FAKEGEM_GEMSPEC="heapy.gemspec" + +inherit ruby-fakegem + +DESCRIPTION="Got a heap dump? Great. Use this tool to see what's in it!" +HOMEPAGE="https://github.com/zombocom/heapy" +SRC_URI="https://github.com/zombocom/heapy/archive/v${PV}.tar.gz -> ${P}.tar.gz" +LICENSE="MIT" + +KEYWORDS="~amd64" +SLOT="0" +IUSE="" + +DEPEND+=" test? ( dev-vcs/git )" + +ruby_add_rdepend "dev-ruby/thor" + +all_ruby_prepare() { + sed -i -e '/rake/ s/~>/>=/' heapy.gemspec || die + git init . || die + + # Remove failing spec + rm -f spec/slow_spec.rb || die +} + +each_ruby_test() { + RUBYLIB=lib RSPEC_VERSION=3 ruby-ng_rspec || die +} |