Skip to content

Commit

Permalink
profanity: depend on autoconf-archive (#5980)
Browse files Browse the repository at this point in the history
According to upstream, autoconf-archive is now a required build-time
dependency if running bootstrap, and adding it allows the ACX_PTHREAD
fix to be removed.
  • Loading branch information
ilovezfs committed Oct 16, 2016
1 parent 8cff017 commit 53f90b2
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions Formula/profanity.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ class Profanity < Formula
url "https://github.com/boothj5/profanity.git"

depends_on "autoconf" => :build
depends_on "autoconf-archive" => :build
depends_on "automake" => :build
depends_on "libtool" => :build
end
Expand All @@ -30,15 +31,7 @@ class Profanity < Formula
depends_on "terminal-notifier" => :optional

def install
if build.head?
# Prevent "configure.ac:87: error: possibly undefined macro: AC_MSG_ERROR"
# Regression due to https://github.com/boothj5/profanity/commit/c908f37
# Reported 16 Oct 2016 https://github.com/boothj5/profanity/issues/870
inreplace "configure.ac", /^ACX_PTHREAD.*/, "ACX_PTHREAD"

system "./bootstrap.sh"
end

system "./bootstrap.sh" if build.head?
system "./configure", "--disable-dependency-tracking",
"--disable-silent-rules",
"--disable-python-plugins",
Expand Down

0 comments on commit 53f90b2

Please sign in to comment.