diff options
| author | Adam Vandenberg | 2012-06-06 22:33:39 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2012-06-06 22:35:12 -0700 |
| commit | dbcbe163a62a30b2d761211a4d77a37c8852d6af (patch) | |
| tree | fe2483a450e10e43c7c4ac3bbd10d816197b4060 /Library/Formula | |
| parent | 7e4c072ca34422706d24c3472866ff5bd00ab594 (diff) | |
| download | homebrew-dbcbe163a62a30b2d761211a4d77a37c8852d6af.tar.bz2 | |
phantomjs: style nits
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/phantomjs.rb | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/Library/Formula/phantomjs.rb b/Library/Formula/phantomjs.rb index 648fad9d1..81512e782 100644 --- a/Library/Formula/phantomjs.rb +++ b/Library/Formula/phantomjs.rb @@ -1,6 +1,6 @@ require 'formula' -class NeedsSnowLeopardOrNewer < Requirement +class SnowLeopardOrNewer < Requirement def satisfied? MacOS.snow_leopard? end @@ -11,22 +11,22 @@ class NeedsSnowLeopardOrNewer < Requirement end class Phantomjs < Formula - url "http://phantomjs.googlecode.com/files/phantomjs-1.5.0-macosx-static.zip" homepage 'http://www.phantomjs.org/' + url "http://phantomjs.googlecode.com/files/phantomjs-1.5.0-macosx-static.zip" sha1 'b87152ce691e7ed1937d30f86bc706a408d47f64' - depends_on NeedsSnowLeopardOrNewer.new + depends_on SnowLeopardOrNewer.new + # phantomjs wrapper script to hide dock icon + # See http://code.google.com/p/phantomjs/issues/detail?id=281 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 "$@" + exec "#{libexec}/phantomjs" "$@" EOS end def install - libexec.install ['bin/phantomjs', 'bin/Info.plist'] + libexec.install 'bin/phantomjs', 'bin/Info.plist' (bin+'phantomjs').write script end end |
