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

Ryan Schmidt ryandesign at macports.org
Sat Jan 1 18:54:56 PST 2011


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
> 
> Modified Paths:
> --------------
>    trunk/dports/ruby/rb-rcairo/Portfile
> 
> Modified: trunk/dports/ruby/rb-rcairo/Portfile
> ===================================================================
> --- trunk/dports/ruby/rb-rcairo/Portfile	2010-12-30 16:48:28 UTC (rev 74718)
> +++ trunk/dports/ruby/rb-rcairo/Portfile	2010-12-30 17:14:22 UTC (rev 74719)
> @@ -1,9 +1,11 @@
> # $Id$
> 
> PortSystem		1.0
> +PortGroup		muniversal 1.0
> PortGroup		ruby 1.0
> 
> ruby.setup		rcairo 1.10.0 extconf.rb {README.rdoc COPYING GPL samples doc}
> +revision		1
> maintainers		kimuraw
> description		Ruby bindings for cairo
> long_description \
> @@ -24,6 +26,16 @@
> master_sites    http://cairographics.org/releases/
> license			Ruby
> 
> +# 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?





More information about the macports-dev mailing list