diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2012-10-15 15:01:51 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2012-10-15 15:02:17 +0000 |
commit | 09fb6fdf0c07df034fe46d0c0b7634971dd28ed6 (patch) | |
tree | 1242604bb3796f9882e7e4a1af1181cceac31a58 /main/ruby | |
parent | a0354569cb101e92f0f5c0c0c1b6a2b6df3237eb (diff) | |
download | aports-09fb6fdf0c07df034fe46d0c0b7634971dd28ed6.tar.bz2 aports-09fb6fdf0c07df034fe46d0c0b7634971dd28ed6.tar.xz |
main/ruby: build fix for x86_64
Diffstat (limited to 'main/ruby')
-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 df0c454b73..98f82b4fde 100644 --- a/main/ruby/APKBUILD +++ b/main/ruby/APKBUILD @@ -36,6 +36,12 @@ _builddir="$srcdir/$pkgname-${_pkgver}" _gemdir="/usr/lib/ruby/gems/$_abi" _rubydir="/usr/lib/ruby/$_abi" +_arch=$CARCH +case $CARCH in + x86) _arch=i386;; +esac + + prepare() { cd "$_builddir" for i in $patches; do @@ -67,7 +73,7 @@ build() { --mandir=/usr/share/man \ --infodir=/usr/share/info \ --with-sitedir='/usr/local/lib/site_ruby' \ - --with-search-path='/usr/lib/site_ruby/$(ruby_ver)/i386-linux' \ + --with-search-path="/usr/lib/site_ruby/\$(ruby_ver)/$_arch-linux" \ --enable-pthread \ --disable-rpath \ --enable-shared \ @@ -104,7 +110,7 @@ _mvgem() { cd "$pkgdir" for i in $_rubydir/${1}.rb \ $_rubydir/${1} \ - $_rubydir/i386-linux-uclibc/${1} \ + $_rubydir/$_arch-linux-uclibc/${1} \ $_gemdir/gems/${1}-* \ $_gemdir/specifications/${1}-* ; do [ -e "$pkgdir"/$i ] || continue @@ -156,7 +162,7 @@ io_console() { depends="ruby" _mvgem io-console _mv $_rubydir/io \ - $_rubydir/i386-linux-uclibc/io/console.so + $_rubydir/$_arch-linux-uclibc/io/console.so } json() { |