From 4ee6a62dd9ab1aef8e6f6e6e2898a7e55dff4462 Mon Sep 17 00:00:00 2001 From: Jakub Jirutka Date: Sun, 29 Dec 2024 23:04:33 +0100 Subject: [PATCH] main/ruby-prime: run tests without rake To avoid unnecessary dependency on ruby-rake. --- main/ruby-prime/APKBUILD | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/main/ruby-prime/APKBUILD b/main/ruby-prime/APKBUILD index 87e2dc339ac..b08c2419876 100644 --- a/main/ruby-prime/APKBUILD +++ b/main/ruby-prime/APKBUILD @@ -12,7 +12,6 @@ arch="noarch" license="BSD-2-Clause AND Ruby" depends="ruby" checkdepends=" - ruby-rake ruby-rbs ruby-test-unit ruby-test-unit-ruby-core @@ -25,8 +24,6 @@ builddir="$srcdir/$_gemname-$pkgver" prepare() { default_prepare - sed -i '/require .bundler/d' Rakefile - # This test is broken, it works only if "prime" is installed in /. # (Cannot find type definitions for library prime) rm test/test_rbs.rb @@ -37,7 +34,8 @@ build() { } check() { - rake test + ruby -I lib -I test/lib -r helper \ + -e "Dir.glob('./test/**/test_*.rb', &method(:require))" -- --verbose } package() {