ht: fix for Xcode 9
Closes #25215. Signed-off-by: FX Coudert <fxcoudert@gmail.com>
This commit is contained in:
parent
3c1411b3a8
commit
b9ca9ee5e3
1 changed files with 4 additions and 0 deletions
|
@ -16,6 +16,10 @@ class Ht < Formula
|
|||
depends_on "lzo"
|
||||
|
||||
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"
|
||||
system "./configure", "--disable-dependency-tracking",
|
||||
"--prefix=#{prefix}",
|
||||
|
|
Loading…
Reference in a new issue