user/ruby3.2-minitest: drop due migration to ilot iports
This commit is contained in:
parent
d09e518d1f
commit
638732a089
2 changed files with 0 additions and 81 deletions
|
@ -1,66 +0,0 @@
|
|||
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
|
||||
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
|
||||
pkgname=ruby3.2-minitest
|
||||
_gemname=minitest
|
||||
# Keep version in sync with "Bundled gems" (https://stdgems.org) for the
|
||||
# packaged Ruby version.
|
||||
pkgver=5.15.0
|
||||
pkgrel=1
|
||||
pkgdesc="Suite of testing facilities supporting TDD, BDD, mocking, and benchmarking for Ruby"
|
||||
url="https://github.com/minitest/minitest"
|
||||
arch="noarch"
|
||||
license="MIT"
|
||||
depends="ruby3.2"
|
||||
makedepends="ruby3.2-rdoc"
|
||||
subpackages="$pkgname-doc"
|
||||
source="https://github.com/minitest/minitest/archive/v$pkgver/$_gemname-$pkgver.tar.gz
|
||||
https://rubygems.org/downloads/$_gemname-$pkgver.gem
|
||||
"
|
||||
builddir="$srcdir/$_gemname-$pkgver"
|
||||
|
||||
prepare() {
|
||||
default_prepare
|
||||
|
||||
# Generate gemspec (there's no gemspec in the source).
|
||||
gem specification -l --ruby "$srcdir"/$_gemname-$pkgver.gem \
|
||||
> "$builddir"/$_gemname.gemspec
|
||||
}
|
||||
|
||||
build() {
|
||||
gem build $_gemname.gemspec
|
||||
}
|
||||
|
||||
check() {
|
||||
ruby -Ilib -Itest -e "Dir.glob('./test/**/test_*.rb', &method(:require))"
|
||||
}
|
||||
|
||||
package() {
|
||||
local gemdir="$pkgdir/$(ruby -e 'puts Gem.default_dir')"
|
||||
local geminstdir="$gemdir/gems/$_gemname-$pkgver"
|
||||
|
||||
gem install \
|
||||
--local \
|
||||
--install-dir "$gemdir" \
|
||||
--ignore-dependencies \
|
||||
--document ri \
|
||||
--verbose \
|
||||
$_gemname
|
||||
|
||||
# Remove unnessecary files
|
||||
cd "$gemdir"
|
||||
rm -rf build_info cache extensions plugins
|
||||
|
||||
cd "$geminstdir"
|
||||
rm -rf History.* Manifest.* README.* Rakefile test/
|
||||
}
|
||||
|
||||
doc() {
|
||||
pkgdesc="$pkgdesc (ri docs)"
|
||||
|
||||
amove "$(ruby -e 'puts Gem.default_dir')"/doc
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
194d074fa83a87b21f551f86d2bb682bcbac53d5a23d4e0f81fbf570427c5cdfcb27e10618bea69037f9e55bea637ed96e52a10808c586ab4020d788556bda71 minitest-5.15.0.tar.gz
|
||||
5e97a7aa616966ffc60e10cdc0ba123a7e793f10283ec3b6bf36066177036788cb950ad566fbac49e613b93f08b9846534f463017cde966b4890c3a34a2286be minitest-5.15.0.gem
|
||||
"
|
|
@ -1,15 +0,0 @@
|
|||
--- a/webrick.gemspec
|
||||
+++ b/webrick.gemspec
|
||||
@@ -14,12 +14,6 @@
|
||||
|
||||
s.require_path = %w{lib}
|
||||
s.files = [
|
||||
- "Gemfile",
|
||||
- "LICENSE.txt",
|
||||
- "README.md",
|
||||
- "Rakefile",
|
||||
- "bin/console",
|
||||
- "bin/setup",
|
||||
"lib/webrick.rb",
|
||||
"lib/webrick/accesslog.rb",
|
||||
"lib/webrick/cgi.rb",
|
Loading…
Reference in a new issue