From 19449748418caa008417d52048bae1916144f09e Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Thu, 6 Apr 2017 09:03:08 +0100 Subject: [PATCH] cppcheck: rename qt5 to qt. --- Formula/cppcheck.rb | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Formula/cppcheck.rb b/Formula/cppcheck.rb index 5639dcd02d..75b0005986 100644 --- a/Formula/cppcheck.rb +++ b/Formula/cppcheck.rb @@ -12,13 +12,14 @@ class Cppcheck < Formula end option "without-rules", "Build without rules (no pcre dependency)" - option "with-qt5", "Build the cppcheck GUI (requires Qt)" + option "with-qt", "Build the cppcheck GUI (requires Qt)" deprecated_option "no-rules" => "without-rules" - deprecated_option "with-gui" => "with-qt5" + deprecated_option "with-gui" => "with-qt" + deprecated_option "with-qt5" => "with-qt" depends_on "pcre" if build.with? "rules" - depends_on "qt5" => :optional + depends_on "qt" => :optional needs :cxx11 @@ -40,7 +41,7 @@ class Cppcheck < Formula # Move the python addons to the cppcheck pkgshare folder (pkgshare/"addons").install Dir.glob(bin/"*.py") - if build.with? "qt5" + if build.with? "qt" cd "gui" do if build.with? "rules" system "qmake", "HAVE_RULES=yes",