aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2012-10-15 11:13:36 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2012-10-15 14:22:18 +0000
commit82b3ffbbad8c4d2ff71563a9c8344f29b47d65cd (patch)
tree2d9ed5d70d5a0e527b75658330ddb2b506c8fb07
parent7fdaf8748466bca65c11f725de0f4dfbf7365007 (diff)
downloadaports-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
-rw-r--r--main/ruby-multi_json/APKBUILD35
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"