1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-12 18:59:50 +03:00

main/ruby-net-ftp: run tests without rake

To avoid unnecessary dependency on ruby-rake.
This commit is contained in:
Jakub Jirutka 2024-12-29 13:28:11 +01:00
parent a88cdb521d
commit 7b1800224e

View file

@ -11,7 +11,7 @@ url="https://github.com/ruby/net-ftp"
arch="noarch"
license="BSD-2-Clause AND Ruby"
depends="ruby"
checkdepends="ruby-rake ruby-test-unit"
checkdepends="ruby-test-unit"
makedepends="ruby-rdoc"
subpackages="$pkgname-doc"
source="https://github.com/ruby/net-ftp/archive/v$pkgver/$_gemname-$pkgver.tar.gz
@ -19,17 +19,13 @@ source="https://github.com/ruby/net-ftp/archive/v$pkgver/$_gemname-$pkgver.tar.g
"
builddir="$srcdir/$_gemname-$pkgver"
prepare() {
default_prepare
sed -i '/require .bundler/d' Rakefile
}
build() {
gem build $_gemname.gemspec
}
check() {
rake test
ruby -I lib -I test/lib -r helper \
-e "Dir.glob('./test/**/test_*.rb', &method(:require))" -- --verbose
}
package() {