Files
macports-ports/ruby/rb-hyperestraier/files/patch-rubynative-configure.diff

57 lines
1.2 KiB
Diff

--- ../../hyperestraier-1.4.13.org/rubynative/configure 2007-12-25 10:53:40.000000000 +0900
+++ configure 2013-05-31 14:59:00.000000000 +0900
@@ -1228,8 +1228,8 @@
# Export variables
-RUBY="ruby"
-RDOC="rdoc"
+#RUBY="ruby"
+#RDOC="rdoc"
MYRBLIBDIR=/usr/local/lib/ruby/site_ruby
MYRUNPATH=""
@@ -1258,7 +1258,7 @@
# Setting the default prefix
if test "$prefix" = NONE
then
- prefix=`ruby -rrbconfig -e 'puts(Config::CONFIG.fetch("prefix"))'`
+ prefix=`$RUBY -rrbconfig -e 'puts(Config::CONFIG.fetch("prefix"))'`
fi
@@ -1269,23 +1269,23 @@
# Ruby interpreter
-printf 'checking RUBY... '
-if which ruby > /dev/null
-then
- RUBY=`which ruby`
-fi
+#printf 'checking RUBY... '
+#if which ruby > /dev/null
+#then
+# RUBY=`which ruby`
+#fi
printf '%s\n' "$RUBY"
# Other building tools
printf 'checking RDOC... '
-if which rdoc > /dev/null
-then
- RDOC=`which rdoc`
-fi
+#if which rdoc > /dev/null
+#then
+# RDOC=`which rdoc`
+#fi
printf '%s\n' "$RDOC"
# Librarh path
-myrblibdir=`ruby -rrbconfig -e 'puts(Config::CONFIG.fetch("sitelibdir"))'`
+myrblibdir=`$RUBY -rrbconfig -e 'puts(Config::CONFIG.fetch("vendorarchdir"))'`
if test -n "$myrblibdir"
then
MYRBLIBDIR="$myrblibdir"