aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAdam Vandenberg2012-07-23 15:39:47 -0700
committerAdam Vandenberg2012-07-23 15:39:47 -0700
commit726ea14669fb51638100fd3176caad038a61af05 (patch)
treedb26e62d880d4077cd36b7b1f3de291ea33baad4 /Library
parenteaaa2433a77340f929fcbb75d92d381fc317b733 (diff)
downloadhomebrew-726ea14669fb51638100fd3176caad038a61af05.tar.bz2
qcachegrind: also install .app
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/qcachegrind.rb18
1 files changed, 13 insertions, 5 deletions
diff --git a/Library/Formula/qcachegrind.rb b/Library/Formula/qcachegrind.rb
index 0033a9c07..9afcdc8f4 100644
--- a/Library/Formula/qcachegrind.rb
+++ b/Library/Formula/qcachegrind.rb
@@ -1,9 +1,9 @@
require 'formula'
class Qcachegrind < Formula
- homepage 'http://kcachegrind.sourceforge.net/'
+ homepage 'http://kcachegrind.sourceforge.net/html/Home.html'
url 'http://kcachegrind.sourceforge.net/kcachegrind-0.7.1.tgz'
- md5 '39376990a9ea2e9f1b75f43f9104fd70'
+ sha1 'efa0b3abb7afe211c2f227b78a8699d80846f8ea'
depends_on 'graphviz' => :optional
depends_on 'qt'
@@ -12,10 +12,18 @@ class Qcachegrind < Formula
cd 'qcachegrind'
system 'qmake -spec macx-g++ -config release'
system 'make'
- bin.install 'qcachegrind.app/Contents/MacOS/qcachegrind'
+ # Install app
+ prefix.install 'qcachegrind.app'
+ # Symlink in the command-line version
+ bin.install_symlink prefix/'qcachegrind.app/Contents/MacOS/qcachegrind'
end
- def test
- system "#{bin}/qcachegrind"
+ def caveats; <<-EOS
+ qcachegrind.app was installed in:
+ #{prefix}
+
+ To symlink into ~/Applications, you can do:
+ brew linkapps
+ EOS
end
end