2012-03-12 19:04:45 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class MobileShell < Formula
|
|
|
|
homepage 'http://mosh.mit.edu/'
|
2012-06-24 08:43:31 +00:00
|
|
|
url 'https://github.com/downloads/keithw/mosh/mosh-1.2.2.tar.gz'
|
|
|
|
md5 '7ed5b857307685794dcd120afe5bdf52'
|
2012-03-12 19:04:45 +00:00
|
|
|
|
|
|
|
head 'https://github.com/keithw/mosh.git'
|
|
|
|
|
2012-04-26 17:13:17 +00:00
|
|
|
# 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?
|
2012-03-12 19:04:45 +00:00
|
|
|
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
|