phantomjs@1.98: remove

This commit is contained in:
FX Coudert 2017-08-21 21:41:26 +02:00
parent b29b51b7b6
commit d9005250f1

View file

@ -1,33 +0,0 @@
class PhantomjsAT198 < Formula
desc "Headless WebKit scriptable with a JavaScript API"
homepage "http://phantomjs.org/"
url "https://github.com/ariya/phantomjs/archive/1.9.8.tar.gz"
sha256 "3a321561677f678ca00137c47689e3379c7fe6b83f7597d2d5de187dd243f7be"
keg_only :versioned_formula
depends_on "openssl"
# https://github.com/Homebrew/homebrew/issues/42249
depends_on MaximumMacOSRequirement => :yosemite
def install
if MacOS.prefer_64_bit?
inreplace "src/qt/preconfig.sh", "-arch x86", "-arch x86_64"
end
system "./build.sh", "--confirm", "--jobs", ENV.make_jobs,
"--qt-config", "-openssl-linked"
bin.install "bin/phantomjs"
(share+"phantomjs").install "examples"
end
test do
path = testpath/"test.js"
path.write <<-EOS
console.log("hello");
phantom.exit();
EOS
assert_equal "hello", shell_output("#{bin}/phantomjs #{path}").strip
end
end