From mboxrd@z Thu Jan 1 00:00:00 1970 From: Roel Janssen Subject: [PATCH] gnu: Add cppcheck. Date: Wed, 02 Mar 2016 13:32:13 +0100 Message-ID: <87ziuhvz5e.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56142) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ab5wy-00081v-D2 for guix-devel@gnu.org; Wed, 02 Mar 2016 07:32:21 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ab5ws-0002HA-Rc for guix-devel@gnu.org; Wed, 02 Mar 2016 07:32:20 -0500 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:57989) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ab5ws-0002Gz-NT for guix-devel@gnu.org; Wed, 02 Mar 2016 07:32:14 -0500 Received: from [143.121.239.252] (port=32842 helo=roel-tp) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1ab5ws-0006Uh-4J for guix-devel@gnu.org; Wed, 02 Mar 2016 07:32:14 -0500 List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: guix-devel --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-gnu-cppcheck-Add-cppcheck.patch >From 28ed436f0fdd45a4602503f394603e27e462b20e Mon Sep 17 00:00:00 2001 From: Roel Janssen Date: Wed, 2 Mar 2016 13:29:10 +0100 Subject: [PATCH] gnu: cppcheck: Add cppcheck. * gnu/packages/check.scm (cppcheck): Add variable. --- gnu/packages/check.scm | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/gnu/packages/check.scm b/gnu/packages/check.scm index 21ecd84..ab61979 100644 --- a/gnu/packages/check.scm +++ b/gnu/packages/check.scm @@ -172,3 +172,23 @@ different compilers. Cmocka supports several different message output formats like Test Anything Protocol, Subunit, xUnit XML or the original cmockery output format.") (license asl2.0))) + +(define-public cppcheck + (package + (name "cppcheck") + (version "1.72") + (source (origin + (method url-fetch) + (uri (string-append "https://github.com/danmar/cppcheck/archive/" + version ".tar.gz")) + (sha256 + (base32 "0zxaixhqi4vmj7xj56gzadggcbjhbjjm6abyr86qlan23sg98667")) + (file-name (string-append name "-" version ".tar.gz")))) + (build-system cmake-build-system) + (home-page "http://cppcheck.sourceforge.net") + (synopsis "Static C/C++ code analyzer") + (description "Unlike C/C++ compilers and many other analysis tools it does +not detect syntax errors in the code. Cppcheck primarily detects the types of +bugs that the compilers normally do not detect. The goal is to detect only +real errors in the code (i.e. have zero false positives).") + (license license:gpl3+))) -- 2.5.0 --=-=-= Content-Type: text/plain Dear list, Here's a very simple package description for 'cppcheck'. Hopefully, my patch is all right. Kind regards, Roel Janssen --=-=-=--