2011-10-11 11:03:07 +00:00
|
|
|
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'
|
2011-10-11 11:03:07 +00:00
|
|
|
|
|
|
|
depends_on 'graphviz' => :optional
|
2012-02-17 05:10:12 +00:00
|
|
|
depends_on 'qt'
|
2011-10-11 11:03:07 +00:00
|
|
|
|
|
|
|
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'
|
2011-10-11 11:03:07 +00:00
|
|
|
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
|
2011-10-11 11:03:07 +00:00
|
|
|
end
|
|
|
|
end
|