2009-11-11 21:09:28 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Doxygen < Formula
|
2012-02-10 03:21:22 +00:00
|
|
|
homepage 'http://www.doxygen.org/'
|
2013-02-20 14:17:34 +00:00
|
|
|
url 'http://ftp.stack.nl/pub/users/dimitri/doxygen-1.8.3.1.src.tar.gz'
|
|
|
|
mirror 'http://downloads.sourceforge.net/project/doxygen/rel-1.8.3.1/doxygen-1.8.3.1.src.tar.gz'
|
|
|
|
sha1 '289fc809f44b8025d45279deefbaee7680efd88f'
|
2012-02-10 03:21:22 +00:00
|
|
|
|
2010-10-12 14:40:33 +00:00
|
|
|
head 'https://doxygen.svn.sourceforge.net/svnroot/doxygen/trunk'
|
|
|
|
|
2013-01-03 06:34:52 +00:00
|
|
|
option 'with-dot', 'Build with dot command support from Graphviz.'
|
|
|
|
option 'with-doxywizard', 'Build GUI frontend with qt support.'
|
|
|
|
|
|
|
|
depends_on 'graphviz' if build.include? 'with-dot'
|
|
|
|
depends_on 'qt' if build.include? 'with-doxywizard'
|
|
|
|
|
2009-11-11 21:09:28 +00:00
|
|
|
def install
|
2010-03-07 06:27:19 +00:00
|
|
|
system "./configure", "--prefix", prefix
|
2013-02-02 02:33:13 +00:00
|
|
|
# Per Macports:
|
|
|
|
# https://trac.macports.org/browser/trunk/dports/textproc/doxygen/Portfile#L92
|
|
|
|
inreplace %w[ libmd5/Makefile.libmd5
|
|
|
|
src/Makefile.libdoxycfg
|
|
|
|
tmake/lib/macosx-c++/tmake.conf
|
|
|
|
tmake/lib/macosx-intel-c++/tmake.conf
|
2013-03-12 13:16:47 +00:00
|
|
|
tmake/lib/macosx-uni-c++/tmake.conf ] do |s|
|
|
|
|
# otherwise clang may use up large amounts of RAM while
|
|
|
|
# processing localization files
|
|
|
|
# gcc doesn't support the flag
|
|
|
|
s.gsub! '-Wno-invalid-source-encoding', '' \
|
|
|
|
unless ENV.compiler == :clang
|
|
|
|
# makefiles hardcode both cc and c++
|
|
|
|
s.gsub! /cc$/, ENV.cc
|
|
|
|
s.gsub! /c\+\+$/, ENV.cxx
|
|
|
|
end
|
2013-02-02 02:33:13 +00:00
|
|
|
|
2013-01-03 06:34:52 +00:00
|
|
|
system "make"
|
2012-02-10 03:21:22 +00:00
|
|
|
# MAN1DIR, relative to the given prefix
|
|
|
|
system "make", "MAN1DIR=share/man/man1", "install"
|
2009-11-11 21:09:28 +00:00
|
|
|
end
|
|
|
|
end
|