2012-03-12 19:04:45 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class MobileShell < Formula
|
|
|
|
homepage 'http://mosh.mit.edu/'
|
2013-03-29 08:56:27 +00:00
|
|
|
url 'http://mosh.mit.edu/mosh-1.2.4.tar.gz'
|
|
|
|
sha1 'b1dffe8562d7b2f4956699849fbe5d18bfd7749e'
|
2012-03-12 19:04:45 +00:00
|
|
|
|
2013-09-22 00:27:25 +00:00
|
|
|
head do
|
|
|
|
url '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
|
|
|
|
depends_on 'automake' => :build
|
|
|
|
end
|
2012-03-12 19:04:45 +00:00
|
|
|
|
|
|
|
depends_on 'pkg-config' => :build
|
|
|
|
depends_on 'protobuf'
|
|
|
|
|
|
|
|
def install
|
2012-09-06 03:59:43 +00:00
|
|
|
system "./autogen.sh" if build.head?
|
2012-03-12 19:04:45 +00:00
|
|
|
|
|
|
|
# Upstream prefers O2:
|
|
|
|
# https://github.com/keithw/mosh/blob/master/README.md
|
|
|
|
ENV.O2
|
2013-08-29 18:20:56 +00:00
|
|
|
system "./configure", "--prefix=#{prefix}", "--enable-completion"
|
2012-03-12 19:04:45 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|