From 928fcfb1eb8164fb5ddb059ab16fa2299e80b18c Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Tue, 30 Apr 2013 13:24:50 -0700 Subject: doxygen: fix compile for Xcode-only systems Closes #19545. --- Library/Formula/doxygen.rb | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'Library/Formula') 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" -- cgit v1.2.3