Files
gentoo/dev-ruby/pairing_heap/pairing_heap-3.1.0.ebuild
Alfred Wingate 6f47a0d251 dev-ruby/pairing_heap: enable ruby40
Signed-off-by: Alfred Wingate <parona@protonmail.com>
Part-of: https://codeberg.org/gentoo/gentoo/pulls/1478
Signed-off-by: Sam James <sam@gentoo.org>
2026-07-20 18:12:39 +01:00

35 lines
933 B
Bash

# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
USE_RUBY="ruby32 ruby33 ruby34 ruby40"
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 ~arm64"
IUSE="test"
# 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
}