diff options
| author | Jonathan Beezley | 2013-09-15 16:03:30 +0200 |
|---|---|---|
| committer | Adam Vandenberg | 2013-09-15 11:48:42 -0700 |
| commit | 4da63da4031fb27d7a06f90853f274e43f7227bc (patch) | |
| tree | 57efb183716c4518e05b6e9675298f86c5abfb54 /Library/Formula | |
| parent | b21c073da88576bd4a24b302ebbadc98ac23e7f5 (diff) | |
| download | homebrew-4da63da4031fb27d7a06f90853f274e43f7227bc.tar.bz2 | |
doxygen: fix --with-doxywizard option
Closes #22558.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/doxygen.rb | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/Library/Formula/doxygen.rb b/Library/Formula/doxygen.rb index cd086f029..9befcdef5 100644 --- a/Library/Formula/doxygen.rb +++ b/Library/Formula/doxygen.rb @@ -16,9 +16,14 @@ class Doxygen < Formula depends_on 'qt' if build.with? 'doxywizard' depends_on 'llvm' => 'with-clang' if build.with? 'libclang' + def patches + DATA if build.with? 'doxywizard' + end + def install args = ["--prefix", prefix] args << '--with-libclang' if build.with? 'libclang' + args << '--with-doxywizard' if build.with? 'doxywizard' system "./configure", *args # Per Macports: # https://trac.macports.org/browser/trunk/dports/textproc/doxygen/Portfile#L92 @@ -57,3 +62,21 @@ class Doxygen < Formula system "make", "MAN1DIR=share/man/man1", "install" end end + +__END__ +# On Mac OS Qt builds an application bundle rather than a binary. We need to +# give install the correct path to the doxywizard binary. This is similar to +# what macports does: +diff --git a/addon/doxywizard/Makefile.in b/addon/doxywizard/Makefile.in +index 727409a..8b0d00f 100644 +--- a/addon/doxywizard/Makefile.in ++++ b/addon/doxywizard/Makefile.in +@@ -30,7 +30,7 @@ distclean: Makefile.doxywizard + + install: + $(INSTTOOL) -d $(INSTALL)/bin +- $(INSTTOOL) -m 755 ../../bin/doxywizard $(INSTALL)/bin ++ $(INSTTOOL) -m 755 ../../bin/doxywizard.app/Contents/MacOS/doxywizard $(INSTALL)/bin + $(INSTTOOL) -d $(INSTALL)/$(MAN1DIR) + cat ../../doc/doxywizard.1 | sed -e "s/DATE/$(DATE)/g" -e "s/VERSION/$(VERSION)/g" > doxywizard.1 + $(INSTTOOL) -m 644 doxywizard.1 $(INSTALL)/$(MAN1DIR)/doxywizard.1 |
