commit:     e8813ba31b801b8c5c790790667654c4bf751312
Author:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
AuthorDate: Sun Sep 10 09:49:24 2023 +0000
Commit:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
CommitDate: Sun Sep 10 09:53:31 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e8813ba3

dev-ruby/pairing_heap: add missing test dependency

Closes: https://bugs.gentoo.org/912576
Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org>

 dev-ruby/pairing_heap/pairing_heap-3.0.1-r1.ebuild | 33 ++++++++++++++++++++++
 1 file changed, 33 insertions(+)

diff --git a/dev-ruby/pairing_heap/pairing_heap-3.0.1-r1.ebuild 
b/dev-ruby/pairing_heap/pairing_heap-3.0.1-r1.ebuild
new file mode 100644
index 000000000000..146c90eeb3a9
--- /dev/null
+++ b/dev-ruby/pairing_heap/pairing_heap-3.0.1-r1.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+USE_RUBY="ruby31 ruby32"
+
+RUBY_FAKEGEM_BINWRAP=""
+RUBY_FAKEGEM_EXTRADOC="README.md"
+RUBY_FAKEGEM_GEMSPEC="pairing_heap.gemspec"
+
+inherit ruby-fakegem
+
+DESCRIPTION="Performant priority queue with support for changing priority"
+HOMEPAGE="https://github.com/mhib/pairing_heap";
+SRC_URI="https://github.com/mhib/pairing_heap/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE=""
+
+# We normally patch out simplecov but the test suite does not work
+# correctly without it.
+ruby_add_bdepend "test? ( dev-ruby/minitest dev-ruby/simplecov )"
+
+all_ruby_prepare() {
+       sed -i -e '/require.*\(bundler\|standard\)/ s:^:#:' Rakefile || die
+
+       sed -e 's:_relative ": "./:' \
+               -e 's/__dir__/"."/' \
+               -e 's/git ls-files -z/find * -print0/' \
+               -i ${RUBY_FAKEGEM_GEMSPEC} || die
+}

Reply via email to