From c5794b76f296388738fe7b10a14397a125496562 Mon Sep 17 00:00:00 2001 From: Mitchell Blank Jr Date: Sat, 5 Dec 2020 16:43:24 +0000 Subject: [PATCH] a2ps: work around ./configure issues with Xcode 12 --- Formula/a2ps.rb | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/Formula/a2ps.rb b/Formula/a2ps.rb index f3e78bd471b97..baa6adfae5bde 100644 --- a/Formula/a2ps.rb +++ b/Formula/a2ps.rb @@ -6,6 +6,10 @@ class A2ps < Formula sha256 "f3ae8d3d4564a41b6e2a21f237d2f2b104f48108591e8b83497500182a3ab3a4" license "GPL-3.0-or-later" + livecheck do + url :stable + end + bottle do rebuild 3 sha256 "98a293e2d83134c9a1c35026f68207d9fc2ac1bde9d7d15dd29849d7d9c5b237" => :catalina @@ -21,9 +25,6 @@ class A2ps < Formula satisfy { HOMEBREW_PREFIX.to_s == Homebrew::DEFAULT_PREFIX } end - # Fails to build on Catalina. No new release since 2007 - disable! because: :does_not_build - # Software was last updated in 2007. # https://svn.macports.org/ticket/20867 # https://trac.macports.org/ticket/18255 @@ -44,6 +45,9 @@ class A2ps < Formula end def install + # Work around configure issues with Xcode 12 + ENV.append "CFLAGS", "-Wno-implicit-function-declaration" + system "./configure", "--disable-debug", "--disable-dependency-tracking", "--prefix=#{prefix}", "--sysconfdir=#{etc}", "--with-lispdir=#{elisp}"