aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorAlastair Harrison2015-03-08 22:01:31 +0100
committerJack Nagel2015-03-09 21:17:40 -0400
commit042c294979d1a08d2bb6eb2b09a710851171b907 (patch)
tree8a1c275b1145bb7d56ca07c32de092e22863354e /Library/Formula
parent1896105da79bd4e43d30a96dbaa40e98d4d31c90 (diff)
downloadhomebrew-042c294979d1a08d2bb6eb2b09a710851171b907.tar.bz2
cppcheck: Fix head build
- The OSX patch is already in upstream and is only required for cppcheck 1.68. This commit ensures the patch is only applied to the ‘stable’ build. Closes #37511. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/cppcheck.rb18
1 files changed, 11 insertions, 7 deletions
diff --git a/Library/Formula/cppcheck.rb b/Library/Formula/cppcheck.rb
index 20845504d..1ca84e7ac 100644
--- a/Library/Formula/cppcheck.rb
+++ b/Library/Formula/cppcheck.rb
@@ -1,7 +1,16 @@
class Cppcheck < Formula
homepage "http://sourceforge.net/apps/mediawiki/cppcheck/index.php?title=Main_Page"
- url "https://github.com/danmar/cppcheck/archive/1.68.tar.gz"
- sha1 "f08ef07f750f92fafe4f960166072e9d1088d74e"
+
+ stable do
+ url "https://github.com/danmar/cppcheck/archive/1.68.tar.gz"
+ sha1 "f08ef07f750f92fafe4f960166072e9d1088d74e"
+
+ # Upstream patches for OS X + Clang compilation
+ patch do
+ url "https://github.com/danmar/cppcheck/commit/141a071.diff"
+ sha1 "4ccc8d814709d0e221c533a5556da4b1aa5fbead"
+ end
+ end
head "https://github.com/danmar/cppcheck.git"
@@ -19,11 +28,6 @@ class Cppcheck < Formula
depends_on "pcre" if build.with? "rules"
depends_on "qt" if build.with? "gui"
- # Upstream patches for OS X + Clang compilation
- patch do
- url "https://github.com/danmar/cppcheck/commit/141a071.diff"
- sha1 "4ccc8d814709d0e221c533a5556da4b1aa5fbead"
- end
def install
# Man pages aren't installed as they require docbook schemas.