summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlyx Wolcott <alyx@malkier.net>2019-07-04 19:16:58 -0500
committerAlyx Wolcott <alyx@malkier.net>2019-07-04 19:16:58 -0500
commit842362c246553f121cc1e18c7e0bc398551850ca (patch)
tree2289215478f9a09af6644d1e714e7a6f90f18a18
parentc0ccd6a4ae6f2f5722da4e97c326abd163a1a56f (diff)
downloadpackages-842362c246553f121cc1e18c7e0bc398551850ca.tar.gz
packages-842362c246553f121cc1e18c7e0bc398551850ca.tar.bz2
packages-842362c246553f121cc1e18c7e0bc398551850ca.tar.xz
packages-842362c246553f121cc1e18c7e0bc398551850ca.zip
user/ruby-bundler: new package
-rw-r--r--user/ruby-bundler/APKBUILD41
1 files changed, 41 insertions, 0 deletions
diff --git a/user/ruby-bundler/APKBUILD b/user/ruby-bundler/APKBUILD
new file mode 100644
index 000000000..d3c470b51
--- /dev/null
+++ b/user/ruby-bundler/APKBUILD
@@ -0,0 +1,41 @@
+# Contributor: Jakub Jirutka <jakub@jirutka.cz>
+# Maintainer: Alyx Wolcott <alyx@leuhta.com>
+_gemname=bundler
+pkgname=ruby-$_gemname
+pkgver=2.0.2
+pkgrel=0
+pkgdesc="Manage an application's gem dependencies"
+url="https://bundler.io/"
+arch="noarch"
+license="MIT"
+depends="ruby ruby-dev"
+subpackages="$pkgname-doc"
+options="!check"
+source="https://rubygems.org/downloads/$_gemname-$pkgver.gem"
+builddir="$srcdir/$_gemname-$pkgver"
+
+package() {
+ local gemdir="$pkgdir/$(ruby -e 'puts Gem.default_dir')"
+
+ gem install --local \
+ --install-dir "$gemdir" \
+ --bindir "$pkgdir/usr/bin" \
+ --ignore-dependencies \
+ --no-document \
+ --verbose \
+ "$srcdir"/$_gemname-$pkgver.gem
+
+ local n; for n in 1 5; do
+ mkdir -p "$pkgdir"/usr/share/man/man$n
+ mv "$gemdir"/gems/$_gemname-$pkgver/man/*.$n "$pkgdir"/usr/share/man/man$n/
+ done
+
+ rm -rf "$gemdir"/cache \
+ "$gemdir"/build_info \
+ "$gemdir"/doc \
+ "$gemdir"/gems/$_gemname-$pkgver/man \
+ "$gemdir"/gems/$_gemname-$pkgver/*.md
+}
+
+
+sha512sums="f41fe9e385fbf42859f3514b71abdaa1fd787f4ff4b1169b8ee40ea7778c114657c60ca3d6d6d72fbe972af0558f0cccd9c9f28cad7fc712ada27f037dce8a6a bundler-2.0.2.gem"