From 8785b1ee084863ab889ba7eaaef45ba6bdd26dfe Mon Sep 17 00:00:00 2001 From: ojab Date: Sat, 16 Aug 2014 23:08:44 +0100 Subject: phantomjs: add HEAD Closes #31351. Signed-off-by: Mike McQuaid --- Library/Formula/phantomjs.rb | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) (limited to 'Library/Formula') diff --git a/Library/Formula/phantomjs.rb b/Library/Formula/phantomjs.rb index 0fe2cf863..d25ad74cc 100644 --- a/Library/Formula/phantomjs.rb +++ b/Library/Formula/phantomjs.rb @@ -2,8 +2,16 @@ require "formula" class Phantomjs < Formula homepage "http://www.phantomjs.org/" - url "https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-1.9.7-source.zip" - sha1 "124b017d493d5ccabd22afaf078d0650ac048840" + + stable do + url "https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-1.9.7-source.zip" + sha1 "124b017d493d5ccabd22afaf078d0650ac048840" + + patch do + url "https://github.com/ariya/phantomjs/commit/fe6a96.diff" + sha1 "d3efd38e0f3f0da08530d0bf603ea72ebdf06b78" + end + end bottle do cellar :any @@ -13,13 +21,14 @@ class Phantomjs < Formula sha1 "273dbe33d1edbdd034c903d919278d33d7ebe5dd" => :lion end - patch do - url "https://github.com/ariya/phantomjs/commit/fe6a96.diff" - sha1 "d3efd38e0f3f0da08530d0bf603ea72ebdf06b78" + head do + url "https://github.com/ariya/phantomjs.git" end def install - inreplace "src/qt/preconfig.sh", "-arch x86", "-arch x86_64" if MacOS.prefer_64_bit? + if build.stable? && MacOS.prefer_64_bit? + inreplace "src/qt/preconfig.sh", "-arch x86", "-arch x86_64" + end system "./build.sh", "--confirm", "--jobs", ENV.make_jobs bin.install "bin/phantomjs" (share+"phantomjs").install "examples" -- cgit v1.2.3