diff options
Diffstat (limited to 'testing')
-rw-r--r-- | testing/ruby-multi_json/APKBUILD | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/testing/ruby-multi_json/APKBUILD b/testing/ruby-multi_json/APKBUILD new file mode 100644 index 0000000000..4ddbf404d4 --- /dev/null +++ b/testing/ruby-multi_json/APKBUILD @@ -0,0 +1,37 @@ +# Maintainer: Jakub Jirutka <jakub@jirutka.cz> +pkgname=ruby-multi_json +_gemname=multi_json +pkgver=1.11.0 +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 ghostscript-fonts" +depends_dev="ruby-dev" +makedepends="$depends_dev ruby" +install="" +subpackages="" +source="http://gems.rubyforge.org/gems/$_gemname-$pkgver.gem" + +_builddir="$srcdir"/$_realname-$pkgver +build() { + return 0 +} + +package() { + local _gemdir="$(ruby -rubygems -e'puts Gem.default_dir')" + local _geminstdir=$_gemdir/gems/$_gemname-$pkgver + mkdir -p "$pkgdir" || return 1 + + gem install --local --install-dir "$pkgdir"/$_gemdir \ + --ignore-dependencies --verbose --no-rdoc --no-ri \ + "$srcdir"/$_gemname-$pkgver.gem || return 1 + rm -rf "$pkgdir"/$_gemdir/cache \ + "$pkgdir"/$_geminstdir/ext \ + "$pkgdir"/$_geminstdir/.require_paths +} + +md5sums="d9b22b25fd249e2b075cbac2ece6625b multi_json-1.11.0.gem" +sha256sums="b43f3e049cf24e29402e580de816ce1b68e941d180c866879b0b4176c285e3d5 multi_json-1.11.0.gem" +sha512sums="1fed36187753c03b9c77b1f75b4bbeb48d1b91a89888fa76c1179096028a8d71bc5468de440e13a35ffea7883045caa7100a2323c11646ba010355c51462066d multi_json-1.11.0.gem" |