ttyd 1.1.0 (new formula)

Closes #5310.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
Shuanglei Tao 2016-09-28 07:39:30 +08:00 committed by Mike McQuaid
parent 8b73ca7b56
commit f9f351bcb1

23
Formula/ttyd.rb Normal file
View file

@ -0,0 +1,23 @@
class Ttyd < Formula
desc "Command-line tool for sharing terminal over the web"
homepage "https://github.com/tsl0922/ttyd"
url "https://github.com/tsl0922/ttyd/archive/1.1.0.tar.gz"
sha256 "12e38c16a34d36384813cbf4b459343185d2fde17cc696aab9b87f2150fd766e"
head "https://github.com/tsl0922/ttyd.git"
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