phantomjs: add openssl dep

Taps OpenSSL at runtime, but taps the system version instead of ours.
This fixes that and forces a recompile.

Closes Homebrew/homebrew#32076.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
master
Dominyk Tiller 2014-09-05 23:59:31 -05:00 committed by Jack Nagel
parent 277ff070f6
commit 75516431f7
1 changed files with 6 additions and 2 deletions

View File

@ -2,10 +2,11 @@ require "formula"
class Phantomjs < Formula
homepage "http://www.phantomjs.org/"
revision 1
stable do
url "https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-1.9.7-source.zip"
sha1 "124b017d493d5ccabd22afaf078d0650ac048840"
sha256 "0f6c50ff24c1c4a8ccd7fedef62feef5e45195c7ba5ef6c84434448544877ff3"
patch do
url "https://github.com/ariya/phantomjs/commit/fe6a96.diff"
@ -23,11 +24,14 @@ class Phantomjs < Formula
head "https://github.com/ariya/phantomjs.git"
depends_on 'openssl'
def install
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
system "./build.sh", "--confirm", "--jobs", ENV.make_jobs,
"--qt-config", "-openssl-linked"
bin.install "bin/phantomjs"
(share+"phantomjs").install "examples"
end