components/graphviz/patches/ruby-include.patch
changeset 2010 cb03afa45934
equal deleted inserted replaced
2009:9e3663ac841d 2010:cb03afa45934
       
     1 Look in the right place for ruby headers, and silence the warnings about
       
     2 the use of the Config module.
       
     3 
       
     4 This is an in-house patch, and has not been submitted upstream, since the
       
     5 Config->RbConfig change has already been made in a newer version, and the
       
     6 remainder of the changes are Solaris-specific.
       
     7 
       
     8 --- graphviz-2.28.0/config/config_ruby.rb	Fri Feb 18 13:25:56 2011
       
     9 +++ graphviz-2.28.0/config/config_ruby.rb	Tue Jul  1 14:45:16 2014
       
    10 @@ -1,16 +1,16 @@
       
    11  require 'rbconfig'
       
    12  
       
    13 -CONFIG = Config::MAKEFILE_CONFIG
       
    14 +CONFIG = RbConfig::MAKEFILE_CONFIG
       
    15  
       
    16  
       
    17  case ARGV[0]
       
    18  when "INCLUDES"
       
    19 -    puts Config::expand(CONFIG["archdir"])
       
    20 +    puts "#{RbConfig::expand(CONFIG['rubyhdrdir'])} -I#{RbConfig::expand(CONFIG['rubyhdrdir'])}/#{RbConfig::expand(CONFIG['arch'])}"
       
    21  when "lib"
       
    22 -    puts Config::expand(CONFIG["libdir"])
       
    23 +    puts RbConfig::expand(CONFIG["libdir"])
       
    24  when "archsitelib"
       
    25 -    puts Config::expand(CONFIG["sitearchdir"])
       
    26 +    puts RbConfig::expand(CONFIG["vendorarchdir"])
       
    27  when "sitelib"
       
    28 -    puts Config::expand(CONFIG["sitedir"])
       
    29 +    puts RbConfig::expand(CONFIG["vendordir"])
       
    30  end
       
    31