homebrew-core/Formula/qcachegrind.rb

30 lines
728 B
Ruby
Raw Normal View History

require 'formula'
class Qcachegrind < Formula
2012-07-23 22:39:47 +00:00
homepage 'http://kcachegrind.sourceforge.net/html/Home.html'
2012-02-17 05:10:12 +00:00
url 'http://kcachegrind.sourceforge.net/kcachegrind-0.7.1.tgz'
2012-07-23 22:39:47 +00:00
sha1 'efa0b3abb7afe211c2f227b78a8699d80846f8ea'
depends_on 'graphviz' => :optional
2012-02-17 05:10:12 +00:00
depends_on 'qt'
def install
cd 'qcachegrind'
system 'qmake -spec macx-g++ -config release'
system 'make'
2012-07-23 22:39:47 +00:00
# Install app
prefix.install 'qcachegrind.app'
# Symlink in the command-line version
bin.install_symlink prefix/'qcachegrind.app/Contents/MacOS/qcachegrind'
end
2012-07-23 22:39:47 +00:00
def caveats; <<-EOS
qcachegrind.app was installed in:
#{prefix}
To symlink into ~/Applications, you can do:
brew linkapps
EOS
end
end