aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorYutaka Tsutano2013-12-06 03:41:57 -0600
committerAdam Vandenberg2014-02-11 20:30:14 -0800
commite2df5474c3bcd4fccffd2191ceacd3beaee1b79f (patch)
treeaa93ae3f703f9ca5a1bf94f3ab052137b96bea9a /Library/Formula
parenta9122c6609acd506384ab48a9b670367ffebcca1 (diff)
downloadhomebrew-e2df5474c3bcd4fccffd2191ceacd3beaee1b79f.tar.bz2
doxygen: fix --with-libclang
Fixes #24752: doxygen failed to build on 10.9. Closes #24986. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/doxygen.rb10
1 files changed, 9 insertions, 1 deletions
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: