blob: db3e446655b4aa3e727738513df10c52a9a46b84 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
  | 
require 'formula'
class MobileShell < Formula
  homepage 'http://mosh.mit.edu/'
  url 'https://github.com/downloads/keithw/mosh/mosh-1.2.3.tar.gz'
  sha1 '3bbcc560a5968806681465d83758d5c3abee9607'
  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
  |