homebrew-core/Formula/cppcheck.rb
Adam Vandenberg 7bd947eb0b Update formulae for version 0.7
* Use new "url" features
* Use keg_only DSL
* Use "skip_clean :all" DSL
* Whitespace and style cleanups
* Make bash invocations less silly
* Use new man2-man8 helpers
* Remove "FileUtils." since it is included in Formula
* Use real names for deps instead of aliases
* ENV.x11 now updates path, so remove that from individual brews
2010-08-07 18:08:53 -07:00

18 lines
617 B
Ruby

require 'formula'
class Cppcheck < Formula
url 'http://downloads.sourceforge.net/project/cppcheck/cppcheck/1.44/cppcheck-1.44.tar.bz2'
homepage 'http://sourceforge.net/apps/mediawiki/cppcheck/index.php?title=Main_Page'
md5 'c8d24c0e7a3db99660f81b8a0568e050'
head 'git://github.com/danmar/cppcheck.git'
# Do not strip binaries, or else it fails to run.
skip_clean :all
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