diff options
| -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 |
