diff options
| author | Adam Vandenberg | 2013-04-30 13:24:50 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2013-05-02 09:42:04 -0700 |
| commit | 928fcfb1eb8164fb5ddb059ab16fa2299e80b18c (patch) | |
| tree | f148c36ef43193d04e64385aba0357904c152493 /Library | |
| parent | 79d7a1a898f16afc1107ae5afcb49932046d1169 (diff) | |
| download | homebrew-928fcfb1eb8164fb5ddb059ab16fa2299e80b18c.tar.bz2 | |
doxygen: fix compile for Xcode-only systems
Closes #19545.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/doxygen.rb | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Library/Formula/doxygen.rb b/Library/Formula/doxygen.rb index b3530182c..fb4ffb815 100644 --- a/Library/Formula/doxygen.rb +++ b/Library/Formula/doxygen.rb @@ -33,6 +33,22 @@ class Doxygen < Formula s.gsub! /c\+\+$/, ENV.cxx end + # This is a terrible hack; configure finds lex/yacc OK but + # one Makefile doesn't get generated with these, so pull + # them out of a known good file and cram them into the other. + lex = '' + yacc = '' + + inreplace 'src/libdoxycfg.t' do |s| + lex = s.get_make_var 'LEX' + yacc = s.get_make_var 'YACC' + end + + inreplace 'src/Makefile.libdoxycfg' do |s| + s.change_make_var! 'LEX', lex + s.change_make_var! 'YACC', yacc + end + system "make" # MAN1DIR, relative to the given prefix system "make", "MAN1DIR=share/man/man1", "install" |
