homebrew-core/Formula/qcachegrind.rb
2018-05-10 23:48:46 -07:00

26 lines
1,000 B
Ruby

class Qcachegrind < Formula
desc "Visualize data generated by Cachegrind and Calltree"
homepage "https://kcachegrind.github.io/"
url "https://download.kde.org/stable/applications/18.04.1/src/kcachegrind-18.04.1.tar.xz"
sha256 "cf1c826076ed3c23514a17cf40e6c796258e7828d5adeaa9e67bf0636a3f2fd6"
bottle do
cellar :any
sha256 "4557cb6f0fdc5c1dafbcf3c1fa965fb01d6c1cc5a82d946884641559de3cf7c4" => :high_sierra
sha256 "56eaefd107aeaec81b226d0542d28771eae2d22441462d9a8cf8172d091636fe" => :sierra
sha256 "b7f51a724f909e110118f4098e24cec0482f99f0b5f3b01bb9ccc87c00c37f69" => :el_capitan
end
depends_on "qt"
depends_on "graphviz" => :optional
def install
cd "qcachegrind" do
system "#{Formula["qt"].opt_bin}/qmake", "-spec", "macx-clang",
"-config", "release"
system "make"
prefix.install "qcachegrind.app"
bin.install_symlink prefix/"qcachegrind.app/Contents/MacOS/qcachegrind"
end
end
end