2011-10-11 11:03:07 +00:00
|
|
|
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'
|
2012-02-15 17:17:17 +00:00
|
|
|
md5 '39376990a9ea2e9f1b75f43f9104fd70'
|
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'
|
|
|
|
bin.install 'qcachegrind.app/Contents/MacOS/qcachegrind'
|
|
|
|
end
|
|
|
|
|
|
|
|
def test
|
2012-02-17 05:10:12 +00:00
|
|
|
system "#{bin}/qcachegrind"
|
2011-10-11 11:03:07 +00:00
|
|
|
end
|
|
|
|
end
|