diff options
| author | Theo Wadsley | 2010-05-01 13:07:17 +1000 |
|---|---|---|
| committer | Adam Vandenberg | 2010-05-12 07:43:23 -0700 |
| commit | d6409a63d69ed2eb34eb7c9e451f95ec3417989f (patch) | |
| tree | bb66e07d6411b8d63f24268a96384041585245af /Library | |
| parent | 411402049d0c2bde48b252b5fd0661fc4cd76308 (diff) | |
| download | homebrew-d6409a63d69ed2eb34eb7c9e451f95ec3417989f.tar.bz2 | |
Add new cppcheck formula.
Cppcheck - A tool for static C/C++ code analysis
http://sourceforge.net/apps/mediawiki/cppcheck/index.php?title=Main_Page
Doesn't have man pages yet, requires docbook files to generate them.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
* Add head
* Update to Homebrew style
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/cppcheck.rb | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/Library/Formula/cppcheck.rb b/Library/Formula/cppcheck.rb new file mode 100644 index 000000000..d9b43abc5 --- /dev/null +++ b/Library/Formula/cppcheck.rb @@ -0,0 +1,17 @@ +require 'formula' + +class Cppcheck < Formula + url 'http://github.com/danmar/cppcheck/tarball/1.42' + homepage 'http://sourceforge.net/apps/mediawiki/cppcheck/index.php?title=Main_Page' + md5 'de8ffbd9d02c4ec01047ef7fd9f208cd' + head 'git://github.com/danmar/cppcheck.git' + + def install + # Need to remove "-Wlogical-op" from c++ flags. + cxxflags = "-Wall -Wextra -pedantic -Wfloat-equal -Wcast-qual -O2 -DNDEBUG" + + # Pass to make variables. + system "make", "BIN=#{bin}", "CXXFLAGS=#{cxxflags}", "install" + # Man pages aren't installed, they require docbook schemas which I don't know how to install. + end +end |
