2010-05-01 03:07:17 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Cppcheck < Formula
|
2011-09-27 05:45:53 +00:00
|
|
|
url 'http://downloads.sourceforge.net/project/cppcheck/cppcheck/1.50/cppcheck-1.50.tar.bz2'
|
2010-05-01 03:07:17 +00:00
|
|
|
homepage 'http://sourceforge.net/apps/mediawiki/cppcheck/index.php?title=Main_Page'
|
2011-09-27 05:45:53 +00:00
|
|
|
md5 '79ef3898b246ba9c143155d5ad23dbd1'
|
2011-05-27 05:02:55 +00:00
|
|
|
head 'https://github.com/danmar/cppcheck.git'
|
2010-05-01 03:07:17 +00:00
|
|
|
|
2011-09-27 05:45:53 +00:00
|
|
|
depends_on 'pcre'
|
|
|
|
|
2010-07-13 15:07:57 +00:00
|
|
|
# Do not strip binaries, or else it fails to run.
|
2010-04-07 05:58:35 +00:00
|
|
|
skip_clean :all
|
2010-05-01 03:07:17 +00:00
|
|
|
|
2010-07-13 15:07:57 +00:00
|
|
|
def install
|
2010-05-01 03:07:17 +00:00
|
|
|
# Pass to make variables.
|
2010-07-13 15:07:57 +00:00
|
|
|
system "make"
|
|
|
|
system "make", "DESTDIR=#{prefix}", "BIN=#{bin}", "install"
|
2010-05-01 03:07:17 +00:00
|
|
|
# Man pages aren't installed, they require docbook schemas which I don't know how to install.
|
|
|
|
end
|
|
|
|
end
|