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 Homebrew/homebrew#37511. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
parent
1fd6eb993c
commit
e175a2015d
1 changed files with 11 additions and 7 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue