homebrew-core/Formula/mobile-shell.rb
aaronlake a9d70b7663 mobile-shell 1.2.1
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-05-31 07:17:27 -07:00

25 lines
697 B
Ruby

require 'formula'
class MobileShell < Formula
homepage 'http://mosh.mit.edu/'
url 'https://github.com/downloads/keithw/mosh/mosh-1.2.1.tar.gz'
md5 '9ac87208fb8fbef9ab39c92f62fe6475'
head 'https://github.com/keithw/mosh.git'
# Needs new autoconf for correct AC_C_RESTRICT macro
# See: https://github.com/keithw/mosh/issues/241
depends_on 'autoconf' => :build if ARGV.build_head?
depends_on 'pkg-config' => :build
depends_on 'protobuf'
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