From 5513359b920dcbc2f91e592159fef139a87664ac Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Tue, 13 Jul 2010 08:07:57 -0700 Subject: Bump cppcheck to 1.43 and stop stripping. --- Library/Formula/cppcheck.rb | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'Library/Formula') diff --git a/Library/Formula/cppcheck.rb b/Library/Formula/cppcheck.rb index d9b43abc5..409d7d4b4 100644 --- a/Library/Formula/cppcheck.rb +++ b/Library/Formula/cppcheck.rb @@ -1,17 +1,18 @@ require 'formula' class Cppcheck < Formula - url 'http://github.com/danmar/cppcheck/tarball/1.42' + 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 'de8ffbd9d02c4ec01047ef7fd9f208cd' + md5 '303792836a890be1cda84d13efaf7e9b' 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" + # Do not strip binaries, or else it fails to run. + def skip_clean?(path); true end + def install # Pass to make variables. - system "make", "BIN=#{bin}", "CXXFLAGS=#{cxxflags}", "install" + 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 -- cgit v1.2.3