darkstat: fix on 10.12 and newer

Closes #19168.

Signed-off-by: FX Coudert <fxcoudert@gmail.com>
master
FX Coudert 2017-10-08 12:54:08 +02:00
parent 8c3af6a9b0
commit e945de6e70
1 changed files with 7 additions and 0 deletions

View File

@ -18,6 +18,13 @@ class Darkstat < Formula
depends_on "autoconf" => :build
end
# Patch reported to upstream on 2017-10-08
# Work around `redefinition of clockid_t` issue on 10.12 SDK or newer
patch do
url "https://raw.githubusercontent.com/Homebrew/formula-patches/442ce4a5/darkstat/clock_gettime.patch"
sha256 "001b81d417a802f16c5bc4577c3b840799511a79ceedec27fc7ff1273df1018b"
end
def install
system "autoreconf", "-iv" if build.head?
system "./configure", "--disable-debug", "--prefix=#{prefix}"