libcoap 4.1.2

upstream moved to GitHub

Closes #17896.

Signed-off-by: ilovezfs <ilovezfs@icloud.com>
This commit is contained in:
ilovezfs 2017-09-10 07:17:32 -07:00
parent 9a9037224a
commit 11a507070c

View file

@ -1,8 +1,8 @@
class Libcoap < Formula
desc "Lightweight application-protocol for resource-constrained devices"
homepage "https://libcoap.sourceforge.io"
url "https://downloads.sourceforge.net/project/libcoap/coap-18/libcoap-4.1.1.tar.gz"
sha256 "20cd0f58434480aa7e97e93a66ffef4076921de9687b14bd29fbbf18621bd394"
homepage "https://github.com/obgm/libcoap"
url "https://github.com/obgm/libcoap/archive/v4.1.2.tar.gz"
sha256 "f7e26dc232c177336474a14487771037a8fb32e311f5ccd076a00dc04b6d7b7a"
bottle do
cellar :any_skip_relocation
@ -14,14 +14,16 @@ class Libcoap < Formula
sha256 "bf67c05965270e3fd2ce47a3c3832ee9119f75ca06087978041277dd1425f72a" => :mountain_lion
end
depends_on "doxygen" => :build
depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "libtool" => :build
depends_on "pkg-config" => :build
def install
system "./configure", "--prefix=#{prefix}"
system "./autogen.sh"
system "./configure", "--prefix=#{prefix}",
"--disable-examples"
system "make"
include.install "coap.h"
lib.install "libcoap.a"
bin.install "examples/coap-server", "examples/coap-client"
system "make", "install"
end
end