mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-13 03:09:51 +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"
|
arch="noarch"
|
||||||
license="BSD-2-Clause AND Ruby"
|
license="BSD-2-Clause AND Ruby"
|
||||||
depends="ruby"
|
depends="ruby"
|
||||||
checkdepends="ruby-rake ruby-test-unit"
|
checkdepends="ruby-test-unit"
|
||||||
makedepends="ruby-rdoc"
|
makedepends="ruby-rdoc"
|
||||||
subpackages="$pkgname-doc"
|
subpackages="$pkgname-doc"
|
||||||
source="https://github.com/ruby/net-ftp/archive/v$pkgver/$_gemname-$pkgver.tar.gz
|
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"
|
builddir="$srcdir/$_gemname-$pkgver"
|
||||||
|
|
||||||
prepare() {
|
|
||||||
default_prepare
|
|
||||||
sed -i '/require .bundler/d' Rakefile
|
|
||||||
}
|
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
gem build $_gemname.gemspec
|
gem build $_gemname.gemspec
|
||||||
}
|
}
|
||||||
|
|
||||||
check() {
|
check() {
|
||||||
rake test
|
ruby -I lib -I test/lib -r helper \
|
||||||
|
-e "Dir.glob('./test/**/test_*.rb', &method(:require))" -- --verbose
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue