diff options
author | Dan Theisen <djt@hxx.in> | 2019-05-02 11:20:59 +0000 |
---|---|---|
committer | Dan Theisen <djt@hxx.in> | 2019-05-03 11:26:26 +0000 |
commit | 4e5e413eb54ecdd4087ae193123660ef73b8d98f (patch) | |
tree | 166e1d3700fc6beaa9eb268d39bd23fdd580b223 | |
parent | cb46a19d8e41135f695146987ceb4efcc7cc1a6a (diff) | |
download | packages-4e5e413eb54ecdd4087ae193123660ef73b8d98f.tar.gz packages-4e5e413eb54ecdd4087ae193123660ef73b8d98f.tar.bz2 packages-4e5e413eb54ecdd4087ae193123660ef73b8d98f.tar.xz packages-4e5e413eb54ecdd4087ae193123660ef73b8d98f.zip |
user/ruby-rspec-expectations: new package
-rw-r--r-- | user/ruby-rspec-expectations/APKBUILD | 40 | ||||
-rw-r--r-- | user/ruby-rspec-expectations/gemspec.patch | 12 |
2 files changed, 52 insertions, 0 deletions
diff --git a/user/ruby-rspec-expectations/APKBUILD b/user/ruby-rspec-expectations/APKBUILD new file mode 100644 index 000000000..1cf7cf5cc --- /dev/null +++ b/user/ruby-rspec-expectations/APKBUILD @@ -0,0 +1,40 @@ +# Contributor: Jakub Jirutka <jakub@jirutka.cz> +# Maintainer: Dan Theisen <djt@hxx.in> +pkgname=ruby-rspec-expectations +_gemname=${pkgname#ruby-} +pkgver=3.8.3 +pkgrel=0 +pkgdesc="Provides a readable API to express expected outcomes of a code example in RSpec" +url="https://relishapp.com/rspec/rspec-expectations/" +arch="noarch" +options="!check" # rspec's tests are written in rspec +license="MIT" +depends="ruby ruby-diff-lcs ruby-rspec-support~=${pkgver%.*}" +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="328b3403e7ac2864ed6ad1a196ca24df6693797e35525559f2082c7e1c161d60da7776ca1a68a82364a7ea55115ac2c12ebf6af8486ef88757a4818a9683ae80 ruby-rspec-expectations-3.8.3.tar.gz +1d477004521852e23d01b197187dbb434a2c7fd179e506c82a12e17f5d52470fe2a113112e7052b9479077eafa6759beb07c03301de1f8ea7f5c4643c92d8346 gemspec.patch" diff --git a/user/ruby-rspec-expectations/gemspec.patch b/user/ruby-rspec-expectations/gemspec.patch new file mode 100644 index 000000000..644aad1ad --- /dev/null +++ b/user/ruby-rspec-expectations/gemspec.patch @@ -0,0 +1,12 @@ +--- a/rspec-expectations.gemspec ++++ b/rspec-expectations.gemspec +@@ -13,8 +13,7 @@ + s.summary = "rspec-expectations-#{RSpec::Expectations::Version::STRING}" + s.description = "rspec-expectations provides a simple, readable API to express expected outcomes of a code example." + +- s.files = `git ls-files -- lib/*`.split("\n") +- s.files += %w[README.md LICENSE.md Changelog.md .yardopts .document] ++ s.files = Dir["lib/**/*"] + s.test_files = [] + s.rdoc_options = ["--charset=UTF-8"] + s.require_path = "lib" |