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

testing/ruby-minitest-server: new aport

This commit is contained in:
Will Sinatra 2024-10-24 21:54:06 -04:00 committed by achill (fossdd)
parent 5a2691a069
commit 0e9af0464f
2 changed files with 82 additions and 0 deletions

View file

@ -0,0 +1,60 @@
# Contributor: Will Sinatra <wpsinatra@gmail.com>
# Maintainer: Will Sinatra <wpsinatra@gmail.com>
maintainer="Will Sinatra <wpsinatra@gmail.com>"
pkgname=ruby-minitest-server
_gemname=${pkgname#ruby-}
pkgver=1.0.8
pkgrel=0
pkgdesc="client/server setup for minitest"
url="https://rubygems.org/gems/minitest-server"
arch="noarch"
license="MIT"
checkdepends="ruby-rake ruby-bundler ruby-test-unit ruby-hoe"
depends="ruby ruby-minitest"
source="$pkgname-$pkgver.tar.gz::https://github.com/minitest/minitest-server/archive/refs/tags/v$pkgver.tar.gz
https://rubygems.org/downloads/$_gemname-$pkgver.gem
LICENSE"
builddir="$srcdir/$_gemname-$pkgver"
options="!check" #tests fail, FIXME
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
}
check() {
rake test
}
package() {
local gemdir="$pkgdir/$(ruby -e 'puts Gem.default_dir')"
gem install --local \
--install-dir "$gemdir" \
--ignore-dependencies \
--no-document \
--verbose \
$_gemname
rm -r "$gemdir"/cache \
"$gemdir"/build_info \
"$gemdir"/doc
cd "$gemdir/gems/$_gemname-$pkgver"
rm -r .autotest ./*.rdoc ./*.txt Rakefile test
install -Dm644 "$srcdir"/LICENSE "$pkgdir"/usr/share/licenses/"$pkgname"/LICENSE
}
sha512sums="
a8a0042eacf7a6a2235ba54e867dac3f22b8f6dd49e82485b6991497a58249554c870f0ab81b1be01c37ba38ad056144e96c6499737da780a92d6ed024bdfc40 ruby-minitest-server-1.0.8.tar.gz
190eba27e0ea697dc0e1c5750aa1db3424892feaf0d0c95e6ac75f7f20a313b1dfc026c6698df277e9f123876d40a471919a650caa310e4c5a33d6a92fddf252 minitest-server-1.0.8.gem
820acb02d9bf81c5241eb473a2412187ac8202a1f97a22408bc74eb65287f864656af438b4ac1b3db84eae9e41a780cb378bb9c22153156f620cdc5c5d68207e LICENSE
"

View file

@ -0,0 +1,22 @@
(The MIT License)
Copyright (c) Ryan Davis, seattle.rb
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
'Software'), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.