doxygen: fix --with-libclang

Fixes #24752: doxygen failed to build on 10.9.

Closes #24986.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
Yutaka Tsutano authored and Adam Vandenberg committed 2014-02-11 20:30:14 -08:00
1 parent a9122c6609
commit e2df5474c3
1 file changed
+9 -1
+9 -1
View File
@@ -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: