18 lines
633 B
Ruby
18 lines
633 B
Ruby
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
|