Skip to content

Commit

Permalink
xsd: revision for xerces-c
Browse files Browse the repository at this point in the history
build with C++11
  • Loading branch information
Roger Leigh authored and ilovezfs committed Oct 7, 2017
1 parent 25fe82c commit 506d3a7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Formula/xsd.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 <iostream> header is
# not explicitly included. The developers are aware of this problem, see:
Expand All @@ -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

Expand Down

0 comments on commit 506d3a7

Please sign in to comment.