doxygen: fix --with-libclang

Fixes Homebrew/homebrew#24752: doxygen failed to build on 10.9.

Closes Homebrew/homebrew#24986.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
Yutaka Tsutano 2013-12-06 03:41:57 -06:00 committed by Adam Vandenberg
parent 7e97b24b6c
commit 2ed0d60346

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: