From fef335de5f02caee1ae5abfe8c1e9ae1d8853c3d Mon Sep 17 00:00:00 2001 From: Baptiste Fontaine Date: Mon, 16 Feb 2015 11:41:07 +0100 Subject: browser 7 Closes #36853. Signed-off-by: Mike McQuaid --- Library/Formula/browser.rb | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) (limited to 'Library') diff --git a/Library/Formula/browser.rb b/Library/Formula/browser.rb index 4a720753d..d15ca101d 100644 --- a/Library/Formula/browser.rb +++ b/Library/Formula/browser.rb @@ -1,7 +1,17 @@ -require 'formula' +class Browser < Formula + url "https://gist.github.com/defunkt/318247/raw/7720fc969d58a9bfdc74d71deaa15c1eb7582fc1/browser", + :using => :nounzip + homepage "https://gist.github.com/318247/" + sha1 "beaf6c40851628d188eccc9cc013d44dcb037521" + # This the gist revision number + version "7" -class Browser < GithubGistFormula - url 'https://gist.githubusercontent.com/defunkt/318247/raw/bcbcf6c5fb730b4f508c633cce56ba17828825c8/browser' - homepage 'https://gist.github.com/318247/' - sha1 '3474d81ef6eaaf13554fd6aa03e5227c4c72f1bb' + def install + bin.install "browser" + end + + test do + ENV["TERM"] = "xterm" + system "#{bin}/browser" + end end -- cgit v1.2.3