[81110] trunk/dports/lang/ruby/Portfile

kimuraw at macports.org kimuraw at macports.org
Mon Jul 25 11:19:16 PDT 2011


Revision: 81110
          http://trac.macports.org/changeset/81110
Author:   kimuraw at macports.org
Date:     2011-07-25 11:19:15 -0700 (Mon, 25 Jul 2011)
Log Message:
-----------
lang/ruby: fix #30275, ruby built with clang or llvm-gcc does not work.

Modified Paths:
--------------
    trunk/dports/lang/ruby/Portfile

Modified: trunk/dports/lang/ruby/Portfile
===================================================================
--- trunk/dports/lang/ruby/Portfile	2011-07-25 18:08:18 UTC (rev 81109)
+++ trunk/dports/lang/ruby/Portfile	2011-07-25 18:19:15 UTC (rev 81110)
@@ -5,7 +5,7 @@
 
 name			ruby
 version			1.8.7-p352
-revision		0
+revision		1
 
 categories		lang ruby
 maintainers		kimuraw
@@ -55,6 +55,18 @@
 
 use_parallel_build		no
 
+# #30275: ruby built with clang or llvm-gcc does not work
+# see list "MacPorts on Lion (common issues, fixes, and workarounds)"
+# http://lists.macosforge.org/pipermail/macports-dev/2011-July/015263.html
+if {${configure.compiler} == "clang" ||
+    ${configure.compiler} == "llvm-gcc-4.2"} {
+    configure.compiler gcc-4.2
+    if {![file executable ${configure.cc}]} {
+        depends_build-append port:apple-gcc42
+        configure.compiler apple-gcc-4.2
+    }
+}
+
 configure.args	--enable-shared \
 				--mandir="${prefix}/share/man" \
 				--enable-pthread \
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110725/743024c0/attachment.html>


More information about the macports-changes mailing list