diff options
Diffstat (limited to 'main')
-rw-r--r-- | main/ruby/APKBUILD | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/main/ruby/APKBUILD b/main/ruby/APKBUILD index 4f39d61366..460a7dfdba 100644 --- a/main/ruby/APKBUILD +++ b/main/ruby/APKBUILD @@ -3,7 +3,7 @@ pkgname=ruby pkgver=2.0.0_p247 _pkgver=${pkgver/_/-} -pkgrel=0 +pkgrel=1 _abi=2.0.0 @@ -122,7 +122,7 @@ _mvgem() { ./$_rubydir/${1} \ ./$_rubydir/$_arch-linux${_libc}/${1} \ ./$_gemdir/gems/${1}-* \ - ./$_gemdir/specifications/${1}-* ; do + ./$_gemdir/specifications/default/${1}-* ; do [ -e "$pkgdir"/$i ] || continue _mv "$i" done @@ -134,7 +134,7 @@ _rmgem() { ./$_rubydir/${1} \ ./$_rubydir/$_arch-linux${_libc}/${1} \ ./$_gemdir/gems/${1}-* \ - ./$_gemdir/specifications/${1}-* ; do + ./$_gemdir/specifications/default/${1}-* ; do [ -e "$pkgdir"/$i ] && rm -r "$pkgdir/$i" done return 0 @@ -144,6 +144,7 @@ gems() { pkgdesc="The Ruby standard for packaging ruby libraries" replaces="rubygems" depends="ruby" + arch="noarch" _mv usr/bin/gem \ $_rubydir/rubygems \ || return 1 @@ -152,6 +153,7 @@ gems() { rake() { pkgdesc="Ruby based make-like utility" depends="ruby" + arch="noarch" _mvgem rake || return 1 _mv usr/bin/rake } @@ -160,6 +162,7 @@ irb() { pkgdesc="The Interactive Ruby" replaces="ruby" depends="ruby" + arch="noarch" cd "$pkgdir" _mv usr/bin/irb \ usr/lib/ruby/$_abi/irb* @@ -168,6 +171,7 @@ irb() { rdoc() { pkgdesc="Ruby documentation tool" depends="ruby" + arch="noarch" _mvgem rdoc || return 1 _mv usr/bin/ri \ usr/bin/rdoc @@ -176,6 +180,7 @@ rdoc() { bigdecimal() { pkgdesc="Ruby arbitrary-precision floating point decimal arithmetic" depends="ruby" + arch="noarch" _mvgem bigdecimal } @@ -190,6 +195,7 @@ io_console() { minitest() { pkgdesc="Ruby suite of testing facilities" depends="ruby" + arch="noarch" _mvgem minitest } |