mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-12 18:59:50 +03:00
testing/ruby-ansi: new aport
This commit is contained in:
parent
77671e9c12
commit
d53b14a599
1 changed files with 52 additions and 0 deletions
52
testing/ruby-ansi/APKBUILD
Normal file
52
testing/ruby-ansi/APKBUILD
Normal file
|
@ -0,0 +1,52 @@
|
||||||
|
# Contributor: Will Sinatra <wpsinatra@gmail.com>
|
||||||
|
# Maintainer: Will Sinatra <wpsinatra@gmail.com>
|
||||||
|
maintainer="Will Sinatra <wpsinatra@gmail.com>"
|
||||||
|
pkgname=ruby-ansi
|
||||||
|
_gemname=${pkgname#ruby-}
|
||||||
|
pkgver=1.5.0
|
||||||
|
pkgrel=0
|
||||||
|
pkgdesc="A collection of ansi escape code libraries"
|
||||||
|
url="https://rubygems.org/gems/ansi"
|
||||||
|
arch="noarch"
|
||||||
|
license="BSD-2-Clause"
|
||||||
|
depends="ruby"
|
||||||
|
checkdepends="ruby-rake ruby-bundler ruby-test-unit"
|
||||||
|
source="$pkgname-$pkgver.tar.gz::https://github.com/rubyworks/ansi/archive/refs/tags/$pkgver.tar.gz"
|
||||||
|
builddir="$srcdir/$_gemname-$pkgver"
|
||||||
|
options="!check" # depends on rubytest
|
||||||
|
|
||||||
|
prepare() {
|
||||||
|
default_prepare
|
||||||
|
|
||||||
|
sed -i '/spec.signing_key/d' $_gemname.gemspec
|
||||||
|
}
|
||||||
|
|
||||||
|
build() {
|
||||||
|
gem build $_gemname.gemspec
|
||||||
|
}
|
||||||
|
|
||||||
|
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 ./*.md ./*.yml demo test .index .yardopts
|
||||||
|
}
|
||||||
|
|
||||||
|
sha512sums="
|
||||||
|
42493d2fd0db738d71203cafd6ac1aad929760ad79174f7bb65f6b9853b5792db43596109dee2b818dc3ffdd167597a85061a40f7e2bdadd3ab833cbb4b42a14 ruby-ansi-1.5.0.tar.gz
|
||||||
|
"
|
Loading…
Add table
Add a link
Reference in a new issue