diff options
-rw-r--r-- | main/ruby/APKBUILD | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/main/ruby/APKBUILD b/main/ruby/APKBUILD index 44ba0b134f..9dc809f430 100644 --- a/main/ruby/APKBUILD +++ b/main/ruby/APKBUILD @@ -13,8 +13,7 @@ arch="all" license="Ruby" depends="" makedepends="zlib-dev openssl-dev libiconv-dev gdbm-dev db-dev readline-dev - libffi-dev coreutils yaml-dev - autoconf" + libffi-dev coreutils yaml-dev autoconf" subpackages="$pkgname-doc $pkgname-dev $pkgname-irb $pkgname-gems \ $pkgname-rdoc $pkgname-rake $pkgname-bigdecimal $pkgname-io-console:io_console $pkgname-minitest @@ -34,6 +33,7 @@ options="!fhs" _builddir="$srcdir/$pkgname-${_pkgver}" _gemdir="/usr/lib/ruby/gems/$_abi" _rubydir="/usr/lib/ruby/$_abi" +[ "$ALPINE_LIBC" != "eglibc" ] && _libc="-uclibc" _arch=$CARCH case $CARCH in @@ -111,7 +111,7 @@ _mvgem() { cd "$pkgdir" for i in ./$_rubydir/${1}.rb \ ./$_rubydir/${1} \ - ./$_rubydir/$_arch-linux-uclibc/${1} \ + ./$_rubydir/$_arch-linux${_libc}/${1} \ ./$_gemdir/gems/${1}-* \ ./$_gemdir/specifications/${1}-* ; do [ -e "$pkgdir"/$i ] || continue @@ -123,7 +123,7 @@ _rmgem() { cd "$pkgdir" for i in ./$_rubydir/${1}.rb \ ./$_rubydir/${1} \ - ./$_rubydir/$_arch-linux-uclibc/${1} \ + ./$_rubydir/$_arch-linux${_libc}/${1} \ ./$_gemdir/gems/${1}-* \ ./$_gemdir/specifications/${1}-* ; do [ -e "$pkgdir"/$i ] && rm -r "$pkgdir/$i" @@ -175,7 +175,7 @@ io_console() { depends="ruby" _mvgem io-console _mv $_rubydir/io \ - $_rubydir/$_arch-linux-uclibc/io/console.so + $_rubydir/$_arch-linux${_libc}/io/console.so } minitest() { |