mosh 1.2.4.95rc2 (devel)
Closes Homebrew/homebrew#41148. Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
This commit is contained in:
parent
805c0e8d20
commit
5f415b3c65
1 changed files with 17 additions and 12 deletions
|
@ -1,5 +1,3 @@
|
||||||
require "formula"
|
|
||||||
|
|
||||||
class MobileShell < Formula
|
class MobileShell < Formula
|
||||||
desc "Remote terminal application"
|
desc "Remote terminal application"
|
||||||
homepage "http://mosh.mit.edu/"
|
homepage "http://mosh.mit.edu/"
|
||||||
|
@ -13,6 +11,14 @@ class MobileShell < Formula
|
||||||
sha256 "4d480c213adba08197a671939466accbf9019365895f01452278a51345b168c0" => :mountain_lion
|
sha256 "4d480c213adba08197a671939466accbf9019365895f01452278a51345b168c0" => :mountain_lion
|
||||||
end
|
end
|
||||||
|
|
||||||
|
devel do
|
||||||
|
url "https://github.com/keithw/mosh/archive/mosh-1.2.4.95rc2.tar.gz"
|
||||||
|
sha256 "56571fb1cb9c9714013ab0fc813863d58e0f5c7d320430aa05df952295e046a7"
|
||||||
|
|
||||||
|
depends_on "autoconf" => :build
|
||||||
|
depends_on "automake" => :build
|
||||||
|
end
|
||||||
|
|
||||||
head do
|
head do
|
||||||
url "https://github.com/keithw/mosh.git", :shallow => false
|
url "https://github.com/keithw/mosh.git", :shallow => false
|
||||||
|
|
||||||
|
@ -22,32 +28,31 @@ class MobileShell < Formula
|
||||||
|
|
||||||
option "with-check", "Run build-time tests"
|
option "with-check", "Run build-time tests"
|
||||||
|
|
||||||
depends_on "openssl"
|
|
||||||
depends_on "pkg-config" => :build
|
depends_on "pkg-config" => :build
|
||||||
|
depends_on "openssl"
|
||||||
depends_on "protobuf"
|
depends_on "protobuf"
|
||||||
|
|
||||||
def install
|
def install
|
||||||
system "./autogen.sh" if build.head?
|
|
||||||
|
|
||||||
# teach mosh to locate mosh-client without referring
|
# teach mosh to locate mosh-client without referring
|
||||||
# PATH to support launching outside shell e.g. via launcher
|
# PATH to support launching outside shell e.g. via launcher
|
||||||
#
|
# This has landed in devel and head.
|
||||||
# In HEAD, mosh is generated from mosh.pl, This will be in 1.2.5, coming soon.
|
if build.stable?
|
||||||
if build.head?
|
|
||||||
inreplace "scripts/mosh.pl", "'mosh-client", "\'#{bin}/mosh-client"
|
|
||||||
else
|
|
||||||
inreplace "scripts/mosh", "'mosh-client", "\'#{bin}/mosh-client"
|
inreplace "scripts/mosh", "'mosh-client", "\'#{bin}/mosh-client"
|
||||||
|
else
|
||||||
|
system "./autogen.sh"
|
||||||
|
inreplace "scripts/mosh.pl", "'mosh-client", "\'#{bin}/mosh-client"
|
||||||
end
|
end
|
||||||
|
|
||||||
# Upstream prefers O2:
|
# Upstream prefers O2:
|
||||||
# https://github.com/keithw/mosh/blob/master/README.md
|
# https://github.com/keithw/mosh/blob/master/README.md
|
||||||
ENV.O2
|
ENV.O2
|
||||||
system "./configure", "--prefix=#{prefix}", "--enable-completion"
|
system "./configure", "--prefix=#{prefix}", "--enable-completion"
|
||||||
system "make", "check" if build.with? "check"
|
system "make", "check" if build.with?("check") || build.bottle?
|
||||||
system "make", "install"
|
system "make", "install"
|
||||||
end
|
end
|
||||||
|
|
||||||
test do
|
test do
|
||||||
ENV["TERM"]="xterm"
|
ENV["TERM"] = "xterm"
|
||||||
system "#{bin}/mosh-client", "-c"
|
system "#{bin}/mosh-client", "-c"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue