saldl: fix build on 10.11 and 10.12

Closes #9390.

Signed-off-by: Tomasz Pajor <tomek@polishgeeks.com>
This commit is contained in:
JCount 2017-01-28 14:11:30 -05:00 committed by Tomasz Pajor
parent 27440aebbf
commit a8cb72c0df

View file

@ -25,9 +25,18 @@ class Saldl < Formula
end
def install
ENV.refurbish_args
# a2x/asciidoc needs this to build the man page successfully
ENV["XML_CATALOG_FILES"] = "#{etc}/xml/catalog"
# Fixes clock_gettime build error on macOS 10.11
# Reported 28 January 2017 https://github.com/saldl/saldl/issues/8
if MacOS.version == "10.11" && MacOS::Xcode.installed? && MacOS::Xcode.version >= "8.0"
inreplace "wscript", "clock_gettime(CLOCK_MONOTONIC_RAW, &tp);",
"not_a_function(NOT_A_SYMBOL, &tp);"
end
args = ["--prefix=#{prefix}"]
# head uses git describe to acquire a version