# -*- 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 # $Id: Portfile 102103 2013-01-28 05:54:51Z ryandesign@macports.org $ PortSystem 1.0 name cppcheck version 1.58 categories devel license GPL-3 platforms darwin maintainers johnsy.com:paj-macports 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 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. homepage http://cppcheck.sourceforge.net/ master_sites sourceforge:project/cppcheck/cppcheck/${version} checksums rmd160 a624e933ef2a03d83f85e86e01404e2bdee44aa3 \ sha256 10130266be2913ba215ac24cf83cbe9e150cfb2b0c319717014c3676721f434f depends_build port:libxslt \ port:docbook-xsl depends_lib port:pcre use_configure no variant universal {} build.args CXX="${configure.cxx} [get_canonical_archflags cxx]" \ HAVE_RULES=yes \ DB2MAN=${prefix}/share/xsl/docbook-xsl/manpages/docbook.xsl build.target all man test.run yes test.target test destroot.args PREFIX=${prefix} post-destroot { xinstall -m 444 ${worksrcpath}/cppcheck.1 ${destroot}${prefix}/share/man/man1 }