4846673453
Closes Homebrew/homebrew#22203. Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
26 lines
747 B
Ruby
26 lines
747 B
Ruby
require 'formula'
|
|
|
|
class MobileShell < Formula
|
|
homepage 'http://mosh.mit.edu/'
|
|
url 'http://mosh.mit.edu/mosh-1.2.4.tar.gz'
|
|
sha1 'b1dffe8562d7b2f4956699849fbe5d18bfd7749e'
|
|
|
|
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 build.head?
|
|
depends_on 'automake' => :build if build.head?
|
|
depends_on 'pkg-config' => :build
|
|
depends_on 'protobuf'
|
|
|
|
def install
|
|
system "./autogen.sh" if build.head?
|
|
|
|
# Upstream prefers O2:
|
|
# https://github.com/keithw/mosh/blob/master/README.md
|
|
ENV.O2
|
|
system "./configure", "--prefix=#{prefix}", "--enable-completion"
|
|
system "make install"
|
|
end
|
|
end
|