aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorDaniel Russel2013-05-28 20:03:56 -0700
committerAdam Vandenberg2013-06-18 09:05:57 -0700
commit39b75a7ee6587d6ba7b9af7d343e1647cdf3714d (patch)
tree3f688d347465210070060c60310b6a129c2046b1 /Library
parentcd810bd87c6dc2af003ce0d0f2e8bf92b1d97657 (diff)
downloadhomebrew-39b75a7ee6587d6ba7b9af7d343e1647cdf3714d.tar.bz2
doxygen: add support for using libclang to parse files
Closes #20128. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/doxygen.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/Library/Formula/doxygen.rb b/Library/Formula/doxygen.rb
index a3dd42c5c..a912ea726 100644
--- a/Library/Formula/doxygen.rb
+++ b/Library/Formula/doxygen.rb
@@ -10,12 +10,16 @@ class Doxygen < Formula
option 'with-dot', 'Build with dot command support from Graphviz.'
option 'with-doxywizard', 'Build GUI frontend with qt support.'
+ option 'with-libclang', 'Build with libclang support.'
depends_on 'graphviz' if build.include? 'with-dot'
depends_on 'qt' if build.include? 'with-doxywizard'
+ depends_on 'llvm' if build.include? 'with-libclang'
def install
- system "./configure", "--prefix", prefix
+ args = ["--prefix", prefix]
+ args << '--with-libclang' if build.with? 'libclang'
+ system "./configure", *args
# Per Macports:
# https://trac.macports.org/browser/trunk/dports/textproc/doxygen/Portfile#L92
inreplace %w[ libmd5/Makefile.libmd5