mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-13 03:09:51 +03:00
main/ruby-rbs: upgrade to 3.8.0 and enable check
This commit is contained in:
parent
a7631f9d36
commit
cc715b7146
2 changed files with 34 additions and 13 deletions
|
@ -4,21 +4,37 @@ pkgname=ruby-rbs
|
||||||
_gemname=rbs
|
_gemname=rbs
|
||||||
# Keep version in sync with "Bundled gems" (https://stdgems.org) for the
|
# Keep version in sync with "Bundled gems" (https://stdgems.org) for the
|
||||||
# packaged Ruby version.
|
# packaged Ruby version.
|
||||||
pkgver=3.4.4
|
pkgver=3.8.1
|
||||||
pkgrel=0
|
pkgrel=0
|
||||||
pkgdesc="Type Signature for Ruby"
|
pkgdesc="Type Signature for Ruby"
|
||||||
url="https://github.com/ruby/rbs"
|
url="https://github.com/ruby/rbs"
|
||||||
arch="all"
|
arch="all"
|
||||||
license="BSD-2-Clause AND Ruby"
|
license="BSD-2-Clause AND Ruby"
|
||||||
depends="ruby ruby-bundler"
|
depends="ruby ruby-bundler"
|
||||||
checkdepends="ruby-rake ruby-test-unit"
|
makedepends="
|
||||||
makedepends="ruby-dev ruby-rdoc"
|
ruby-dev
|
||||||
|
ruby-rdoc
|
||||||
|
"
|
||||||
|
checkdepends="
|
||||||
|
ruby-bigdecimal
|
||||||
|
ruby-rake
|
||||||
|
ruby-test-unit
|
||||||
|
"
|
||||||
subpackages="$pkgname-doc"
|
subpackages="$pkgname-doc"
|
||||||
source="https://github.com/ruby/rbs/archive/v$pkgver/$_gemname-$pkgver.tar.gz
|
source="https://github.com/ruby/rbs/archive/v$pkgver/$_gemname-$pkgver.tar.gz
|
||||||
gemspec.patch
|
gemspec.patch
|
||||||
"
|
"
|
||||||
builddir="$srcdir/$_gemname-$pkgver"
|
builddir="$srcdir/$_gemname-$pkgver"
|
||||||
options="!check" # FIXME: require gems that are not packaged yet
|
|
||||||
|
prepare() {
|
||||||
|
default_prepare
|
||||||
|
|
||||||
|
# Requires ruby-json-schema which is not in main.
|
||||||
|
rm test/rbs/schema_test.rb
|
||||||
|
|
||||||
|
# FIXME: Tries to install gems to / via bundler.
|
||||||
|
rm test/rbs/cli_test.rb
|
||||||
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
gem build $_gemname.gemspec
|
gem build $_gemname.gemspec
|
||||||
|
@ -34,7 +50,8 @@ build() {
|
||||||
}
|
}
|
||||||
|
|
||||||
check() {
|
check() {
|
||||||
GEM_PATH='dist' rake test
|
GEM_PATH='dist' SKIP_RBS_VALIDATION=1 ruby -I lib -I test \
|
||||||
|
-e "Dir.glob(['./test/*_test.rb', './test/rbs/*_test.rb'], &method(:require))" -- --verbose
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
|
@ -59,6 +76,6 @@ doc() {
|
||||||
}
|
}
|
||||||
|
|
||||||
sha512sums="
|
sha512sums="
|
||||||
c6be887af1c89e7b9d8f01e248a24f571c189fc81f55d1625957434a3d1e74c5d23f9ba2089750cb742a82560165d9bab309cff8cdb6c9e455076051301c7dd4 rbs-3.4.4.tar.gz
|
e9ed09d493fac14f0aa9f1b97a440a2d424188cad3e4a4f62f5e1b5a34641e5c004b9de518327076bc0cf69d268391150ce74ca40ec36ac40964d87c9c7c1915 rbs-3.8.1.tar.gz
|
||||||
39f59efc8ed4af86314e630c19cbefdf5df740c3baf8e51e184a58f8a42df7fb5c47d8f3563e97fff1f41d38d3d4d80ba665378ac82b24983a9aa49d4f7e11e4 gemspec.patch
|
10887b42cc913a08012cc2b34e7179540776c59ebbe305d0488c0f0d552defac1465baf3ec3b30ec3385a68621fecdfd2f9d0e65bff7f863814fff287d96a65a gemspec.patch
|
||||||
"
|
"
|
||||||
|
|
|
@ -1,15 +1,19 @@
|
||||||
--- a/rbs.gemspec
|
--- a/rbs.gemspec
|
||||||
+++ b/rbs.gemspec
|
+++ b/rbs.gemspec
|
||||||
@@ -25,11 +25,7 @@
|
@@ -26,15 +26,7 @@
|
||||||
"public gem pushes."
|
|
||||||
end
|
end
|
||||||
|
|
||||||
- # Specify which files should be added to the gem when it is released.
|
# Specify which files should be added to the gem when it is released.
|
||||||
- # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
- # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
||||||
- spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
|
- spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
|
||||||
- `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features|bin|steep)/}) }
|
- `git ls-files -z`.split("\x0").reject do |f|
|
||||||
|
- [
|
||||||
|
- %r{^(test|spec|features|bin|steep|benchmark)/},
|
||||||
|
- /Gemfile/
|
||||||
|
- ].any? {|r| f.match(r) }
|
||||||
|
- end
|
||||||
- end
|
- end
|
||||||
+ spec.files = Dir["core/**/*.rbs", "exe/*", "ext/**/*", "lib/**/*.rb", "schema/**/*.json", "sig/**/*.rbs", "stdlib/**/*.rbs"]
|
+ spec.files = Dir["core/**/*", "exe/*", "ext/**/*", "include/**/*.h", "lib/**/*.rb", "schema/**/*.json", "sig/**/*", "src/**/*", "stdlib/**/*"]
|
||||||
spec.extensions = %w{ext/rbs_extension/extconf.rb}
|
spec.extensions = %w{ext/rbs_extension/extconf.rb}
|
||||||
|
|
||||||
spec.bindir = "exe"
|
if false
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue