diff options
Diffstat (limited to 'Library/Formula')
| -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" |
