source: trunk/dports/ruby/rb-hyperestraier/files/patch-rubynative-configure.diff @ 106576

Last change on this file since 106576 was 106576, checked in by kimuraw@…, 7 years ago

ruby/rb-hyperestraier: upgrade to 1.4.13, fix build error with ruby-1.8.7 or later

File size: 1.2 KB
  • configure

    old new  
    12281228
    12291229
    12301230# Export variables
    1231 RUBY="ruby"
    1232 RDOC="rdoc"
     1231#RUBY="ruby"
     1232#RDOC="rdoc"
    12331233MYRBLIBDIR=/usr/local/lib/ruby/site_ruby
    12341234MYRUNPATH=""
    12351235
     
    12581258# Setting the default prefix
    12591259if test "$prefix" = NONE
    12601260then
    1261   prefix=`ruby -rrbconfig -e 'puts(Config::CONFIG.fetch("prefix"))'`
     1261  prefix=`$RUBY -rrbconfig -e 'puts(Config::CONFIG.fetch("prefix"))'`
    12621262fi
    12631263
    12641264
     
    12691269
    12701270
    12711271# Ruby interpreter
    1272 printf 'checking RUBY... '
    1273 if which ruby > /dev/null
    1274 then
    1275   RUBY=`which ruby`
    1276 fi
     1272#printf 'checking RUBY... '
     1273#if which ruby > /dev/null
     1274#then
     1275#  RUBY=`which ruby`
     1276#fi
    12771277printf '%s\n' "$RUBY"
    12781278
    12791279# Other building tools
    12801280printf 'checking RDOC... '
    1281 if which rdoc > /dev/null
    1282 then
    1283   RDOC=`which rdoc`
    1284 fi
     1281#if which rdoc > /dev/null
     1282#then
     1283#  RDOC=`which rdoc`
     1284#fi
    12851285printf '%s\n' "$RDOC"
    12861286
    12871287# Librarh path
    1288 myrblibdir=`ruby -rrbconfig -e 'puts(Config::CONFIG.fetch("sitelibdir"))'`
     1288myrblibdir=`$RUBY -rrbconfig -e 'puts(Config::CONFIG.fetch("vendorarchdir"))'`
    12891289if test -n "$myrblibdir"
    12901290then
    12911291  MYRBLIBDIR="$myrblibdir"
Note: See TracBrowser for help on using the repository browser.