blob: e0e2380585c32b167b112a9b5c1ae1ebabb9edb4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
require 'formula'
class Qcachegrind < Formula
url 'http://kcachegrind.sourceforge.net/kcachegrind-0.7.0.tar.gz'
homepage 'http://kcachegrind.sourceforge.net/'
md5 '0001385bbc630afa353619de8768e946'
depends_on 'graphviz' => :optional
def install
qt = Formula.factory 'qt'
unless (qt.lib + 'Qt3Support.framework').exist?
onoe 'QCachegrind requires Qt3Support. `brew install qt --with-qt3support`'
exit 1
end
cd 'qcachegrind'
system 'qmake -spec macx-g++ -config release'
system 'make'
bin.install 'qcachegrind.app/Contents/MacOS/qcachegrind'
end
def test
system 'qcachegrind'
end
end
|