mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-03-30 19:01:45 +02:00
57 lines
1.5 KiB
Plaintext
57 lines
1.5 KiB
Plaintext
# Maintainer: Will Sinatra <wpsinatra@gmail.com>
|
|
# Contributor: Will Sinatra <wpsinatra@gmail.com>
|
|
maintainer="Will Sinatra <wpsinatra@gmail.com>"
|
|
pkgname=ruby-connection_pool
|
|
_gemname=${pkgname#ruby-}
|
|
pkgver=2.5.0
|
|
pkgrel=0
|
|
pkgdesc="generic connection pool for ruby"
|
|
url="https://rubygems.org/gems/connection_pool"
|
|
arch="noarch"
|
|
license="MIT"
|
|
depends="ruby"
|
|
checkdepends="ruby-rake ruby-bundler ruby-test-unit"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/mperham/connection_pool/archive/refs/tags/v$pkgver.tar.gz"
|
|
builddir="$srcdir/$_gemname-$pkgver"
|
|
subpackages="$pkgname-doc"
|
|
options="!check" # circular
|
|
# Tests require ruby-standard which requires ruby-language_server-protocol,
|
|
# which requires ruby-activesupport, which requires ruby-connection_pool
|
|
|
|
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 README.md Changes.md
|
|
install -Dm644 "$builddir"/LICENSE "$pkgdir"/usr/share/licenses/"$pkgname"/LICENSE
|
|
}
|
|
|
|
sha512sums="
|
|
ce43edb4dd25c050ad93d13ad0a4243bd8ed3234f3af3593b5301696fe31574b4ec20ffb6410caa459876ab4ed4d39d4767ebf57dd2970c25ad18672b42342ed ruby-connection_pool-2.5.0.tar.gz
|
|
"
|