deheader 1.6
Closes #5449. Signed-off-by: ilovezfs <ilovezfs@icloud.com>
This commit is contained in:
parent
a49b381d86
commit
fe87686b8a
1 changed files with 15 additions and 6 deletions
|
@ -1,9 +1,9 @@
|
|||
class Deheader < Formula
|
||||
desc "Analyze C/C++ files for unnecessary headers"
|
||||
homepage "http://www.catb.org/~esr/deheader"
|
||||
url "http://www.catb.org/~esr/deheader/deheader-1.4.tar.gz"
|
||||
mirror "https://mirrors.ocf.berkeley.edu/debian/pool/main/d/deheader/deheader_1.4.orig.tar.gz"
|
||||
sha256 "ee42443cda39d2827a2cee551412d54cd740f0ef0d43b6b53c9ae38bc19887e5"
|
||||
url "http://www.catb.org/~esr/deheader/deheader-1.6.tar.gz",
|
||||
:using => :nounzip
|
||||
sha256 "3b99665c4f0dfda31d200bf2528540d6898cb846499ee91effa2e8f72aff3a60"
|
||||
head "https://gitlab.com/esr/deheader.git"
|
||||
|
||||
bottle do
|
||||
|
@ -19,9 +19,18 @@ class Deheader < Formula
|
|||
def install
|
||||
ENV["XML_CATALOG_FILES"] = "#{etc}/xml/catalog"
|
||||
|
||||
system "make"
|
||||
bin.install "deheader"
|
||||
man1.install "deheader.1"
|
||||
# Remove for > 1.6
|
||||
# Fix "deheader-1.6/deheader.1: Can't create 'deheader-1.6/deheader.1'"
|
||||
# See https://gitlab.com/esr/deheader/commit/ea5d8d4
|
||||
system "/usr/bin/tar", "-xvqf", "deheader-1.6.tar.gz",
|
||||
"deheader-1.6/deheader.1"
|
||||
system "/usr/bin/tar", "-xvf", "deheader-1.6.tar.gz", "--exclude",
|
||||
"deheader-1.6/deheader.1"
|
||||
cd "deheader-1.6" do
|
||||
system "make"
|
||||
bin.install "deheader"
|
||||
man1.install "deheader.1"
|
||||
end
|
||||
end
|
||||
|
||||
test do
|
||||
|
|
Loading…
Reference in a new issue