From 4da63da4031fb27d7a06f90853f274e43f7227bc Mon Sep 17 00:00:00 2001 From: Jonathan Beezley Date: Sun, 15 Sep 2013 16:03:30 +0200 Subject: doxygen: fix --with-doxywizard option Closes #22558. Signed-off-by: Adam Vandenberg --- Library/Formula/doxygen.rb | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'Library/Formula') 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 -- cgit v1.2.3