Created
July 13, 2010 00:12
-
-
Save rpavlik/473266 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/Library/Formula/cppcheck.rb b/Library/Formula/cppcheck.rb | |
index d9b43ab..409d7d4 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment