summaryrefslogtreecommitdiff
path: root/user/ruby-reline/APKBUILD
diff options
context:
space:
mode:
authorZach van Rijn <me@zv.io>2021-10-16 01:12:16 +0000
committerZach van Rijn <me@zv.io>2021-10-16 01:12:16 +0000
commit6ca2ba5c92a7b0679a552725678a40ed5eb4ded5 (patch)
treeddc300a108dc4d10ed5ed0188175f54452e8bb0e /user/ruby-reline/APKBUILD
parentaa90e62ce757fa863685f44ce23f129f56b3225f (diff)
parentc0f3f757abe6ea39579119b99e9996c4e2bf0e11 (diff)
downloadpackages-6ca2ba5c92a7b0679a552725678a40ed5eb4ded5.tar.gz
packages-6ca2ba5c92a7b0679a552725678a40ed5eb4ded5.tar.bz2
packages-6ca2ba5c92a7b0679a552725678a40ed5eb4ded5.tar.xz
packages-6ca2ba5c92a7b0679a552725678a40ed5eb4ded5.zip
Merge branch 'master' into 'awilfox/bump/2021-09-system-abipreserve'
# Conflicts: # system/curl/APKBUILD
Diffstat (limited to 'user/ruby-reline/APKBUILD')
-rw-r--r--user/ruby-reline/APKBUILD41
1 files changed, 41 insertions, 0 deletions
diff --git a/user/ruby-reline/APKBUILD b/user/ruby-reline/APKBUILD
new file mode 100644
index 000000000..0230e3c67
--- /dev/null
+++ b/user/ruby-reline/APKBUILD
@@ -0,0 +1,41 @@
+# Contributor: Dan Theisen <djt@hxx.in>
+# Maintainer: Dan Theisen <djt@hxx.in>
+pkgname=ruby-reline
+_gemname=${pkgname#ruby-}
+pkgver=0.2.7
+pkgrel=0
+pkgdesc="Reline is compatible with the API of Ruby's stdlib 'readline', GNU Readline and Editline"
+url="https://github.com/ruby/reline"
+arch="all"
+license="BSD-2-Clause"
+depends="ruby"
+checkdepends="ruby-rspec"
+makedepends="ruby-rake"
+source="ruby-reline-$pkgver.tar.gz::https://github.com/ruby/$_gemname/archive/refs/tags/v$pkgver.tar.gz"
+builddir="$srcdir/$_gemname-$pkgver"
+
+build() {
+ gem build $_gemname.gemspec
+}
+
+check() {
+ rspec spec
+}
+
+package() {
+ gemdir="$pkgdir/$(ruby -e 'puts Gem.default_dir')"
+
+ gem install --local \
+ --install-dir "$gemdir" \
+ --bindir "$pkgdir/usr/bin" \
+ --ignore-dependencies \
+ --no-document \
+ --verbose \
+ $_gemname
+
+ # Remove unnecessary files and empty directories.
+ cd "$gemdir"
+ rm -r cache build_info doc
+}
+
+sha512sums="3543207d79a9cb5293cefb4771a5d30bfa158915f2ba84db1cd04b1c89b21288542e52a2e43e2ca057bad91c926052dc3ba404319a5eb4044ab054b6c3cab465 ruby-reline-0.2.7.tar.gz"