diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2017-04-03 01:03:49 +0200 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2017-04-03 01:03:49 +0200 |
commit | 28ab446a5f96e246d50251fb31d2aa4e831c6e42 (patch) | |
tree | 37305bc6b698db0b503cd60ba4f8f14fd573243e /community/ruby-multi_json | |
parent | 64a2d6243471cee6a4151768f8ef4ca556ba2402 (diff) | |
download | aports-28ab446a5f96e246d50251fb31d2aa4e831c6e42.tar.bz2 aports-28ab446a5f96e246d50251fb31d2aa4e831c6e42.tar.xz |
community/ruby-multi_json: move from testing
This gem is needed for ruby-pygments.
Diffstat (limited to 'community/ruby-multi_json')
-rw-r--r-- | community/ruby-multi_json/APKBUILD | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/community/ruby-multi_json/APKBUILD b/community/ruby-multi_json/APKBUILD new file mode 100644 index 0000000000..6da59a5d17 --- /dev/null +++ b/community/ruby-multi_json/APKBUILD @@ -0,0 +1,42 @@ +# Maintainer: Jakub Jirutka <jakub@jirutka.cz> +pkgname=ruby-multi_json +_gemname=${pkgname#ruby-} +pkgver=1.12.1 +pkgrel=0 +pkgdesc="A gem to provide easy switching between different JSON backends" +url="http://rubygems.org/gems/multi_json" +arch="noarch" +license="custom" +depends="ruby" +source="$pkgname-$pkgver.tar.gz::https://github.com/intridea/$_gemname/archive/v$pkgver.tar.gz" +builddir="$srcdir/$_gemname-$pkgver" + +prepare() { + default_prepare + + cd "$builddir" + sed -i '/spec.signing_key/d' $_gemname.gemspec +} + +build() { + cd "$builddir" + gem build $_gemname.gemspec +} + +package() { + local gemdir="$pkgdir/$(ruby -rubygems -e 'puts Gem.default_dir')" + local geminstdir="$gemdir/gems/$_gemname-$pkgver" + + cd "$builddir" + + gem install --local \ + --install-dir "$gemdir" \ + --ignore-dependencies \ + --no-document \ + --verbose \ + $_gemname + + rm "$geminstdir"/*.md +} + +sha512sums="f61e500197c5a1373443b308bd9307238c54d2d23ba9da91843c667c12e491f34fd87575028c3630a81a7355d4903344996f20408bbb7971b12dfba3cc4f76df ruby-multi_json-1.12.1.tar.gz" |