diff options
author | Dan Theisen <djt@hxx.in> | 2019-05-02 11:15:14 +0000 |
---|---|---|
committer | Dan Theisen <djt@hxx.in> | 2019-05-03 11:26:23 +0000 |
commit | 013a9f00cd49ca45bcb314fd53b83a2ce80ee000 (patch) | |
tree | 4ea5c9b3d1a4a6b9d59151802aa8b14e21aa364f /user | |
parent | ad8d1cf0044ebd5d04acafed558c7ba54c20402c (diff) | |
download | packages-013a9f00cd49ca45bcb314fd53b83a2ce80ee000.tar.gz packages-013a9f00cd49ca45bcb314fd53b83a2ce80ee000.tar.bz2 packages-013a9f00cd49ca45bcb314fd53b83a2ce80ee000.tar.xz packages-013a9f00cd49ca45bcb314fd53b83a2ce80ee000.zip |
user/ruby-rspec-support: new package
Diffstat (limited to 'user')
-rw-r--r-- | user/ruby-rspec-support/APKBUILD | 40 | ||||
-rw-r--r-- | user/ruby-rspec-support/gemspec.patch | 12 |
2 files changed, 52 insertions, 0 deletions
diff --git a/user/ruby-rspec-support/APKBUILD b/user/ruby-rspec-support/APKBUILD new file mode 100644 index 000000000..ba2389e72 --- /dev/null +++ b/user/ruby-rspec-support/APKBUILD @@ -0,0 +1,40 @@ +# Contributor: Jakub Jirutka <jakub@jirutka.cz> +# Maintainer: Dan Theisen <djt@hxx.in> +pkgname=ruby-rspec-support +_gemname=${pkgname#ruby-} +pkgver=3.8.0 +pkgrel=0 +pkgdesc="Support utilities for RSpec gems" +url="https://relishapp.com/rspec/rspec-support/" +arch="noarch" +options="!check" # rspec's tests are written in rspec +license="MIT" +depends="ruby" +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 -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="e16cc7bcc3de797e78c4f6ed475b0e60d492d0442dc048b4b2769a4819b80d1fb4a12aefaee3cc6a35f08d35f5fea82e00cc0fcf04363e57e74a6f5ed73d0693 ruby-rspec-support-3.8.0.tar.gz +e9d611ea1789e835f742aa92f1e668840139e2621898edf158dc53e111db4119a324da65d2d28f5c6e737c82f261f4adb3beb8c244ee01d2f618778ed62d3731 gemspec.patch" diff --git a/user/ruby-rspec-support/gemspec.patch b/user/ruby-rspec-support/gemspec.patch new file mode 100644 index 000000000..069c93729 --- /dev/null +++ b/user/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"] |