diff options
| author | Adam Vandenberg | 2012-06-27 16:27:20 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2012-06-27 16:27:20 -0700 |
| commit | 6f0358b1d8d201b4b3ab4650f569c3c70352c096 (patch) | |
| tree | 9d49c95ec5c0628f267385a6acfd6a04a3d4b335 /Library/Formula | |
| parent | 4eeb1dae768051d88d981feb48ccf4c82c3cf1d0 (diff) | |
| download | homebrew-6f0358b1d8d201b4b3ab4650f569c3c70352c096.tar.bz2 | |
ice fails with clang
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/ice.rb | 25 |
1 files changed, 22 insertions, 3 deletions
diff --git a/Library/Formula/ice.rb b/Library/Formula/ice.rb index 24517247f..c8abe7cf6 100644 --- a/Library/Formula/ice.rb +++ b/Library/Formula/ice.rb @@ -1,15 +1,21 @@ require 'formula' class Ice < Formula - url 'http://www.zeroc.com/download/Ice/3.4/Ice-3.4.1.tar.gz' homepage 'http://www.zeroc.com' + url 'http://www.zeroc.com/download/Ice/3.4/Ice-3.4.1.tar.gz' md5 '3aae42aa47dec74bb258c1a1b2847a1a' depends_on 'berkeley-db' depends_on 'mcpp' - # Patch for Ice-3.4.1 to work with Berkely DB 5.X. - def patches; DATA; end + # * compile against Berkely DB 5.X + # * use our selected compiler + def patches + [ + "https://trac.macports.org/export/94734/trunk/dports/devel/ice-cpp/files/patch-ice.cpp.config.Make.rules.Darwin.diff", + DATA + ] + end def options [ @@ -18,6 +24,19 @@ class Ice < Formula ] end + # See: + # http://www.zeroc.com/forums/bug-reports/4965-slice2cpp-output-does-not-compile-standards-conformant-compiler.html + fails_with :clang do + build 318 + cause <<-EOS.undent + In file included from BuiltinSequences.cpp:23: + In file included from ../../include/Ice/BuiltinSequences.h:30: + ../../include/Ice/Stream.h:545:19: error: invalid use of incomplete type 'Ice::MarshalException' + throw MarshalException(__FILE__, __LINE__, "enumerator out of range"); + (and many other errors) + EOS + end + def install ENV.O2 inreplace "cpp/config/Make.rules" do |s| |
