fda7e2fba6
side by side with the default ruby 1.8 version. OK landry@
48 lines
1.2 KiB
Plaintext
48 lines
1.2 KiB
Plaintext
$OpenBSD: patch-rubynative_configure,v 1.3 2011/07/12 18:06:23 jeremy Exp $
|
|
--- rubynative/configure.orig Mon Dec 24 17:53:40 2007
|
|
+++ rubynative/configure Fri Jul 8 09:01:02 2011
|
|
@@ -1228,8 +1228,6 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
|
|
|
|
|
# Export variables
|
|
-RUBY="ruby"
|
|
-RDOC="rdoc"
|
|
MYRBLIBDIR=/usr/local/lib/ruby/site_ruby
|
|
MYRUNPATH=""
|
|
|
|
@@ -1258,7 +1256,7 @@ fi
|
|
# 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
|
|
|
|
|
|
@@ -1268,24 +1266,8 @@ fi
|
|
#================================================================
|
|
|
|
|
|
-# Ruby interpreter
|
|
-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
|
|
-printf '%s\n' "$RDOC"
|
|
-
|
|
# Librarh path
|
|
-myrblibdir=`ruby -rrbconfig -e 'puts(Config::CONFIG.fetch("sitelibdir"))'`
|
|
+myrblibdir=`$RUBY -rrbconfig -e 'puts(Config::CONFIG.fetch("sitearchdir"))'`
|
|
if test -n "$myrblibdir"
|
|
then
|
|
MYRBLIBDIR="$myrblibdir"
|