2016-09-27 23:39:30 +00:00
|
|
|
class Ttyd < Formula
|
|
|
|
desc "Command-line tool for sharing terminal over the web"
|
|
|
|
homepage "https://github.com/tsl0922/ttyd"
|
2017-02-11 12:34:43 +00:00
|
|
|
url "https://github.com/tsl0922/ttyd/archive/1.3.0.tar.gz"
|
|
|
|
sha256 "1b756ff3782f31ec4677cde4642bc3ef44d52d3b85625eed402405c689d877c0"
|
2016-09-27 23:39:30 +00:00
|
|
|
head "https://github.com/tsl0922/ttyd.git"
|
2017-02-18 02:53:22 +00:00
|
|
|
revision 1
|
2016-09-27 23:39:30 +00:00
|
|
|
|
2016-10-13 04:06:13 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
2017-02-19 02:08:53 +00:00
|
|
|
sha256 "0b644f9d629a539050d446bec87abb9d924a1ae3e0897ec6e34805a96b6aa847" => :sierra
|
|
|
|
sha256 "ad6cb93580f702930a7f9dba957eb4f98b401eb64d3da55ad1b07dafa1086ecb" => :el_capitan
|
|
|
|
sha256 "6e043c662898cd777224f43a2ed62283b6b82cac9bfa5825d917239bab4f3391" => :yosemite
|
2016-10-13 04:06:13 +00:00
|
|
|
end
|
|
|
|
|
2016-09-27 23:39:30 +00:00
|
|
|
depends_on "cmake" => :build
|
|
|
|
depends_on "pkg-config" => :build
|
|
|
|
depends_on "openssl"
|
|
|
|
depends_on "json-c"
|
|
|
|
depends_on "libwebsockets"
|
|
|
|
|
|
|
|
def install
|
|
|
|
cmake_args = std_cmake_args + ["-DOPENSSL_ROOT_DIR=#{Formula["openssl"].opt_prefix}"]
|
|
|
|
system "cmake", ".", *cmake_args
|
|
|
|
system "make", "install"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
assert_match version.to_s, shell_output("#{bin}/ttyd --version")
|
|
|
|
end
|
|
|
|
end
|