aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorFábio M. Costa2012-04-01 15:03:21 -0500
committerMike McQuaid2012-04-01 15:04:13 +1000
commitc8ae355bd656e49bc2b6be2cf25fa51d709acf0a (patch)
tree02dd0f76613d197f75607db20d8a64f923057634 /Library/Formula
parentb54600b5c964b3e579e85a3465f4c89794ff6d79 (diff)
downloadhomebrew-c8ae355bd656e49bc2b6be2cf25fa51d709acf0a.tar.bz2
Update PhantomJS to 1.5.0.
Use the upstream binaries to avoid building a copy of Qt. Fixes #11225. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/phantomjs.rb26
1 files changed, 20 insertions, 6 deletions
diff --git a/Library/Formula/phantomjs.rb b/Library/Formula/phantomjs.rb
index 49e9f8461..1689303a5 100644
--- a/Library/Formula/phantomjs.rb
+++ b/Library/Formula/phantomjs.rb
@@ -1,16 +1,30 @@
require 'formula'
+class NeedsSnowLeopardOrNewer < Requirement
+ def satisfied?
+ MacOS.snow_leopard?
+ end
+
+ def message
+ "PhantomJS requires Mac OS X 10.6 (Snow Leopard) or newer."
+ end
+end
+
class Phantomjs < Formula
- url "https://phantomjs.googlecode.com/files/phantomjs-1.4.1-source.tar.gz"
- head "https://github.com/ariya/phantomjs.git"
+ url "http://phantomjs.googlecode.com/files/phantomjs-1.5.0-macosx-static.zip"
homepage 'http://www.phantomjs.org/'
- sha1 "d9386aa3e36bdd31f069f5301e315a9c5d91f06a"
+ sha1 'b87152ce691e7ed1937d30f86bc706a408d47f64'
- depends_on 'qt'
+ depends_on NeedsSnowLeopardOrNewer.new
def install
- system "qmake -spec macx-g++"
- system "make"
bin.install "bin/phantomjs"
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
+ end
end