diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2018-03-26 17:32:35 +0200 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2018-03-26 17:32:51 +0200 |
commit | 22ff18144891fdbd1fe03822bf2bea0b1c149a2e (patch) | |
tree | aeff30f43181d3c63091f9724c4119371f400f45 /testing | |
parent | b9807df83b6ab649d915bca53299dd73b1db0897 (diff) | |
download | aports-22ff18144891fdbd1fe03822bf2bea0b1c149a2e.tar.bz2 aports-22ff18144891fdbd1fe03822bf2bea0b1c149a2e.tar.xz |
testing/ruby-hamster: new aport
https://github.com/hamstergem/hamster
Efficient, immutable, and thread-safe collection classes for Ruby
Diffstat (limited to 'testing')
-rw-r--r-- | testing/ruby-hamster/APKBUILD | 46 | ||||
-rw-r--r-- | testing/ruby-hamster/specs-remove-extra-deps.patch | 26 |
2 files changed, 72 insertions, 0 deletions
diff --git a/testing/ruby-hamster/APKBUILD b/testing/ruby-hamster/APKBUILD new file mode 100644 index 0000000000..49a0486c5c --- /dev/null +++ b/testing/ruby-hamster/APKBUILD @@ -0,0 +1,46 @@ +# Contributor: Jakub Jirutka <jakub@jirutka.cz> +# Maintainer: Jakub Jirutka <jakub@jirutka.cz> +pkgname=ruby-hamster +_gemname=hamster +pkgver=3.0.0 +pkgrel=0 +pkgdesc="Efficient, immutable, and thread-safe collection classes for Ruby" +url="https://github.com/hamstergem/hamster" +arch="noarch" +license="MIT" +depends="ruby ruby-concurrent-ruby" +checkdepends="ruby-rspec" +source="$pkgname-$pkgver.tar.gz::https://github.com/hamstergem/$_gemname/archive/v$pkgver.tar.gz + specs-remove-extra-deps.patch" +builddir="$srcdir/$_gemname-$pkgver" + +build() { + cd "$builddir" + gem build $_gemname.gemspec +} + +check() { + cd "$builddir" + rspec spec +} + +package() { + local gemdir="$pkgdir/$(ruby -e 'puts Gem.default_dir')" + + cd "$builddir" + gem install --local \ + --install-dir "$gemdir" \ + --ignore-dependencies \ + --no-document \ + --verbose \ + $_gemname + + cd "$gemdir" + rm -rf cache build_info doc + + cd gems/$_gemname-$pkgver + rm -rf spec LICENSE +} + +sha512sums="ba2f1b843aca907d0e84968160322d0ef7afdc38a45675e7b0cca54fa676d2d0e27503d98ffb605f50f85488b5a228df9bca2b1ba03d4f16148433e7a0dec994 ruby-hamster-3.0.0.tar.gz +ea9c997e69abc3074ba52213610b4ff62179fb8e50243fa6a41cfe85773831c11c793ed04b515ac48aceb45ee29e3d5c3b08dada7eda199f260fe41f566d1bf5 specs-remove-extra-deps.patch" diff --git a/testing/ruby-hamster/specs-remove-extra-deps.patch b/testing/ruby-hamster/specs-remove-extra-deps.patch new file mode 100644 index 0000000000..8dd1f96c69 --- /dev/null +++ b/testing/ruby-hamster/specs-remove-extra-deps.patch @@ -0,0 +1,26 @@ +--- a/spec/spec_helper.rb ++++ b/spec/spec_helper.rb +@@ -1,7 +1,3 @@ +-require "codeclimate-test-reporter" +-CodeClimate::TestReporter.start +- +-require "pry" + require "rspec" + require "hamster/hash" + require "hamster/set" +--- a/spec/lib/hamster/vector/insert_spec.rb ++++ b/spec/lib/hamster/vector/insert_spec.rb +@@ -1,6 +1,5 @@ + require "spec_helper" + require "hamster/vector" +-require 'pry' + + describe Hamster::Vector do + describe "#insert" do +@@ -66,4 +65,4 @@ + end + end + end +-end +\ No newline at end of file ++end |