diff options
author | A. Wilcox <awilcox@wilcox-tech.com> | 2019-05-06 18:56:08 +0000 |
---|---|---|
committer | A. Wilcox <awilcox@wilcox-tech.com> | 2019-05-06 18:56:08 +0000 |
commit | 7bcb34d24ee80b914b14de055ab8b0560e87e7fd (patch) | |
tree | c7ab58ec15a0c0b487d9e60bb55fab78038723ba /user/ruby-rspec-expectations | |
parent | aee6b0728a06a07700b2473cdeca06cb12fa8a81 (diff) | |
parent | def4421a968a5b75dd87fa986956bf10dc7921ca (diff) | |
download | packages-7bcb34d24ee80b914b14de055ab8b0560e87e7fd.tar.gz packages-7bcb34d24ee80b914b14de055ab8b0560e87e7fd.tar.bz2 packages-7bcb34d24ee80b914b14de055ab8b0560e87e7fd.tar.xz packages-7bcb34d24ee80b914b14de055ab8b0560e87e7fd.zip |
Merge branch 'bump.djt.20190417' into 'master'
djt package bumps for 2019-05-03
See merge request !227
Diffstat (limited to 'user/ruby-rspec-expectations')
-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" |