Skip to content

Commit

Permalink
yaz: Another way to close Homebrew#167.
Browse files Browse the repository at this point in the history
  • Loading branch information
mbcoguno committed Oct 29, 2012
1 parent b6babb3 commit 6b7e1df
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Library/Formula/yaz.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,17 @@ class Yaz < Formula
depends_on 'pkg-config' => :build

def install
# Both libxml2 2.7.3 and icu are defined the same data type `UChar'.
ENV.append_to_cflags "-Wno-typedef-redefinition" if ENV.compiler == :clang

if (ENV.compiler == :gcc or ENV.compiler == :llvm) and build.include? "env=std"
opoo <<-EOS.undent
GCC and LLVM-GCC can't build with icu and system's libxml together.
If you have request about this and have Clang, you can compile it with:
brew install yaz --env=std --use-clang
EOS
end

system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}",
"--with-xml2"
Expand Down

0 comments on commit 6b7e1df

Please sign in to comment.