[81120] trunk/dports/lang/ruby19/Portfile

kimuraw at macports.org kimuraw at macports.org
Mon Jul 25 15:30:23 PDT 2011


Revision: 81120
          http://trac.macports.org/changeset/81120
Author:   kimuraw at macports.org
Date:     2011-07-25 15:30:23 -0700 (Mon, 25 Jul 2011)
Log Message:
-----------
lang/ruby19: ruby-1.9.x built with clang or llvm-gcc does not work.

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

Modified: trunk/dports/lang/ruby19/Portfile
===================================================================
--- trunk/dports/lang/ruby19/Portfile	2011-07-25 22:27:55 UTC (rev 81119)
+++ trunk/dports/lang/ruby19/Portfile	2011-07-25 22:30:23 UTC (rev 81120)
@@ -4,7 +4,7 @@
 
 name				ruby19
 version				1.9.2-p290
-revision			0
+revision			1
 
 categories			lang ruby
 maintainers			kimuraw openmaintainer
@@ -38,6 +38,18 @@
 					port:libyaml \
 					port:libffi
 
+# ruby-1.9.x 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/6f55bdaa/attachment.html>


More information about the macports-changes mailing list