[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Ruby 2.0 support

From: James McCoy <jamessan_at_debian.org>
Date: Mon, 31 Mar 2014 22:38:49 -0400

Ruby 2.0 has a few new RbConfig variables, {ruby,vendor,site}archhdrdir.
At least rubyarchhdrdir needs to be used to correctly locate
ruby/config.h, since it is architecture specific.

The attached patch adapts configure.ac to recognize ruby2.0/rdoc2.0 and
swig.m4 to use rubyarchhdrdir if it's available.

There's some additional work that may be needed in
build/ac-macros/swig.m4 and tools/dev/unix-build/Makefile.svn, as
sitearchdir isn't necessarily a subset of sitedir for ruby >=2.0.

$ ruby1.9.1 -rrbconfig -e 'puts RbConfig::CONFIG["sitearchdir"]'

$ ruby1.9.1 -rrbconfig -e 'puts RbConfig::CONFIG["sitedir"]'

$ ruby2.0 -rrbconfig -e 'puts RbConfig::CONFIG["sitearchdir"]'

$ ruby2.0 -rrbconfig -e 'puts RbConfig::CONFIG["sitedir"]'


GPG Key: 4096R/331BA3DB 2011-12-05 James McCoy <jamessan_at_debian.org>

Received on 2014-04-01 04:39:22 CEST

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.