homebrew-core/Formula/xdot.rb
2017-07-18 13:04:27 +01:00

32 lines
1.2 KiB
Ruby

class Xdot < Formula
desc "Interactive viewer for graphs written in Graphviz's dot language."
homepage "https://github.com/jrfonseca/xdot.py"
url "https://files.pythonhosted.org/packages/f5/52/7cec1decf2b07c7749eb997fa5f365781a512722f48e6ad4294e31c94629/xdot-0.7.tar.gz"
sha256 "d2100c3201d974915d1b89220ce52f380334eb365ab48903573a8135f51d0ee0"
revision 1
head "https://github.com/jrfonseca/xdot.py.git"
bottle do
cellar :any_skip_relocation
sha256 "7cb38b8fb14e2c2b7ee8d16d73300c3af56617ae044e088b4fe05ae61ec9f5c5" => :sierra
sha256 "7cb38b8fb14e2c2b7ee8d16d73300c3af56617ae044e088b4fe05ae61ec9f5c5" => :el_capitan
sha256 "7cb38b8fb14e2c2b7ee8d16d73300c3af56617ae044e088b4fe05ae61ec9f5c5" => :yosemite
end
depends_on "pygobject3"
depends_on "pygtk"
depends_on :python if MacOS.version <= :snow_leopard
def install
ENV.prepend_create_path "PYTHONPATH", libexec/"lib/python2.7/site-packages"
system "python", *Language::Python.setup_install_args(libexec)
bin.install Dir[libexec/"bin/*"]
bin.env_script_all_files(libexec/"bin", :PYTHONPATH => ENV["PYTHONPATH"])
end
test do
system "#{bin}/xdot", "--help"
end
end