diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2012-10-15 11:13:36 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2012-10-15 14:22:18 +0000 |
commit | 82b3ffbbad8c4d2ff71563a9c8344f29b47d65cd (patch) | |
tree | 2d9ed5d70d5a0e527b75658330ddb2b506c8fb07 /main/ruby-multi_json/APKBUILD | |
parent | 7fdaf8748466bca65c11f725de0f4dfbf7365007 (diff) | |
download | aports-82b3ffbbad8c4d2ff71563a9c8344f29b47d65cd.tar.bz2 aports-82b3ffbbad8c4d2ff71563a9c8344f29b47d65cd.tar.xz |
main/ruby-multi_json: new aport
A gem to provide easy switching between different JSON backends
http://rubygems.org/gems/multi_json
Diffstat (limited to 'main/ruby-multi_json/APKBUILD')
-rw-r--r-- | main/ruby-multi_json/APKBUILD | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/main/ruby-multi_json/APKBUILD b/main/ruby-multi_json/APKBUILD new file mode 100644 index 0000000000..b8cb8b8d41 --- /dev/null +++ b/main/ruby-multi_json/APKBUILD @@ -0,0 +1,35 @@ +# Maintainer: Natanael Copa <ncopa@alpinelinux.org> +pkgname=ruby-multi_json +_gemname=multi_json +pkgver=1.3.6 +pkgrel=3 +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-gems" +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="344cc8470e047250595da068bda4966f multi_json-1.3.6.gem" |