aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/qcachegrind.rb
blob: 0033a9c07dd2da07555b171b8cb3b4eb172cd628 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
require 'formula'

class Qcachegrind < Formula
  homepage 'http://kcachegrind.sourceforge.net/'
  url 'http://kcachegrind.sourceforge.net/kcachegrind-0.7.1.tgz'
  md5 '39376990a9ea2e9f1b75f43f9104fd70'

  depends_on 'graphviz' => :optional
  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
    system "#{bin}/qcachegrind"
  end
end