homebrew-core/Formula/mobile-shell.rb
Joonas Kuorilehto 8ffc3838e7 mobile-shell: add build dependency for automake
Closes Homebrew/homebrew#15333.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-10-07 09:41:27 -07:00

26 lines
745 B
Ruby

require 'formula'
class MobileShell < Formula
homepage 'http://mosh.mit.edu/'
url 'https://github.com/downloads/keithw/mosh/mosh-1.2.2.tar.gz'
sha1 'f0227800298d80e9f1353db3b29a807de833d7d2'
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}"
system "make install"
end
end