diff --git a/Formula/libwebsockets.rb b/Formula/libwebsockets.rb index c315276cf8bfc2..0a78427057b100 100644 --- a/Formula/libwebsockets.rb +++ b/Formula/libwebsockets.rb @@ -1,14 +1,13 @@ class Libwebsockets < Formula desc "C websockets server library" homepage "https://libwebsockets.org" - url "https://github.com/warmcat/libwebsockets.git", - tag: "v4.3.0", - revision: "a5aae049b2a386712e1be3b417915c0d44c7e675" + url "https://github.com/warmcat/libwebsockets/archive/v4.3.1.tar.gz" + sha256 "8fdb1454a1b34cd9a6351beaab237a485e6853806101de7e62bd2bc250bb50af" license "MIT" head "https://github.com/warmcat/libwebsockets.git", branch: "main" livecheck do - url "https://github.com/warmcat/libwebsockets" + url :stable regex(/^v?(\d+(?:\.\d+)+)$/i) end @@ -30,16 +29,17 @@ class Libwebsockets < Formula uses_from_macos "zlib" def install - system "cmake", ".", *std_cmake_args, + system "cmake", "-S", ".", "-B", "build", "-DLWS_IPV6=ON", "-DLWS_WITH_HTTP2=ON", "-DLWS_WITH_LIBEVENT=ON", "-DLWS_WITH_LIBUV=ON", "-DLWS_WITH_PLUGINS=ON", "-DLWS_WITHOUT_TESTAPPS=ON", - "-DLWS_UNIX_SOCK=ON" - system "make" - system "make", "install" + "-DLWS_UNIX_SOCK=ON", + *std_cmake_args + system "cmake", "--build", "build" + system "cmake", "--install", "build" end test do diff --git a/Formula/ttyd.rb b/Formula/ttyd.rb index a80ec280efcc5a..2b28be8f155fad 100644 --- a/Formula/ttyd.rb +++ b/Formula/ttyd.rb @@ -4,7 +4,7 @@ class Ttyd < Formula url "https://github.com/tsl0922/ttyd/archive/1.6.3.tar.gz" sha256 "1116419527edfe73717b71407fb6e06f46098fc8a8e6b0bb778c4c75dc9f64b9" license "MIT" - revision 4 + revision 5 head "https://github.com/tsl0922/ttyd.git", branch: "main" bottle do @@ -27,10 +27,12 @@ class Ttyd < Formula uses_from_macos "vim" # needed for xxd def install - system "cmake", ".", - *std_cmake_args, - "-DOPENSSL_ROOT_DIR=#{Formula["openssl@1.1"].opt_prefix}" - system "make", "install" + system "cmake", "-S", ".", "-B", "build", + "-DOPENSSL_ROOT_DIR=#{Formula["openssl@1.1"].opt_prefix}", + "-Dlibwebsockets_DIR=#{Formula["libwebsockets"].opt_lib/"cmake/libwebsockets"}", + *std_cmake_args + system "cmake", "--build", "build" + system "cmake", "--install", "build" end test do