mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-12 18:59:50 +03:00
main/ruby-rinda: new aport (needed for main/ruby)
This commit is contained in:
parent
120859948a
commit
407fbed023
2 changed files with 67 additions and 0 deletions
59
main/ruby-rinda/APKBUILD
Normal file
59
main/ruby-rinda/APKBUILD
Normal file
|
@ -0,0 +1,59 @@
|
|||
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
|
||||
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
|
||||
pkgname=ruby-rinda
|
||||
_gemname=rinda
|
||||
# Keep version in sync with "Bundled gems" (https://stdgems.org) for the
|
||||
# packaged Ruby version.
|
||||
pkgver=0.2.0
|
||||
pkgrel=0
|
||||
pkgdesc="The Linda distributed computing paradigm in Ruby"
|
||||
url="https://github.com/ruby/rinda"
|
||||
arch="noarch"
|
||||
license="BSD-2-Clause AND Ruby"
|
||||
depends="ruby ruby-drb"
|
||||
makedepends="ruby-rdoc"
|
||||
checkdepends="
|
||||
ruby-test-unit
|
||||
ruby-test-unit-ruby-core
|
||||
"
|
||||
subpackages="$pkgname-doc"
|
||||
source="https://github.com/ruby/rinda/archive/v$pkgver/$_gemname-$pkgver.tar.gz
|
||||
gemspec.patch
|
||||
"
|
||||
builddir="$srcdir/$_gemname-$pkgver"
|
||||
options="!check" # FIXME tests get stuck
|
||||
|
||||
build() {
|
||||
gem build $_gemname.gemspec
|
||||
}
|
||||
|
||||
check() {
|
||||
ruby -I lib -e "Dir.glob('./test/**/test_*.rb', &method(:require))" -- --verbose
|
||||
}
|
||||
|
||||
package() {
|
||||
local gemdir="$pkgdir/$(ruby -e 'puts Gem.default_dir')"
|
||||
|
||||
gem install \
|
||||
--local \
|
||||
--install-dir "$gemdir" \
|
||||
--ignore-dependencies \
|
||||
--document ri \
|
||||
--verbose \
|
||||
$_gemname
|
||||
|
||||
# Remove unnessecary files
|
||||
cd "$gemdir"
|
||||
rm -rf build_info cache extensions plugins
|
||||
}
|
||||
|
||||
doc() {
|
||||
pkgdesc="$pkgdesc (ri docs)"
|
||||
|
||||
amove "$(ruby -e 'puts Gem.default_dir')"/doc
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
f1fe85c3a0aa147be335ffd414f0c3e9b6ec33b789e789f0a5e33977c06752a117f4bf92236124775062fd7f7cf6465c5e696e423ef9886733b6c318914d1f49 rinda-0.2.0.tar.gz
|
||||
26007153e4117c6d28fe24f831588c3e543c9478d06c03b10cfc8240ef5706d97d12afe17d739fa1635f47eb2a45078fe44dea64f510df45bafc9173e09ba622 gemspec.patch
|
||||
"
|
8
main/ruby-rinda/gemspec.patch
Normal file
8
main/ruby-rinda/gemspec.patch
Normal file
|
@ -0,0 +1,8 @@
|
|||
--- a/rinda.gemspec
|
||||
+++ b/rinda.gemspec
|
||||
@@ -24,4 +24 @@
|
||||
- # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
||||
- spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
|
||||
- `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
||||
- end
|
||||
+ spec.files = Dir["lib/**/*.rb"]
|
Loading…
Add table
Add a link
Reference in a new issue