aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorseph2012-03-12 15:04:45 -0400
committerAdam Vandenberg2012-03-17 08:37:12 -0700
commita72568498135f0f9c89fccf6a56ba752c658ed67 (patch)
tree108a5052bab5950535d94b650e24d367b015ffce /Library
parentb6f6446d1961a31ac7798b00c00a7f29d0a54d31 (diff)
downloadhomebrew-a72568498135f0f9c89fccf6a56ba752c658ed67.tar.bz2
mobile-shell 1.0
Closes #10911. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/mobile-shell.rb23
1 files changed, 23 insertions, 0 deletions
diff --git a/Library/Formula/mobile-shell.rb b/Library/Formula/mobile-shell.rb
new file mode 100644
index 000000000..9fbb11007
--- /dev/null
+++ b/Library/Formula/mobile-shell.rb
@@ -0,0 +1,23 @@
+require 'formula'
+
+class MobileShell < Formula
+ homepage 'http://mosh.mit.edu/'
+ url 'https://github.com/downloads/keithw/mosh/mosh-1.0.tar.gz'
+ md5 'c53723f8579789adf535215dfd5e562a'
+
+ 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