From a3c234ccef35bf2b068f11664998515c1732546b Mon Sep 17 00:00:00 2001 From: ilovezfs Date: Sat, 3 Dec 2016 23:33:57 -0800 Subject: [PATCH] libmicrohttpd 0.9.52 Closes #6047. Signed-off-by: ilovezfs --- Formula/libmicrohttpd.rb | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/Formula/libmicrohttpd.rb b/Formula/libmicrohttpd.rb index 6a53161527..db6027410a 100644 --- a/Formula/libmicrohttpd.rb +++ b/Formula/libmicrohttpd.rb @@ -1,9 +1,9 @@ class Libmicrohttpd < Formula desc "Light HTTP/1.1 server library" homepage "https://www.gnu.org/software/libmicrohttpd/" - url "https://ftpmirror.gnu.org/libmicrohttpd/libmicrohttpd-0.9.51.tar.gz" - mirror "https://ftp.gnu.org/gnu/libmicrohttpd/libmicrohttpd-0.9.51.tar.gz" - sha256 "3000bb0ba219061f2ea60251b8ea3d5f694e8c6ce1706bbff57e7e24867a23c7" + url "https://ftpmirror.gnu.org/libmicrohttpd/libmicrohttpd-0.9.52.tar.gz" + mirror "https://ftp.gnu.org/gnu/libmicrohttpd/libmicrohttpd-0.9.52.tar.gz" + sha256 "54797f6e763d417627f89f60e4ae0a431dab0523f92f83def23ea02d0defafea" bottle do cellar :any @@ -23,6 +23,13 @@ class Libmicrohttpd < Formula def install ENV.universal_binary if build.universal? + + # Remove for > 0.9.52 + # Equivalent to upstream commit from 11 Nov 2016 https://gnunet.org/git/libmicrohttpd.git/commit/?id=52e995c0a7741967ab68883a63a8c7e70a4589ee + # "mhd_itc.c: fixed typo preventing build on Solaris and other systems" + inreplace "src/microhttpd/mhd_itc.c", "(0 != fcntl (pip.fd[i],", + "(0 != fcntl (itc.fd[i]," + system "./configure", "--disable-dependency-tracking", "--disable-silent-rules", "--prefix=#{prefix}"