2012-03-12 19:04:45 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class MobileShell < Formula
|
|
|
|
homepage 'http://mosh.mit.edu/'
|
2012-03-27 04:10:52 +00:00
|
|
|
url 'https://github.com/downloads/keithw/mosh/mosh-1.1.1.tar.gz'
|
|
|
|
md5 'b42d1ba8e6e975f0e957c348cc998026'
|
2012-03-12 19:04:45 +00:00
|
|
|
|
|
|
|
head 'https://github.com/keithw/mosh.git'
|
|
|
|
|
|
|
|
depends_on 'pkg-config' => :build
|
|
|
|
depends_on 'protobuf'
|
|
|
|
depends_on 'boost'
|
|
|
|
|
|
|
|
def install
|
|
|
|
system "./autogen.sh" if ARGV.build_head?
|
|
|
|
|
|
|
|
# Upstream prefers O2:
|
|
|
|
# https://github.com/keithw/mosh/blob/master/README.md
|
|
|
|
ENV.O2
|
|
|
|
system "./configure", "--prefix=#{prefix}"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|