From fe87686b8a766fcc3ec2c27a7f99309211fca039 Mon Sep 17 00:00:00 2001 From: ilovezfs Date: Fri, 30 Sep 2016 13:58:51 -0700 Subject: [PATCH] deheader 1.6 Closes #5449. Signed-off-by: ilovezfs --- Formula/deheader.rb | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/Formula/deheader.rb b/Formula/deheader.rb index 7759a43d49..78e2c034c1 100644 --- a/Formula/deheader.rb +++ b/Formula/deheader.rb @@ -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