blob: 409d7d4b4bf31c6632026fea013e0676f623ce4b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
require 'formula'
class Cppcheck < Formula
url 'http://downloads.sourceforge.net/project/cppcheck/cppcheck/1.43/cppcheck-1.43.tar.bz2'
homepage 'http://sourceforge.net/apps/mediawiki/cppcheck/index.php?title=Main_Page'
md5 '303792836a890be1cda84d13efaf7e9b'
head 'git://github.com/danmar/cppcheck.git'
# Do not strip binaries, or else it fails to run.
def skip_clean?(path); true end
def install
# Pass to make variables.
system "make"
system "make", "DESTDIR=#{prefix}", "BIN=#{bin}", "install"
# Man pages aren't installed, they require docbook schemas which I don't know how to install.
end
end
|