aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorBrett Koonce2014-05-19 22:48:36 -0700
committerBrett Koonce2014-05-20 00:04:33 -0700
commitcf329414151a80a7b3630b8d8470f76d8fe98d32 (patch)
treed823688f24692edcdee1e2166ab888767bfd22db /Library/Formula
parent97e75d942ca82a4e728d47af61491e84db616c65 (diff)
downloadhomebrew-cf329414151a80a7b3630b8d8470f76d8fe98d32.tar.bz2
cppcheck 1.65
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/cppcheck.rb22
1 files changed, 11 insertions, 11 deletions
diff --git a/Library/Formula/cppcheck.rb b/Library/Formula/cppcheck.rb
index be552c01a..34074402c 100644
--- a/Library/Formula/cppcheck.rb
+++ b/Library/Formula/cppcheck.rb
@@ -1,23 +1,23 @@
-require 'formula'
+require "formula"
class Cppcheck < Formula
- homepage 'http://sourceforge.net/apps/mediawiki/cppcheck/index.php?title=Main_Page'
- url 'https://github.com/danmar/cppcheck/archive/1.64.tar.gz'
- sha1 'feaa8b3333c20f950a38026461ff407de4ef1ba0'
+ homepage "http://sourceforge.net/apps/mediawiki/cppcheck/index.php?title=Main_Page"
+ url "https://github.com/danmar/cppcheck/archive/1.65.tar.gz"
+ sha1 "df1ebc45defb24c7f21af64bbf9515cedb5f2d8e"
- head 'https://github.com/danmar/cppcheck.git'
+ head "https://github.com/danmar/cppcheck.git"
- option 'no-rules', "Build without rules (no pcre dependency)"
- option 'with-gui', "Build the cppcheck gui (requires Qt)"
+ option "no-rules", "Build without rules (no pcre dependency)"
+ option "with-gui", "Build the cppcheck gui (requires Qt)"
- depends_on 'pcre' unless build.include? 'no-rules'
- depends_on 'qt' if build.with? "gui"
+ depends_on "pcre" unless build.include? "no-rules"
+ depends_on "qt" if build.with? "gui"
def install
# Man pages aren't installed as they require docbook schemas.
# Pass to make variables.
- if build.include? 'no-rules'
+ if build.include? "no-rules"
system "make", "HAVE_RULES=no", "CFGDIR=#{prefix}/cfg"
else
system "make", "HAVE_RULES=yes", "CFGDIR=#{prefix}/cfg"
@@ -32,7 +32,7 @@ class Cppcheck < Formula
# https://github.com/Homebrew/homebrew/issues/27756
inreplace "gui.qrc", "../cfg/", "#{prefix}/cfg/"
- if build.include? 'no-rules'
+ if build.include? "no-rules"
system "qmake", "HAVE_RULES=no"
else
system "qmake"