diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2017-12-25 23:50:25 +0100 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2017-12-25 23:50:25 +0100 |
commit | 3297d634f4371b930eba14293bc829b9c4a5150e (patch) | |
tree | 2198f7bd88fa2d064f4a92746f7f46fdd065fb03 /community/ruby-rspec-support | |
parent | 94f91d25906569a622b1bdbd61766449230daa27 (diff) | |
download | aports-3297d634f4371b930eba14293bc829b9c4a5150e.tar.bz2 aports-3297d634f4371b930eba14293bc829b9c4a5150e.tar.xz |
community/ruby-rspec*: move from testing
Diffstat (limited to 'community/ruby-rspec-support')
-rw-r--r-- | community/ruby-rspec-support/APKBUILD | 40 | ||||
-rw-r--r-- | community/ruby-rspec-support/gemspec.patch | 12 |
2 files changed, 52 insertions, 0 deletions
diff --git a/community/ruby-rspec-support/APKBUILD b/community/ruby-rspec-support/APKBUILD new file mode 100644 index 0000000000..327542cd66 --- /dev/null +++ b/community/ruby-rspec-support/APKBUILD @@ -0,0 +1,40 @@ +# Contributor: Jakub Jirutka <jakub@jirutka.cz> +# Maintainer: Jakub Jirutka <jakub@jirutka.cz> +pkgname=ruby-rspec-support +_gemname=${pkgname#ruby-} +pkgver=3.7.0 +pkgrel=0 +pkgdesc="Support utilities for RSpec gems" +url="https://relishapp.com/rspec/rspec-support/" +arch="noarch" +license="MIT" +depends="ruby" +options="!check" # rspec's tests are written in rspec +source="$pkgname-$pkgver.tar.gz::https://github.com/rspec/$_gemname/archive/v$pkgver.tar.gz + gemspec.patch" +builddir="$srcdir/$_gemname-$pkgver" + +build() { + cd "$builddir" + gem build $_gemname.gemspec +} + +package() { + local gemdir="$pkgdir/$(ruby -rubygems -e 'puts Gem.default_dir')" + + cd "$builddir" + gem install --local \ + --install-dir "$gemdir" \ + --ignore-dependencies \ + --no-document \ + --verbose \ + $_gemname + + # Clean-up... + rm -r "$gemdir"/cache \ + "$gemdir"/build_info \ + "$gemdir"/doc +} + +sha512sums="a4a3fc705d4c31d760777513f86d8b0ca4c9e540b0a6f4b6d1152676f252e1276fedebe7cd259f0dbbb60b447cc179eea194f3a3e5bb023907923cbf16fc8033 ruby-rspec-support-3.7.0.tar.gz +e9d611ea1789e835f742aa92f1e668840139e2621898edf158dc53e111db4119a324da65d2d28f5c6e737c82f261f4adb3beb8c244ee01d2f618778ed62d3731 gemspec.patch" diff --git a/community/ruby-rspec-support/gemspec.patch b/community/ruby-rspec-support/gemspec.patch new file mode 100644 index 0000000000..069c937299 --- /dev/null +++ b/community/ruby-rspec-support/gemspec.patch @@ -0,0 +1,12 @@ +--- a/rspec-support.gemspec ++++ b/rspec-support.gemspec +@@ -13,8 +13,7 @@ + spec.description = "Support utilities for RSpec gems" + spec.license = "MIT" + +- spec.files = `git ls-files -- lib/*`.split("\n") +- spec.files += %w[README.md LICENSE.md Changelog.md] ++ spec.files = Dir["lib/**/*"] + spec.test_files = [] + spec.rdoc_options = ["--charset=UTF-8"] + spec.require_paths = ["lib"] |