1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-23 19:25:25 +03:00
aports/community/ruby-simplecov-cobertura/APKBUILD

49 lines
1.2 KiB
Text

# Maintainer: Will Sinatra <wpsinatra@gmail.com>
# Contributor: Will Sinatra <wpsinatra@gmail.com>
pkgname=ruby-simplecov-cobertura
_gemname=${pkgname#ruby-}
pkgver=2.1.0
pkgrel=1
pkgdesc="produces covertura xml formatted output from simplecov"
url="https://rubygems.org/gems/simplecov-cobertura"
arch="noarch"
license="Apache-2.0"
depends="ruby"
checkdepends="ruby-rake ruby-bundler ruby-rspec ruby-nokogiri ruby-test-unit"
depends="ruby-simplecov ruby-rexml"
source="$pkgname-$pkgver.tar.gz::https://github.com/dashingrocket/simplecov-cobertura/archive/refs/tags/v$pkgver.tar.gz"
builddir="$srcdir/$_gemname-$pkgver"
options="!check" #depends on rubocop
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
}
sha512sums="
b02efeccfe613d2c5c3e0122f0cdda150bc115cad7ef933723da40cb857ca15da8c404fdc637db3818b138326074de03db34224b413c7d087322401229cb505b ruby-simplecov-cobertura-2.1.0.tar.gz
"