[74719] trunk/dports/ruby/rb-rcairo/Portfile

kimura wataru kimuraw at macports.org
Thu Jan 6 07:49:44 PST 2011


Hi,

It's a quick hack to fix #27804.
As you say, we should support this feature in portgroup ruby.

FYI, ruby19 (1.9.2 or later) supports building universal binaries 
by its extconf.rb/mkmf.rb system.  most of libraries and gems
work fine as universal with ruby19+universal.

On Sat, 1 Jan 2011 20:54:56 -0600, Ryan Schmidt wrote:
> On Dec 30, 2010, at 11:14, kimuraw at macports.org wrote:
> 
>> Revision: 74719
>>          http://trac.macports.org/changeset/74719
>> Author:   kimuraw at macports.org
>> Date:     2010-12-30 09:14:22 -0800 (Thu, 30 Dec 2010)
>> Log Message:
>> -----------
>> ruby/rb-rcairo: enable universal variant
>> 

>> +# run extconf.rb with each arch `ruby'
>> +use_parallel_build	no
>> +post-configure {
>> +	if {[variant_isset universal]} {
>> +		foreach arch ${universal_archs} {
>> +			system "/usr/bin/arch -arch ${arch} ${ruby.bin} -C 
>> ${worksrcpath}-${arch}/ext/cairo extconf.rb --vendor"
>> +		}
>> +	}
>> +}
> 
> I've seen you add this chunk of code to several ruby ports now. Is 
> this something that is applicable to all ruby ports? if so, should it 
> go into the ruby portgroup instead of into each portfile?
> 
-- 
kimura wataru


More information about the macports-dev mailing list