73 lines
1.8 KiB
Ruby
73 lines
1.8 KiB
Ruby
class Graphviz < Formula
|
|
desc "Graph visualization software from AT&T and Bell Labs"
|
|
homepage "https://www.graphviz.org/"
|
|
url "https://gitlab.com/graphviz/graphviz.git",
|
|
tag: "2.47.0",
|
|
revision: "541ecdb818a191ce1784ea0a9b3a9fe78227762a"
|
|
license "EPL-1.0"
|
|
version_scheme 1
|
|
head "https://gitlab.com/graphviz/graphviz.git"
|
|
|
|
bottle do
|
|
sha256 arm64_big_sur: "e4263e38be3d51648bffba45b0572dafd16254ce27fc3d1b13c555dff1110d5a"
|
|
sha256 big_sur: "7972126b79753efa1f0c3519d6a063079cb1ff02c69759864a865e4ae6b4f193"
|
|
sha256 catalina: "e5d3b7b652e5cf828c0a2afc2fadb31090f3d7f10389766857404b4359b695e3"
|
|
sha256 mojave: "d045a9a68315b4e3fa61c7a0a813da345be8197892d070162d909f4985ff3bd7"
|
|
end
|
|
|
|
depends_on "autoconf" => :build
|
|
depends_on "automake" => :build
|
|
depends_on "bison" => :build
|
|
depends_on "pkg-config" => :build
|
|
depends_on "gd"
|
|
depends_on "gts"
|
|
depends_on "libpng"
|
|
depends_on "librsvg"
|
|
depends_on "libtool"
|
|
depends_on "pango"
|
|
|
|
uses_from_macos "flex" => :build
|
|
|
|
on_linux do
|
|
depends_on "byacc" => :build
|
|
depends_on "ghostscript" => :build
|
|
end
|
|
|
|
def install
|
|
args = %W[
|
|
--disable-debug
|
|
--disable-dependency-tracking
|
|
--prefix=#{prefix}
|
|
--disable-php
|
|
--disable-swig
|
|
--disable-tcl
|
|
--with-quartz
|
|
--without-freetype2
|
|
--without-gdk
|
|
--without-gdk-pixbuf
|
|
--without-gtk
|
|
--without-poppler
|
|
--without-qt
|
|
--without-x
|
|
--with-gts
|
|
]
|
|
|
|
system "./autogen.sh"
|
|
system "./configure", *args
|
|
system "make"
|
|
system "make", "install"
|
|
|
|
(bin/"gvmap.sh").unlink
|
|
end
|
|
|
|
test do
|
|
(testpath/"sample.dot").write <<~EOS
|
|
digraph G {
|
|
a -> b
|
|
}
|
|
EOS
|
|
|
|
system "#{bin}/dot", "-Tpdf", "-o", "sample.pdf", "sample.dot"
|
|
end
|
|
end
|