mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-12 18:59:50 +03:00
testing/ruby-minitest-focus: new aport
This commit is contained in:
parent
43a8961e2c
commit
fd7de099eb
2 changed files with 81 additions and 0 deletions
59
testing/ruby-minitest-focus/APKBUILD
Normal file
59
testing/ruby-minitest-focus/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-focus
|
||||||
|
_gemname=${pkgname#ruby-}
|
||||||
|
pkgver=1.3.1
|
||||||
|
pkgrel=0
|
||||||
|
pkgdesc="focus on a few tests with ease"
|
||||||
|
url="https://rubygems.org/gems/minitest-focus"
|
||||||
|
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-focus/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 .autotest ./*.txt Rakefile test
|
||||||
|
|
||||||
|
install -Dm644 "$srcdir"/LICENSE "$pkgdir"/usr/share/licenses/"$pkgname"/LICENSE
|
||||||
|
}
|
||||||
|
|
||||||
|
sha512sums="
|
||||||
|
48b3fd43cdda2761ef2fc210ee58750aca145686288d8a6bac3f2a94f0e20bb098a74ea50b3255e424d390ad9e5262b4418d6b4bc6c434406b0310068aba23ab ruby-minitest-focus-1.3.1.tar.gz
|
||||||
|
1d2454454de8ae8aafa75ba02e8e8715af76be4f992ab10341dbed7563f5038164cf259f0ebecb2f49e922773b275e1541ec80884ea17e37f7439e5590116bff minitest-focus-1.3.1.gem
|
||||||
|
820acb02d9bf81c5241eb473a2412187ac8202a1f97a22408bc74eb65287f864656af438b4ac1b3db84eae9e41a780cb378bb9c22153156f620cdc5c5d68207e LICENSE
|
||||||
|
"
|
22
testing/ruby-minitest-focus/LICENSE
Normal file
22
testing/ruby-minitest-focus/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