Commit 9f77dfc4 by Mislav Marohnić

Merge pull request #433 from sstephenson/rbx-fix

Fix Rubinius gem binstubs path
parents f859d9a3 dbd8c71d
......@@ -438,6 +438,7 @@ build_package_rbx() {
{ bundle
./configure --prefix="$PREFIX_PATH" $RUBY_CONFIGURE_OPTS
rake install
fix_rbx_gem_binstubs "$PREFIX_PATH"
} >&4 2>&1
}
......@@ -523,6 +524,20 @@ fix_directory_permissions() {
find "$PREFIX_PATH" -type d \( -perm -020 -o -perm -002 \) -exec chmod go-w {} \;
}
fix_rbx_gem_binstubs() {
local prefix="$1"
local gemdir="${prefix}/gems/bin"
local bindir="${prefix}/bin"
# Symlink Rubinius' `gems/bin/` into `bin/`
if [ -d "$gemdir" ]; then
for file in "$gemdir"/*; do
[ -x "$file" ] && mv "$file" "$bindir"
done
rm -rf "$gemdir"
ln -s ../bin "$gemdir"
fi
}
require_gcc() {
local gcc="$(locate_gcc || true)"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment