blob: d9b43abc5a67f97e40426e47e13bb1685781e973 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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
|