From 506d3a741314adbb9b45d96a6edec57dd9a40136 Mon Sep 17 00:00:00 2001 From: Roger Leigh Date: Mon, 25 Sep 2017 16:10:18 +0100 Subject: [PATCH] xsd: revision for xerces-c build with C++11 --- Formula/xsd.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Formula/xsd.rb b/Formula/xsd.rb index fdbe29c6c037..3f1a0a3baadd 100644 --- a/Formula/xsd.rb +++ b/Formula/xsd.rb @@ -4,6 +4,7 @@ class Xsd < Formula url "http://www.codesynthesis.com/download/xsd/4.0/xsd-4.0.0+dep.tar.bz2" version "4.0.0" sha256 "eca52a9c8f52cdbe2ae4e364e4a909503493a0d51ea388fc6c9734565a859817" + revision 1 bottle do cellar :any @@ -18,6 +19,8 @@ class Xsd < Formula depends_on "pkg-config" => :build depends_on "xerces-c" + needs :cxx11 + # Patches: # 1. As of version 4.0.0, Clang fails to compile if the header is # not explicitly included. The developers are aware of this problem, see: @@ -33,6 +36,7 @@ class Xsd < Formula def install ENV.append "LDFLAGS", `pkg-config --libs --static xerces-c`.chomp + ENV.cxx11 system "make", "install", "install_prefix=#{prefix}" end