summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2012-10-25 20:41:05 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2012-10-25 20:41:05 +0000
commit9545c8c62b672cd6a488971165ee6e91ca00fc33 (patch)
tree0fdfc3743ef0509af3bf226f6f400e0819b137b4
parentcbc9203910b48541b0d9b01a12dc81ff75bba679 (diff)
downloadaports-9545c8c62b672cd6a488971165ee6e91ca00fc33.tar.bz2
aports-9545c8c62b672cd6a488971165ee6e91ca00fc33.tar.xz
main/ruby: unbundle ruby-json
redmine/rails wants new version than bundled with ruby but version number is lower (1.7.5) so the bundled version would be preferred by apk-tools.
-rw-r--r--main/ruby/APKBUILD34
1 files changed, 21 insertions, 13 deletions
diff --git a/main/ruby/APKBUILD b/main/ruby/APKBUILD
index ef39ae031..8020b7037 100644
--- a/main/ruby/APKBUILD
+++ b/main/ruby/APKBUILD
@@ -3,7 +3,7 @@
pkgname=ruby
pkgver=1.9.3_p286
_pkgver=${pkgver/_/-}
-pkgrel=1
+pkgrel=2
_abi=1.9.1
@@ -17,7 +17,7 @@ makedepends="zlib-dev openssl-dev libiconv-dev gdbm-dev db-dev readline-dev
autoconf"
subpackages="$pkgname-doc $pkgname-dev $pkgname-irb $pkgname-gems \
$pkgname-rdoc $pkgname-rake $pkgname-bigdecimal
- $pkgname-io-console:io_console $pkgname-json $pkgname-minitest
+ $pkgname-io-console:io_console $pkgname-minitest
$pkgname-libs
"
patches="
@@ -95,6 +95,8 @@ package() {
fi
install -Dm644 COPYING \
"${pkgdir}/usr/share/licenses/${pkgname}"/COPYING || return 1
+ # unbundle
+ _rmgem json
}
_mv() {
@@ -107,16 +109,28 @@ _mv() {
_mvgem() {
cd "$pkgdir"
- for i in $_rubydir/${1}.rb \
- $_rubydir/${1} \
- $_rubydir/$_arch-linux-uclibc/${1} \
- $_gemdir/gems/${1}-* \
- $_gemdir/specifications/${1}-* ; do
+ for i in ./$_rubydir/${1}.rb \
+ ./$_rubydir/${1} \
+ ./$_rubydir/$_arch-linux-uclibc/${1} \
+ ./$_gemdir/gems/${1}-* \
+ ./$_gemdir/specifications/${1}-* ; do
[ -e "$pkgdir"/$i ] || continue
_mv "$i"
done
}
+_rmgem() {
+ cd "$pkgdir"
+ for i in ./$_rubydir/${1}.rb \
+ ./$_rubydir/${1} \
+ ./$_rubydir/$_arch-linux-uclibc/${1} \
+ ./$_gemdir/gems/${1}-* \
+ ./$_gemdir/specifications/${1}-* ; do
+ [ -e "$pkgdir"/$i ] && rm -r "$pkgdir/$i"
+ done
+ return 0
+}
+
gems() {
pkgdesc="The Ruby standard for packaging ruby libraries"
replaces="rubygems"
@@ -164,12 +178,6 @@ io_console() {
$_rubydir/$_arch-linux-uclibc/io/console.so
}
-json() {
- pkgdesc="Ruby JSON library"
- depends="ruby"
- _mvgem json
-}
-
minitest() {
pkgdesc="Ruby suite of testing facilities"
depends="ruby"