mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-03-11 00:22:23 +01: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.4.1
|
|
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="
|
|
4529446de89d01adee28127807fe104ada683866bc61b60ee77acb718881aced982aa1a1e6e2330077d79ed3d77af199e8612a6dc08de4c40468ac4e3623b799 ruby-connection_pool-2.4.1.tar.gz
|
|
"
|