gentoo-ebuilds/dev-ruby/timers/timers-4.4.0.ebuild
Sam James cb7d35ad0f
dev-ruby/timers: Stabilize 4.4.0 amd64, #956184
Signed-off-by: Sam James <sam@gentoo.org>
2025-05-20 20:06:25 +01:00

31 lines
863 B
Bash

# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
USE_RUBY="ruby31 ruby32 ruby33 ruby34"
RUBY_FAKEGEM_EXTRADOC="readme.md"
RUBY_FAKEGEM_GEMSPEC="timers.gemspec"
RUBY_FAKEGEM_RECIPE_TEST="sus"
inherit ruby-fakegem
DESCRIPTION="Pure Ruby one-shot and periodic timers"
HOMEPAGE="https://github.com/socketry/timers"
SRC_URI="https://github.com/socketry/timers/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="MIT"
SLOT="4"
KEYWORDS="amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~sparc x86 ~ppc-macos ~x64-macos ~x64-solaris"
all_ruby_prepare() {
sed -i -e 's:_relative ": "./:' ${RUBY_FAKEGEM_GEMSPEC} || die
# Avoid coverage dependencies
rm -f config/sus.rb || die
# Avoid performance-based tests since we cannot guarantee specific performance levels.
rm -f test/timers/performance.rb || die
}