saldl: fix build on 10.11 and 10.12
Closes #9390. Signed-off-by: Tomasz Pajor <tomek@polishgeeks.com>
This commit is contained in:
parent
27440aebbf
commit
a8cb72c0df
1 changed files with 9 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue