[58818] trunk/dports/ruby/rb-cocoa

kimuraw at macports.org kimuraw at macports.org
Mon Oct 5 15:31:15 PDT 2009


Revision: 58818
          http://trac.macports.org/changeset/58818
Author:   kimuraw at macports.org
Date:     2009-10-05 15:31:11 -0700 (Mon, 05 Oct 2009)
Log Message:
-----------
ruby/rb-cocoa: fix #21856,
  build fails when -arch is not given for ruby or build_arch

Modified Paths:
--------------
    trunk/dports/ruby/rb-cocoa/Portfile

Added Paths:
-----------
    trunk/dports/ruby/rb-cocoa/files/patch-pre-config.rb.diff

Modified: trunk/dports/ruby/rb-cocoa/Portfile
===================================================================
--- trunk/dports/ruby/rb-cocoa/Portfile	2009-10-05 21:54:05 UTC (rev 58817)
+++ trunk/dports/ruby/rb-cocoa/Portfile	2009-10-05 22:31:11 UTC (rev 58818)
@@ -27,6 +27,8 @@
 patchfiles-append	patch-ext-rubycocoa-extconf.rb.in.diff
 # fix some errors 1.0.0 on Snow Leopard (1.0.0 to r2258)
 patchfiles-append	patch-r2258.diff
+# fix #21856: build fails when -arch is not given for ruby
+patchfiles-append	patch-pre-config.rb.diff
 
 configure.args		--install-prefix=${destroot}${prefix} \
 					--install-root=${destroot} \

Added: trunk/dports/ruby/rb-cocoa/files/patch-pre-config.rb.diff
===================================================================
--- trunk/dports/ruby/rb-cocoa/files/patch-pre-config.rb.diff	                        (rev 0)
+++ trunk/dports/ruby/rb-cocoa/files/patch-pre-config.rb.diff	2009-10-05 22:31:11 UTC (rev 58818)
@@ -0,0 +1,13 @@
+Index: pre-config.rb
+===================================================================
+--- pre-config.rb	(revision 2267)
++++ pre-config.rb	(working copy)
+@@ -82,7 +82,7 @@
+ config_ary << [ :other_cflags, cflags ]
+ config_ary << [ :other_ldflags, ldflags ]
+ config_ary << [ :target_archs, archs.size > 0 ? archs : '$NATIVE_ARCH' ]
+-config_ary << [ :arch_flags, arch_flags ]
++config_ary << [ :arch_flags, archs.size > 0 ? arch_flags : '' ]
+ 
+ target_files.each do |dst_name|
+   src_name = dst_name + '.in'
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20091005/877977db/attachment.html>


More information about the macports-changes mailing list