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"
|
2016-11-27 12:58:33 +00:00
|
|
|
url "https://github.com/tsl0922/ttyd/archive/1.2.1.tar.gz"
|
|
|
|
sha256 "6f4f5e30d92ea1694ce528bdebb892a92aac5dda1ce13ea3b1ce7b865b971f85"
|
2016-09-27 23:39:30 +00:00
|
|
|
head "https://github.com/tsl0922/ttyd.git"
|
2016-12-25 03:03:31 +00:00
|
|
|
revision 1
|
2016-09-27 23:39:30 +00:00
|
|
|
|
2016-10-13 04:06:13 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
2016-12-25 03:42:14 +00:00
|
|
|
sha256 "549b8552e837210e4482058acd5748753d5a738069f449d929019cfa56fed2f2" => :sierra
|
|
|
|
sha256 "c5fbad8edbf3b04f748dbc3315e2ff9cf1b5f3d66f2a236527fa87ef33c55a94" => :el_capitan
|
|
|
|
sha256 "8da55f39a2c875c339da444cf90303505ddc5c27d4a2f63ccf48cb6610d19f36" => :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
|