# -*- 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 PortSystem 1.0 PortGroup cxx11 1.1 name cppcheck version 1.84 categories devel license GPL-3 platforms darwin maintainers nomaintainer 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 \ positives. homepage http://cppcheck.sourceforge.net/ master_sites sourceforge:project/cppcheck/${version} use_bzip2 yes checksums rmd160 3b56239fecc0d3995ac3ea0311571c68c77ff85f \ sha256 850beb591bb760b9a236ee481e9f6db4e0fed187ec176545de97fd3e1590e8e6 \ size 1640207 depends_build port:libxslt \ port:docbook-xsl-nons \ port:docbook-xml-4.5 depends_lib port:pcre use_configure no variant universal {} 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 build.target all man test.run yes test.target test 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\}\"' \\;" post-destroot { 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 } } post-activate { foreach f [glob -directory ${prefix}/share/cppcheck *.dist] { if {![file exists [file rootname ${f}]]} { copy ${f} [file rootname ${f}] } } }