From a8d228d1ae2146e14de61d070fdcced858da96c5 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Mon, 14 May 2012 22:06:58 -0500 Subject: cfengine: fix compilation with (older?) clang This patch comes directly from upstream, so presumably it will be obsoleted by the next release. Signed-off-by: Jack Nagel --- Library/Formula/cfengine.rb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Library') diff --git a/Library/Formula/cfengine.rb b/Library/Formula/cfengine.rb index 3683a12ea..a93738575 100644 --- a/Library/Formula/cfengine.rb +++ b/Library/Formula/cfengine.rb @@ -8,6 +8,11 @@ class Cfengine < Formula depends_on 'tokyo-cabinet' depends_on 'pcre' + def patches + # See https://github.com/cfengine/core/commit/ce2b8abf + "https://github.com/cfengine/core/commit/ce2b8abf.patch" if ENV.compiler == :clang + end + def install # Find our libpcre ENV.append 'LDFLAGS', "-L#{HOMEBREW_PREFIX}/lib" -- cgit v1.2.3