doxygen: add support for using libclang to parse files

Closes Homebrew/homebrew#20128.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
master
Daniel Russel 2013-05-28 20:03:56 -07:00 committed by Adam Vandenberg
parent 31455c9c7a
commit 8f085bf9f4
1 changed files with 5 additions and 1 deletions

View File

@ -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