aboutsummaryrefslogtreecommitdiffstats
path: root/community/ruby-rspec-support/APKBUILD
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2017-12-25 23:50:25 +0100
committerJakub Jirutka <jakub@jirutka.cz>2017-12-25 23:50:25 +0100
commit3297d634f4371b930eba14293bc829b9c4a5150e (patch)
tree2198f7bd88fa2d064f4a92746f7f46fdd065fb03 /community/ruby-rspec-support/APKBUILD
parent94f91d25906569a622b1bdbd61766449230daa27 (diff)
downloadaports-3297d634f4371b930eba14293bc829b9c4a5150e.tar.bz2
aports-3297d634f4371b930eba14293bc829b9c4a5150e.tar.xz
community/ruby-rspec*: move from testing
Diffstat (limited to 'community/ruby-rspec-support/APKBUILD')
-rw-r--r--community/ruby-rspec-support/APKBUILD40
1 files changed, 40 insertions, 0 deletions
diff --git a/community/ruby-rspec-support/APKBUILD b/community/ruby-rspec-support/APKBUILD
new file mode 100644
index 0000000000..327542cd66
--- /dev/null
+++ b/community/ruby-rspec-support/APKBUILD
@@ -0,0 +1,40 @@
+# Contributor: Jakub Jirutka <jakub@jirutka.cz>
+# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
+pkgname=ruby-rspec-support
+_gemname=${pkgname#ruby-}
+pkgver=3.7.0
+pkgrel=0
+pkgdesc="Support utilities for RSpec gems"
+url="https://relishapp.com/rspec/rspec-support/"
+arch="noarch"
+license="MIT"
+depends="ruby"
+options="!check" # rspec's tests are written in rspec
+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 -rubygems -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="a4a3fc705d4c31d760777513f86d8b0ca4c9e540b0a6f4b6d1152676f252e1276fedebe7cd259f0dbbb60b447cc179eea194f3a3e5bb023907923cbf16fc8033 ruby-rspec-support-3.7.0.tar.gz
+e9d611ea1789e835f742aa92f1e668840139e2621898edf158dc53e111db4119a324da65d2d28f5c6e737c82f261f4adb3beb8c244ee01d2f618778ed62d3731 gemspec.patch"