From e76cc5d9e78501c18e76ed777c2061cecae1833c Mon Sep 17 00:00:00 2001 From: jasper Date: Thu, 23 Sep 2010 09:34:51 +0000 Subject: [PATCH] import cppcheck 1.44 Cppcheck is an analysis tool for C/C++ code. Unlike C/C++ compilers and many other analysis tools, we don't detect syntax errors. Cppcheck only detects the types of bugs that the compilers normally fail to detect. The goal is no false positives. from igor zinovik, with tweaks by me ok aja@ --- devel/cppcheck/Makefile | 41 ++++++++++++++++++++++++++++++++++++++++ devel/cppcheck/distinfo | 5 +++++ devel/cppcheck/pkg/DESCR | 4 ++++ devel/cppcheck/pkg/PLIST | 3 +++ 4 files changed, 53 insertions(+) create mode 100644 devel/cppcheck/Makefile create mode 100644 devel/cppcheck/distinfo create mode 100644 devel/cppcheck/pkg/DESCR create mode 100644 devel/cppcheck/pkg/PLIST diff --git a/devel/cppcheck/Makefile b/devel/cppcheck/Makefile new file mode 100644 index 00000000000..a9c5bcba198 --- /dev/null +++ b/devel/cppcheck/Makefile @@ -0,0 +1,41 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2010/09/23 09:34:51 jasper Exp $ + +COMMENT= C/C++ static checker + +DISTNAME= cppcheck-1.44 + +CATEGORIES= devel + +HOMEPAGE= http://cppcheck.sourceforge.net/ + +MAINTAINER= Igor Zinovik + +# GPLv3 +PERMIT_PACKAGE_CDROM= Yes +PERMIT_PACKAGE_FTP= Yes +PERMIT_DISTFILES_CDROM= Yes +PERMIT_DISTFILES_FTP= Yes + +WANTLIB= c m stdc++ + +BUILD_DEPENDS= ::textproc/docbook-xsl \ + ::textproc/libxslt + +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=cppcheck/} + +ALL_TARGET= cppcheck +MAKE_FLAGS= BIN=${PREFIX}/bin CXX="${CXX}" CXXFLAGS="${CXXFLAGS}" + +NO_REGRESS= Yes + +post-build: + cd ${WRKSRC} && \ + ${PREFIX}/bin/xsltproc --novalid --nonet --param man.charmap.use.subset "0" \ + ${PREFIX}/share/xsl/docbook/manpages/docbook.xsl \ + ${WRKSRC}/man/cppcheck.1.xml + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/cppcheck ${PREFIX}/bin/ + ${INSTALL_DATA} ${WRKSRC}/cppcheck.1 ${PREFIX}/man/man1/ + +.include diff --git a/devel/cppcheck/distinfo b/devel/cppcheck/distinfo new file mode 100644 index 00000000000..2ef403a6ce4 --- /dev/null +++ b/devel/cppcheck/distinfo @@ -0,0 +1,5 @@ +MD5 (cppcheck-1.44.tar.gz) = LB3e4pYjoPK1qTLvqiTIbQ== +RMD160 (cppcheck-1.44.tar.gz) = 8ihQup/F0kgfgxPpml9dn6xFg5Y= +SHA1 (cppcheck-1.44.tar.gz) = F/A29CJj41AkT8HQRuw3LuYAQHk= +SHA256 (cppcheck-1.44.tar.gz) = 8OA2gDsnwKF7S9HMkNMnmr9u2Pkhxkjhp+qA30dR8Xw= +SIZE (cppcheck-1.44.tar.gz) = 705243 diff --git a/devel/cppcheck/pkg/DESCR b/devel/cppcheck/pkg/DESCR new file mode 100644 index 00000000000..6341230588d --- /dev/null +++ b/devel/cppcheck/pkg/DESCR @@ -0,0 +1,4 @@ +Cppcheck is an analysis tool for C/C++ code. Unlike C/C++ compilers and +many other analysis tools, we don't detect syntax errors. Cppcheck only +detects the types of bugs that the compilers normally fail to detect. +The goal is no false positives. diff --git a/devel/cppcheck/pkg/PLIST b/devel/cppcheck/pkg/PLIST new file mode 100644 index 00000000000..1dc7596059f --- /dev/null +++ b/devel/cppcheck/pkg/PLIST @@ -0,0 +1,3 @@ +@comment $OpenBSD: PLIST,v 1.1.1.1 2010/09/23 09:34:51 jasper Exp $ +@bin bin/cppcheck +@man man/man1/cppcheck.1