homebrew-core/Formula/slimerjs.rb
Christian Moritz a1daf0efb1 slimerjs 0.8.3 and HEAD
Closes Homebrew/homebrew#22619.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-09-18 08:01:16 -07:00

26 lines
872 B
Ruby

require 'formula'
class Slimerjs < Formula
homepage 'http://www.slimerjs.org'
url 'http://download.slimerjs.org/v0.8/slimerjs-0.8.3.zip'
sha1 '8d2a6dc3b8200fa15cd9d65c84bc9358c11f03f8'
head 'https://github.com/laurentj/slimerjs.git'
def install
if build.head?
cd 'src/'
# creating resource archive if build from head
system 'zip -r omni.ja chrome/ components/ modules/ defaults/ chrome.manifest -x@package_exclude.lst'
end
libexec.install %w[application.ini omni.ja slimerjs]
bin.install_symlink libexec/'slimerjs'
end
def caveats; <<-EOS.undent
You should set the environment variable SLIMERJSLAUNCHER to a installation of Mozilla Firefox (or XULRunner).
For a standard Mozilla Firefox installation this would be:
export SLIMERJSLAUNCHER=/Applications/Firefox.app/Contents/MacOS/firefox
EOS
end
end