ht: fix for Xcode 9

Closes #25215.

Signed-off-by: FX Coudert <fxcoudert@gmail.com>
This commit is contained in:
FX Coudert 2018-03-13 10:20:34 +01:00
parent 3c1411b3a8
commit b9ca9ee5e3

View file

@ -16,6 +16,10 @@ class Ht < Formula
depends_on "lzo" depends_on "lzo"
def install def install
# Fix compilation with Xcode 9
# https://github.com/sebastianbiallas/ht/pull/18
inreplace "htapp.cc", "(abs(a - b) > 1)", "(abs((int)a - (int)b))"
chmod 0755, "./install-sh" chmod 0755, "./install-sh"
system "./configure", "--disable-dependency-tracking", system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}", "--prefix=#{prefix}",