cloc: fix manpage install

This is a workaround for https://github.com/AlDanial/cloc/issues/571

Fixes #72328

Closes #72358.

Signed-off-by: Sean Molenaar <1484494+SMillerDev@users.noreply.github.com>
Signed-off-by: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com>
master
Mitchell Blank Jr 2021-03-03 02:04:07 +00:00 committed by BrewTestBot
parent e77413c39e
commit 7ef135ff8c
1 changed files with 4 additions and 1 deletions

View File

@ -4,6 +4,7 @@ class Cloc < Formula
url "https://github.com/AlDanial/cloc/archive/1.88.tar.gz"
sha256 "e85c2d1b3ec389d892955cf20b3fa5c797e81136e231d9a09e4f4c62e272f8cd"
license "GPL-2.0-or-later"
revision 1
head "https://github.com/AlDanial/cloc.git"
bottle do
@ -79,7 +80,9 @@ class Cloc < Formula
end
end
system "make", "-C", "Unix", "prefix=#{libexec}", "install"
# Passing in $(PODDATE) needed to work around https://github.com/AlDanial/cloc/issues/571
# in 1.88; remove when fixed.
system "make", "-C", "Unix", "prefix=#{libexec}", "PODDATE=2020-09-12", "install"
bin.install libexec/"bin/cloc"
bin.env_script_all_files(libexec/"bin", PERL5LIB: ENV["PERL5LIB"])
man1.install libexec/"share/man/man1/cloc.1"