From e2df5474c3bcd4fccffd2191ceacd3beaee1b79f Mon Sep 17 00:00:00 2001 From: Yutaka Tsutano Date: Fri, 6 Dec 2013 03:41:57 -0600 Subject: doxygen: fix --with-libclang Fixes #24752: doxygen failed to build on 10.9. Closes #24986. Signed-off-by: Adam Vandenberg --- Library/Formula/doxygen.rb | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'Library') diff --git a/Library/Formula/doxygen.rb b/Library/Formula/doxygen.rb index ceb6f2c9a..a77e2af3a 100644 --- a/Library/Formula/doxygen.rb +++ b/Library/Formula/doxygen.rb @@ -21,8 +21,16 @@ class Doxygen < Formula end def install + # libclang is installed under #{HOMEBREW_PREFIX}/opt/llvm/ + if build.with? 'libclang' + inreplace 'configure' do |s| + s.gsub! /libclang_hdr_dir=\".*$/, "libclang_hdr_dir=\"#{HOMEBREW_PREFIX}/opt/llvm/include\"" + s.gsub! /libclang_lib_dir=\".*$/, "libclang_lib_dir=\"#{HOMEBREW_PREFIX}/opt/llvm/lib\"" + end + end + args = ["--prefix", prefix] - args << '--with-libclang' if build.with? 'libclang' + args << '--with-libclang-static' if build.with? 'libclang' args << '--with-doxywizard' if build.with? 'doxywizard' system "./configure", *args # Per Macports: -- cgit v1.2.3