Modified: trunk/dports/ruby/rb-rcairo/Portfile (74718 => 74719)
--- 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"
+ }
+ }
+}
+
test.env-append PKG_CONFIG=${prefix}/bin/pkg-config
test.run yes
test.dir ${worksrcpath}