2012-03-12 19:04:45 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class MobileShell < Formula
|
|
|
|
homepage 'http://mosh.mit.edu/'
|
2012-10-21 16:10:54 +00:00
|
|
|
url 'https://github.com/downloads/keithw/mosh/mosh-1.2.3.tar.gz'
|
2012-10-21 18:01:56 +00:00
|
|
|
sha1 '3bbcc560a5968806681465d83758d5c3abee9607'
|
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
|
2012-09-06 03:59:43 +00:00
|
|
|
depends_on 'autoconf' => :build if build.head?
|
2012-10-06 19:06:56 +00:00
|
|
|
depends_on 'automake' => :build if build.head?
|
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
|
|
|
|
system "./configure", "--prefix=#{prefix}"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|