diff options
author | Carlo Landmeter <clandmeter@gmail.com> | 2013-01-05 00:00:40 +0100 |
---|---|---|
committer | Carlo Landmeter <clandmeter@gmail.com> | 2013-01-05 00:00:40 +0100 |
commit | 8e20547a98ce1ce0b63be8a47140883c117f5cc3 (patch) | |
tree | 67a36fca51ab0438772aca73a42fef32973d05fe | |
parent | 98a2bb1158a766de71d61b9eb007597a10ea39d4 (diff) | |
download | aports-8e20547a98ce1ce0b63be8a47140883c117f5cc3.tar.bz2 aports-8e20547a98ce1ce0b63be8a47140883c117f5cc3.tar.xz |
main/ruby: add support for eglibc
-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() { |