aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/qcachegrind.rb
blob: 9afcdc8f4284707ccb53a7bb178f9cefc282c0cf (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
27
28
29
require 'formula'

class Qcachegrind < Formula
  homepage 'http://kcachegrind.sourceforge.net/html/Home.html'
  url 'http://kcachegrind.sourceforge.net/kcachegrind-0.7.1.tgz'
  sha1 'efa0b3abb7afe211c2f227b78a8699d80846f8ea'

  depends_on 'graphviz' => :optional
  depends_on 'qt'

  def install
    cd 'qcachegrind'
    system 'qmake -spec macx-g++ -config release'
    system 'make'
    # Install app
    prefix.install 'qcachegrind.app'
    # Symlink in the command-line version
    bin.install_symlink prefix/'qcachegrind.app/Contents/MacOS/qcachegrind'
  end

  def caveats; <<-EOS
    qcachegrind.app was installed in:
      #{prefix}

    To symlink into ~/Applications, you can do:
      brew linkapps
    EOS
  end
end