aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorAdam Vandenberg2012-06-27 16:27:20 -0700
committerAdam Vandenberg2012-06-27 16:27:20 -0700
commit6f0358b1d8d201b4b3ab4650f569c3c70352c096 (patch)
tree9d49c95ec5c0628f267385a6acfd6a04a3d4b335 /Library/Formula
parent4eeb1dae768051d88d981feb48ccf4c82c3cf1d0 (diff)
downloadhomebrew-6f0358b1d8d201b4b3ab4650f569c3c70352c096.tar.bz2
ice fails with clang
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/ice.rb25
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|