blob: 0297eb42bc87232ffd9ec9f8771735b5aa328457 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
  | 
require 'formula'
class MobileShell < Formula
  homepage 'http://mosh.mit.edu/'
  url 'https://github.com/downloads/keithw/mosh/mosh-1.1.3.tar.gz'
  md5 'de507695b6f67523bc81596f97220a9a'
  head 'https://github.com/keithw/mosh.git'
  depends_on 'pkg-config' => :build
  depends_on 'protobuf'
  depends_on 'boost'
  def install
    system "./autogen.sh" if ARGV.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
  |