homebrew-core/Formula/qcachegrind.rb
Martin Afanasjew dde5551040 qcachegrind: prefer macx-clang over macx-g++ spec
The `macx-g++` is a legacy spec that shouldn't be used nowadays. Using
it will also break the build with Qt 5.6.0 because unlike the newer and
preferable `macx-clang` spec it doesn't support C++11 and above (and Qt
5.6.0 defaults to the highest C++ standard supported by the compiler).

Closes Homebrew/homebrew#50228.

Signed-off-by: Martin Afanasjew <martin@afanasjew.de>
2016-03-19 19:13:35 +08:00

26 lines
991 B
Ruby

class Qcachegrind < Formula
desc "Visualize data generated by Cachegrind and Calltree"
homepage "https://kcachegrind.github.io/"
url "http://download.kde.org/stable/applications/15.12.0/src/kcachegrind-15.12.0.tar.xz"
sha256 "69d9f27e44d747f9aa433db45b75f1aef7eec6b6afd5b2b7cf0da0949c776a3e"
bottle do
cellar :any
sha256 "0cea2d593204c50bc842a46bf2963447f374eb57b6bb0edd47d8db9473be7316" => :el_capitan
sha256 "240c97e6d9f83416ac0ea50a7ccc03c295e6fc3937e9bd9066b6bed3fd2fa81f" => :yosemite
sha256 "097cf0dfa43c444b17637ea69d1127d8e5c4e94545fb1107f3dbb71ea219d6f6" => :mavericks
end
depends_on "graphviz" => :optional
depends_on "qt5"
def install
cd "qcachegrind"
system "#{Formula["qt5"].bin}/qmake", "-spec", "macx-clang", "-config", "release"
system "make"
# Install app
prefix.install "qcachegrind.app"
# Symlink in the command-line version
bin.install_symlink prefix/"qcachegrind.app/Contents/MacOS/qcachegrind"
end
end