aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/qcachegrind.rb
blob: ec87c588dfad5dfafd743b2289cb67e31aaa5f70 (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.4.tar.gz'
  sha1 'a727e6c39ad2809296dec4ca665f6fa99bda72fb'

  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