Annotation of pkgsrc/databases/sqlrelay/patches/patch-src_api_ruby_getsitearchdir.rb, revision 1.2

1.2     ! fhajny      1: $NetBSD: patch-src_api_ruby_getsitearchdir.rb,v 1.1 2015/05/20 13:26:45 ryoon Exp $
1.1       ryoon       2: 
                      3: * Fix Ruby 2.2 build.
                      4: 
1.2     ! fhajny      5: --- src/api/ruby/getsitearchdir.rb.orig        2015-08-15 00:27:59.000000000 +0000
1.1       ryoon       6: +++ src/api/ruby/getsitearchdir.rb
1.2     ! fhajny      7: @@ -1,35 +1,35 @@
1.1       ryoon       8:  require "mkmf"
                      9:  drive = File::PATH_SEPARATOR == ";" ? /\A\w:/ : /\A/
                     10:  print "arch = "
                     11: -print CONFIG["arch"]
                     12: +print RbConfig::CONFIG["arch"]
                     13:  print "\n"
                     14:  print "sitearch = "
                     15: -print CONFIG["sitearch"]
                     16: +print RbConfig::CONFIG["sitearch"]
                     17:  print "\n"
                     18:  print "ruby_version = "
1.2     ! fhajny     19:  begin
1.1       ryoon      20: -print Config::CONFIG["ruby_version"]
                     21: +print RbConfig::CONFIG["ruby_version"]
1.2     ! fhajny     22:  rescue
        !            23: -print CONFIG["ruby_version"]
        !            24: +print RbConfig::CONFIG["ruby_version"]
        !            25:  end
1.1       ryoon      26:  print "\n"
                     27:  print "prefix = "
                     28: -print CONFIG["prefix"].sub(drive, "").sub("$(DESTDIR)","")
                     29: +print RbConfig::CONFIG["prefix"].sub(drive, "").sub("$(DESTDIR)","")
                     30:  print "\n"
                     31:  print "exec_prefix = "
                     32: -print CONFIG["exec_prefix"].sub(drive, "").sub("$(DESTDIR)","")
                     33: +print RbConfig::CONFIG["exec_prefix"].sub(drive, "").sub("$(DESTDIR)","")
                     34:  print "\n"
                     35:  print "libdir = "
                     36:  print $libdir.sub(drive, "").sub("$(DESTDIR)","")
1.2     ! fhajny     37:  print "\n"
        !            38: -if CONFIG["RUBY_BASE_NAME"]!=nil then
        !            39: +if RbConfig::CONFIG["RUBY_BASE_NAME"]!=nil then
        !            40:        print "RUBY_BASE_NAME = "
        !            41: -      print CONFIG["RUBY_BASE_NAME"]
        !            42: +      print RbConfig::CONFIG["RUBY_BASE_NAME"]
        !            43:        print "\n"
        !            44:  end
        !            45: -if CONFIG["rubylibprefix"]!=nil then
        !            46: +if RbConfig::CONFIG["rubylibprefix"]!=nil then
        !            47:        print "rubylibprefix = "
        !            48: -      print CONFIG["rubylibprefix"].sub(drive, "").sub("$(DESTDIR)","")
        !            49: +      print RbConfig::CONFIG["rubylibprefix"].sub(drive, "").sub("$(DESTDIR)","")
        !            50:        print "\n"
        !            51:  end
        !            52:  print "rubylibdir = "

CVSweb <webmaster@jp.NetBSD.org>