2009-10-15 08:07:12 +00:00
|
|
|
require 'formula'
|
2009-09-27 06:03:35 +00:00
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Graphviz < Formula
|
2011-07-25 16:17:15 +00:00
|
|
|
url 'http://www.graphviz.org/pub/graphviz/stable/SOURCES/graphviz-2.28.0.tar.gz'
|
|
|
|
md5 '8d26c1171f30ca3b1dc1b429f7937e58'
|
2009-09-27 06:03:35 +00:00
|
|
|
homepage 'http://graphviz.org/'
|
|
|
|
|
2010-09-19 17:21:57 +00:00
|
|
|
depends_on 'pkg-config' => :build
|
2010-06-18 17:58:12 +00:00
|
|
|
|
2011-03-10 15:06:37 +00:00
|
|
|
if ARGV.include? '--with-pdf'
|
|
|
|
depends_on 'pango'
|
2011-04-08 18:16:37 +00:00
|
|
|
depends_on 'cairo' if MacOS.leopard?
|
2011-03-10 15:06:37 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
def options
|
|
|
|
[["--with-pdf", "Build with Pango/Cairo to support native PDF output"]]
|
|
|
|
end
|
|
|
|
|
2009-09-27 06:03:35 +00:00
|
|
|
def install
|
2010-08-13 15:42:45 +00:00
|
|
|
ENV.x11
|
|
|
|
# Various language bindings fail with 32/64 issues.
|
2010-02-19 17:48:24 +00:00
|
|
|
system "./configure", "--disable-debug", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}",
|
2011-07-25 16:17:15 +00:00
|
|
|
"--with-qt=no",
|
2010-03-06 14:32:32 +00:00
|
|
|
"--disable-quartz",
|
2010-08-13 15:42:45 +00:00
|
|
|
"--disable-java",
|
|
|
|
"--disable-ocaml",
|
|
|
|
"--disable-perl",
|
2010-03-06 14:32:32 +00:00
|
|
|
"--disable-php",
|
2010-08-13 15:42:45 +00:00
|
|
|
"--disable-python",
|
|
|
|
"--disable-r",
|
|
|
|
"--disable-ruby",
|
|
|
|
"--disable-sharp",
|
|
|
|
"--disable-swig"
|
2009-09-27 06:03:35 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|