homebrew-core/Formula/qcachegrind.rb
Marcel Köppen 818d48ee20 qcachegrind 0.7.4
Closes Homebrew/homebrew#19678.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-05-08 08:30:50 -07:00

29 lines
731 B
Ruby

require 'formula'
class Qcachegrind < Formula
homepage 'http://kcachegrind.sourceforge.net/html/Home.html'
url 'http://kcachegrind.sourceforge.net/kcachegrind-0.7.4.tar.gz'
sha1 'a727e6c39ad2809296dec4ca665f6fa99bda72fb'
depends_on 'graphviz' => :optional
depends_on 'qt'
def install
cd 'qcachegrind'
system 'qmake -spec macx-g++ -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
def caveats; <<-EOS
qcachegrind.app was installed in:
#{prefix}
To symlink into ~/Applications, you can do:
brew linkapps
EOS
end
end