Skip to content

Commit

Permalink
libwebsockets 2.1.1
Browse files Browse the repository at this point in the history
Closes #10094.

Signed-off-by: Alex Dunn <dunn.alex@gmail.com>
  • Loading branch information
tsl0922 authored and dunn committed Feb 19, 2017
1 parent 48cb3d7 commit 2aab444
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 3 deletions.
23 changes: 21 additions & 2 deletions Formula/libwebsockets.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
class Libwebsockets < Formula
desc "C websockets server library"
homepage "https://libwebsockets.org"
url "https://github.com/warmcat/libwebsockets/archive/v2.1.0.tar.gz"
sha256 "bcc96aaa609daae4d3f7ab1ee480126709ef4f6a8bf9c85de40aae48e38cce66"
url "https://github.com/warmcat/libwebsockets/archive/v2.1.1.tar.gz"
sha256 "96183cbdfcd6e6a3d9465e854a924b7bfde6c8c6d3384d6159ad797c2e823b4d"
head "https://github.com/warmcat/libwebsockets.git"

bottle do
Expand All @@ -19,4 +19,23 @@ def install
system "make"
system "make", "install"
end

test do
(testpath/"test.c").write <<-EOS.undent
#include <openssl/ssl.h>
#include <libwebsockets.h>
int main()
{
struct lws_context_creation_info info;
memset(&info, 0, sizeof(info));
struct lws_context *context;
context = lws_create_context(&info);
lws_context_destroy(context);
return 0;
}
EOS
system ENV.cc, "test.c", "-I#{Formula["openssl"].opt_prefix}/include", "-lwebsockets", "-o", "test"
system "./test"
end
end
2 changes: 1 addition & 1 deletion Formula/mosquitto.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ class Mosquitto < Formula
homepage "https://mosquitto.org/"
url "https://mosquitto.org/files/source/mosquitto-1.4.10.tar.gz"
sha256 "437648d68a4a781dd8d913814cd5451f59ab4a5fcf84cccaf7c36e6a07459770"
revision 1
revision 2

bottle do
sha256 "a046aab3261d705d49201f28c7475d232fac3911abfe74f798bb5ebfb2fb726c" => :sierra
Expand Down
1 change: 1 addition & 0 deletions Formula/ttyd.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ class Ttyd < Formula
url "https://github.com/tsl0922/ttyd/archive/1.3.0.tar.gz"
sha256 "1b756ff3782f31ec4677cde4642bc3ef44d52d3b85625eed402405c689d877c0"
head "https://github.com/tsl0922/ttyd.git"
revision 1

bottle do
cellar :any
Expand Down

0 comments on commit 2aab444

Please sign in to comment.