# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
description Static analysis of C and C++ code.
long_description Cppcheck is an analysis tool for C and C++ code. Unlike \
compilers and many other analysis tools, we do not detect \
syntax errors. Cppcheck only detects the types of bugs that \
the compilers normally fail to detect. The goal is no false \
homepage http://cppcheck.sourceforge.net/
master_sites sourceforge:project/cppcheck/${version}
checksums rmd160 3b56239fecc0d3995ac3ea0311571c68c77ff85f \
sha256 850beb591bb760b9a236ee481e9f6db4e0fed187ec176545de97fd3e1590e8e6 \
depends_build port:libxslt \
build.args CXX="${configure.cxx} [get_canonical_archflags cxx]" \
HAVE_RULES=yes CFGDIR=${prefix}/share/cppcheck \
DB2MAN=${prefix}/share/xsl/docbook-xsl-nons/manpages/docbook.xsl
destroot.args PREFIX=${prefix}
notes "If you've updated cppcheck from a previous version," \
"you may want to replace the included config files:" \
"sudo find ${prefix}/share/cppcheck -type f -name \"*.dist\" -exec bash -c 'f=\"\{\}\"; cp \"\$f\" \"\$\{f%.dist\}\"' \\;"
xinstall -m 444 ${worksrcpath}/cppcheck.1 ${destroot}${prefix}/share/man/man1
xinstall -d ${destroot}${prefix}/share/cppcheck
foreach f [glob -tails -directory ${worksrcpath}/cfg *] {
copy ${worksrcpath}/cfg/${f} ${destroot}${prefix}/share/cppcheck/${f}.dist