homebrew-core/Formula/graphviz.rb

37 lines
1.1 KiB
Ruby
Raw Normal View History

require 'formula'
2011-03-10 05:11:03 +00:00
class Graphviz < Formula
2010-02-19 17:48:24 +00:00
url 'http://www.graphviz.org/pub/graphviz/stable/SOURCES/graphviz-2.26.3.tar.gz'
md5 '6f45946fa622770c45609778c0a982ee'
homepage 'http://graphviz.org/'
depends_on 'pkg-config' => :build
2010-06-18 17:58:12 +00:00
if ARGV.include? '--with-pdf'
depends_on 'pango'
2011-04-08 18:16:37 +00:00
depends_on 'cairo' if MacOS.leopard?
end
def options
[["--with-pdf", "Build with Pango/Cairo to support native PDF output"]]
end
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}",
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"
system "make install"
end
end