Browse Source

ruby: fixed by using $arch_machine while constructing the path for fixing 'rbconfig.rb'

user/karasz/next/updates
Christian Wiese 14 years ago
parent
commit
50022159dd
  1. 3
      ruby/ruby/ruby.conf

3
ruby/ruby/ruby.conf

@ -33,13 +33,12 @@ var_append makeinstopt ' ' 'install-doc'
pkg_ruby_postmake() {
local ruby_ver="$(echo $ver | cut -d '.' -f-2)"
local platform="$(echo $arch | arch2uname)"
if pkginstalled linux-header; then
local os="linux"
fi
# fixup rbconfig.rb (otherwise the path of our install wrapper leaks in)
sed -i -e "s,\(CONFIG\[\"INSTALL\"\] =\).*,\1 '/usr/bin/install -c'," "$root$libdir/ruby/$ruby_ver/$platform-$os/rbconfig.rb"
sed -i -e "s,\(CONFIG\[\"INSTALL\"\] =\).*,\1 '/usr/bin/install -c'," "$root$libdir/ruby/$ruby_ver/$arch_machine-$os/rbconfig.rb"
}
hook_add postmake 5 'pkg_ruby_postmake'

Loading…
Cancel
Save