aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorBob Fanger2011-10-11 13:03:07 +0200
committerCharlie Sharpsteen2011-11-09 17:24:00 -0800
commit0e4c3f373633d4df0da02ef1867317bdf8d3ad2a (patch)
treeb7e5087b43bd45abc3b2000354a8bd9d94804ced /Library
parent99411cc299141c031cd0508f3d931677e6561d7b (diff)
downloadhomebrew-0e4c3f373633d4df0da02ef1867317bdf8d3ad2a.tar.bz2
New Formula: QCachegrind
Closes #8067. Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/qcachegrind.rb26
1 files changed, 26 insertions, 0 deletions
diff --git a/Library/Formula/qcachegrind.rb b/Library/Formula/qcachegrind.rb
new file mode 100644
index 000000000..e0e238058
--- /dev/null
+++ b/Library/Formula/qcachegrind.rb
@@ -0,0 +1,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