homebrew-core/Formula/qcachegrind.rb

27 lines
1000 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.2/src/kcachegrind-18.04.2.tar.xz"
sha256 "248a45a8351593f4ea4d411221b700e090ea0e48af63204f880d60a0d25878ae"
bottle do
cellar :any
sha256 "d40aa63d94a8aa09a3665649a2a171cb504ae5ce397d95c383cae0ff5b445f73" => :high_sierra
sha256 "a460ea125855e11618b914d101cb86479217a860f66c7bae292cbe2a15f89daf" => :sierra
sha256 "704ff3cdb5cf125d2c76acb58bf964f1e5f314c536998c57e67018f3bb2b342f" => :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