From 4e5e413eb54ecdd4087ae193123660ef73b8d98f Mon Sep 17 00:00:00 2001 From: Dan Theisen Date: Thu, 2 May 2019 11:20:59 +0000 Subject: user/ruby-rspec-expectations: new package --- user/ruby-rspec-expectations/APKBUILD | 40 ++++++++++++++++++++++++++++++ user/ruby-rspec-expectations/gemspec.patch | 12 +++++++++ 2 files changed, 52 insertions(+) create mode 100644 user/ruby-rspec-expectations/APKBUILD create mode 100644 user/ruby-rspec-expectations/gemspec.patch (limited to 'user') 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 +# Maintainer: Dan Theisen +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" -- cgit v1.2.3-70-g09d2