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:
parent
a88cdb521d
commit
7b1800224e
1 changed files with 3 additions and 7 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue