homebrew-core/Formula/qcachegrind.rb

22 lines
483 B
Ruby
Raw Normal View History

require 'formula'
class Qcachegrind < Formula
homepage 'http://kcachegrind.sourceforge.net/'
2012-02-17 05:10:12 +00:00
url 'http://kcachegrind.sourceforge.net/kcachegrind-0.7.1.tgz'
md5 '39376990a9ea2e9f1b75f43f9104fd70'
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'
bin.install 'qcachegrind.app/Contents/MacOS/qcachegrind'
end
def test
2012-02-17 05:10:12 +00:00
system "#{bin}/qcachegrind"
end
end