md: disable (#66347)

* md: fix build under Xcode 12
* disable per @fxcoudert's comment

Co-authored-by: Mitchell Blank Jr <mitch@bodyfour.com>
master
Mitchell Blank Jr 2020-12-07 10:30:44 +00:00 committed by GitHub
parent 694814a13a
commit c7fe84bda5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 1 deletions

View File

@ -15,9 +15,14 @@ class Md < Formula
sha256 "5faf5907b69c2a53c9bbbcfcb908d24c222181490b69116e09102212382be5ea" => :mavericks
end
# https://github.com/Homebrew/homebrew-core/pull/66347#issuecomment-739548996
disable! because: :unmaintained
def install
cd "md" do
system ENV.cc, ENV.cflags, "-o", "md", "md.c"
# Xcode 12 made -Wimplicit-function-declaration an error by default so we need to
# disable that warning to successfully compile:
system ENV.cc, ENV.cflags, "-o", "md", "-Wno-implicit-function-declaration", "md.c"
bin.install "md"
man1.install "md.1"
end