aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorRonny Haryanto2012-04-03 16:36:47 +1000
committerMike McQuaid2012-04-04 16:03:34 +1000
commit10640ea87b1ebe7ede30992a8683550eac2084e4 (patch)
treef842c08f85325b63cb64824eee033616ae85bd00 /Library
parent5a0afe3da0584614711d09725baf8219f9e8a4a4 (diff)
downloadhomebrew-10640ea87b1ebe7ede30992a8683550eac2084e4.tar.bz2
Wrapper script for phantomjs to hide Dock icon.
Closes #11412. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/phantomjs.rb16
1 files changed, 9 insertions, 7 deletions
diff --git a/Library/Formula/phantomjs.rb b/Library/Formula/phantomjs.rb
index 1689303a5..648fad9d1 100644
--- a/Library/Formula/phantomjs.rb
+++ b/Library/Formula/phantomjs.rb
@@ -17,14 +17,16 @@ class Phantomjs < Formula
depends_on NeedsSnowLeopardOrNewer.new
- def install
- bin.install "bin/phantomjs"
+ def script; <<-EOS.undent
+ #!/bin/sh
+ # phantomjs wrapper script to hide dock icon
+ # See http://code.google.com/p/phantomjs/issues/detail?id=281
+ exec #{libexec}/phantomjs "$@"
+ EOS
end
- def caveats; <<-EOS.undent
- PhantomJS in Homebrew currently does not hide the dock icon.
- For more information see:
- http://code.google.com/p/phantomjs/issues/detail?id=281
- EOS
+ def install
+ libexec.install ['bin/phantomjs', 'bin/Info.plist']
+ (bin+'phantomjs').write script
end
end