mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-12 18:59:50 +03:00
testing/ruby-minitest-autotest: new aport
This commit is contained in:
parent
fd7de099eb
commit
f0dbd2f7d0
2 changed files with 81 additions and 0 deletions
59
testing/ruby-minitest-autotest/APKBUILD
Normal file
59
testing/ruby-minitest-autotest/APKBUILD
Normal file
|
@ -0,0 +1,59 @@
|
|||
# Contributor: Will Sinatra <wpsinatra@gmail.com>
|
||||
# Maintainer: Will Sinatra <wpsinatra@gmail.com>
|
||||
maintainer="Will Sinatra <wpsinatra@gmail.com>"
|
||||
pkgname=ruby-minitest-autotest
|
||||
_gemname=${pkgname#ruby-}
|
||||
pkgver=1.1.1
|
||||
pkgrel=0
|
||||
pkgdesc="automatically run minitest suite"
|
||||
url="https://rubygems.org/gems/minitest-autotest"
|
||||
arch="noarch"
|
||||
license="MIT"
|
||||
checkdepends="ruby-rake ruby-bundler ruby-rdoc ruby-hoe"
|
||||
depends="ruby ruby-minitest ruby-minitest-server ruby-path_expander"
|
||||
source="$pkgname-$pkgver.tar.gz::https://github.com/minitest/minitest-autotest/archive/refs/tags/v$pkgver.tar.gz
|
||||
https://rubygems.org/downloads/$_gemname-$pkgver.gem
|
||||
LICENSE"
|
||||
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
|
||||
}
|
||||
|
||||
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 ./*.rdoc .autotest ./*.txt Rakefile test
|
||||
|
||||
install -Dm644 "$srcdir"/LICENSE "$pkgdir"/usr/share/licenses/"$pkgname"/LICENSE
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
0f8223b89e02ca158346d86cd5ba30daa59ec081deea49e0ecf516c15360399f8dbfbdcf108027f8254a253b9e689f2b385bba8d2578853117b1bf35e4f8b69e ruby-minitest-autotest-1.1.1.tar.gz
|
||||
347aa92ee21f82606cf6ee4ab3739aeb3c2f9d6d871958f0197c4f482a6d5732ae0711081c8cf2f007af0b91e86427aadfe2fee5fb48ed1913ea5be6a51ef71f minitest-autotest-1.1.1.gem
|
||||
820acb02d9bf81c5241eb473a2412187ac8202a1f97a22408bc74eb65287f864656af438b4ac1b3db84eae9e41a780cb378bb9c22153156f620cdc5c5d68207e LICENSE
|
||||
"
|
22
testing/ruby-minitest-autotest/LICENSE
Normal file
22
testing/ruby-minitest-autotest/LICENSE
Normal 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.
|
Loading…
Add table
Add a link
Reference in a new issue