2013-09-11 03:31:10 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Slimerjs < Formula
|
|
|
|
homepage 'http://www.slimerjs.org'
|
2013-11-07 05:04:10 +00:00
|
|
|
url 'http://download.slimerjs.org/v0.8/0.8.4/slimerjs-0.8.4.zip'
|
2013-10-24 13:54:19 +00:00
|
|
|
sha1 '89c7dc05b9df5f2aac0d423fb5a2118271ac9ad2'
|
2013-09-17 15:47:24 +00:00
|
|
|
|
|
|
|
head 'https://github.com/laurentj/slimerjs.git'
|
2013-09-11 03:31:10 +00:00
|
|
|
|
|
|
|
def install
|
2013-09-17 15:47:24 +00:00
|
|
|
if build.head?
|
|
|
|
cd 'src/'
|
|
|
|
system 'zip -r omni.ja chrome/ components/ modules/ defaults/ chrome.manifest -x@package_exclude.lst'
|
|
|
|
end
|
2013-10-24 13:54:19 +00:00
|
|
|
libexec.install 'slimerjs.py' if build.head?
|
2013-09-17 15:47:24 +00:00
|
|
|
libexec.install %w[application.ini omni.ja slimerjs]
|
2013-09-11 03:31:10 +00:00
|
|
|
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
|