aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorChilledheart2014-10-13 10:12:10 +0800
committerJack Nagel2014-10-16 22:41:35 -0500
commit057964de4b52713e274fe012928e107f8fbcb86f (patch)
tree10790fc2e540630d2df56d5bec607bb313512189 /Library/Formula
parent56d800d115bdc2aec6266e08d91066352d369492 (diff)
downloadhomebrew-057964de4b52713e274fe012928e107f8fbcb86f.tar.bz2
mosh: add build-time check option
Closes #33095. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/mobile-shell.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/Library/Formula/mobile-shell.rb b/Library/Formula/mobile-shell.rb
index 7e821547c..3b6538541 100644
--- a/Library/Formula/mobile-shell.rb
+++ b/Library/Formula/mobile-shell.rb
@@ -13,6 +13,8 @@ class MobileShell < Formula
depends_on "automake" => :build
end
+ option "with-check", "Run build-time tests"
+
depends_on "openssl"
depends_on "pkg-config" => :build
depends_on "protobuf"
@@ -28,6 +30,7 @@ class MobileShell < Formula
# https://github.com/keithw/mosh/blob/master/README.md
ENV.O2
system "./configure", "--prefix=#{prefix}", "--enable-completion"
+ system "make", "check" if build.with? "check"
system "make", "install"
end
end