Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

63 lines (45 sloc) 1.054 kb
require 'formula'
class Visor < Formula
homepage 'http://github.com/soundcloud/visor'
url 'https://github.com/soundcloud/visor/zipball/master'
depends_on 'go'
skip_clean 'bin'
version '0.6.3'
def install
begin
buildpath
rescue
puts <<-EOF
Your brew version is outdated, please execute:
brew update
and try again
EOF
exit 1
end
ENV['PATH'] = "/usr/local/bin:#{ENV['PATH']}"
begin
system("which hg")
rescue
system "brew install hg"
end
begin
system("hg --version")
rescue
hg_path = `which hg`
puts <<-EOF
Your mercurial installation is broken. Please delete your current mercurial installation
and reinstall with brew by executing:
sudo mv #{hg_path.chomp} /tmp
brew install --force mercurial || brew update --force mercurial
EOF
exit 2
end
ENV['GOPATH'] = buildpath
ENV['GOBIN'] = "#{prefix}/bin"
ENV['PWD'] = buildpath
system "make install"
end
def test
system "visor --version"
end
end
Jump to Line
Something went wrong with that request. Please try again.