summaryrefslogtreecommitdiff
path: root/user/ruby-rspec/APKBUILD
diff options
context:
space:
mode:
authorA. Wilcox <awilcox@wilcox-tech.com>2019-05-06 18:56:08 +0000
committerA. Wilcox <awilcox@wilcox-tech.com>2019-05-06 18:56:08 +0000
commit7bcb34d24ee80b914b14de055ab8b0560e87e7fd (patch)
treec7ab58ec15a0c0b487d9e60bb55fab78038723ba /user/ruby-rspec/APKBUILD
parentaee6b0728a06a07700b2473cdeca06cb12fa8a81 (diff)
parentdef4421a968a5b75dd87fa986956bf10dc7921ca (diff)
downloadpackages-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/APKBUILD')
-rw-r--r--user/ruby-rspec/APKBUILD43
1 files changed, 43 insertions, 0 deletions
diff --git a/user/ruby-rspec/APKBUILD b/user/ruby-rspec/APKBUILD
new file mode 100644
index 000000000..7c6f5ef10
--- /dev/null
+++ b/user/ruby-rspec/APKBUILD
@@ -0,0 +1,43 @@
+# Contributor: Jakub Jirutka <jakub@jirutka.cz>
+# Maintainer: Dan Theisen <djt@hxx.in>
+pkgname=ruby-rspec
+_gemname=${pkgname#ruby-}
+pkgver=3.8.0
+pkgrel=0
+pkgdesc="Behaviour Driven Development for Ruby"
+url="http://rspec.info/"
+arch="noarch"
+options="!check" # no tests provided
+license="MIT"
+depends="ruby
+ ruby-rspec-core~=${pkgver%.*}
+ ruby-rspec-expectations~=${pkgver%.*}
+ ruby-rspec-mocks~=${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="0468bfab40de2acb622c772101aef7cc71364c3414344848e90a91376106ae7597d0abcdacebe3a9fad6140780008619d9450bc0842b6e5c9e95bafb9fccae9b ruby-rspec-3.8.0.tar.gz
+f554eef881574e68532dd6c9edeb6b8ad172ac707f7518134378e1099a40ada959c6c770514aab13a6345343113594208be0e42044803c0c2cde3adde00c5520 gemspec.patch"