diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2016-04-30 12:40:21 +0200 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2016-05-02 15:33:31 +0200 |
commit | 31cbc49d5cfc3950a7a401cac799c7797ec887dc (patch) | |
tree | c14f33c3675687db6e985918fd72a4326410e63d /main/ruby-bundler/APKBUILD | |
parent | 4bffbe1508fd1a7223ed9734d8bf9b42e860ba4e (diff) | |
download | aports-31cbc49d5cfc3950a7a401cac799c7797ec887dc.tar.bz2 aports-31cbc49d5cfc3950a7a401cac799c7797ec887dc.tar.xz |
unmaintained/ruby-bundler: move back into main and upgrade to 1.12.1
Diffstat (limited to 'main/ruby-bundler/APKBUILD')
-rw-r--r-- | main/ruby-bundler/APKBUILD | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/main/ruby-bundler/APKBUILD b/main/ruby-bundler/APKBUILD new file mode 100644 index 0000000000..12ea96803c --- /dev/null +++ b/main/ruby-bundler/APKBUILD @@ -0,0 +1,45 @@ +# Maintainer: Jakub Jirutka <jakub@jirutka.cz> +_gemname=bundler +pkgname=ruby-$_gemname +pkgver=1.12.1 +pkgrel=0 +pkgdesc="Manage an application's gem dependencies" +url="http://gembundler.com/" +arch="noarch" +license="MIT" +depends="ruby ruby-io-console" +makedepends="" +source="http://gems.rubyforge.org/gems/$_gemname-$pkgver.gem" +builddir="$srcdir"/$_gemname-$pkgver + +build() { + return 0 +} + +package() { + local gemdir="$pkgdir/$(ruby -rubygems -e 'puts Gem.default_dir')" + + mkdir -p "$pkgdir"/usr/bin || return 1 + + gem install --local \ + --install-dir "$gemdir" \ + --ignore-dependencies \ + --no-document \ + --verbose \ + "$srcdir"/$_gemname-$pkgver.gem || return 1 + + rm -rf "$gemdir"/cache \ + "$gemdir"/build_info \ + "$gemdir"/doc + + cd "$pkgdir" + local path; for path in usr/lib/ruby/gems/*/bin/*; do + if [ -f "$path" ]; then + ln -s /$path "$pkgdir"/usr/bin/ || return 1 + fi + done +} + +md5sums="cde53351a0db44d8f90d2ea8bd8e836d bundler-1.12.1.gem" +sha256sums="e3133b1a73d51d7adb9898e24ef07d84e479fb121b8f848320756db222ceaed0 bundler-1.12.1.gem" +sha512sums="a7ffa7ec6a541f404a8b343ab5fc4d69a47d9f702764a3d85eb0e27656283c5e7c90500cfd9ada9805152a0286e91d463d94bc4ec52ad1420409770e6784f1bf bundler-1.12.1.gem" |