Skip to content

Commit

Permalink
cppcheck: rename qt5 to qt.
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeMcQuaid committed Apr 6, 2017
1 parent 989be10 commit 1944974
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Formula/cppcheck.rb
Expand Up @@ -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

Expand All @@ -40,7 +41,7 @@ def install
# 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",
Expand Down

0 comments on commit 1944974

Please sign in to comment.