Permalink
Browse files

phantomjs: style nits

  • Loading branch information...
1 parent 7e4c072 commit dbcbe163a62a30b2d761211a4d77a37c8852d6af @adamv adamv committed Jun 7, 2012
Showing with 7 additions and 7 deletions.
  1. +7 −7 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 @@ def message
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

0 comments on commit dbcbe16

Please sign in to comment.