Ticket #44537: Portfile-cppcheck.diff
File Portfile-cppcheck.diff, 3.8 KB (added by xythobuz@…, 10 years ago) |
---|
-
Portfile
old new 1 1 # -*- 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 2 2 # $Id: Portfile 118758 2014-04-10 18:13:29Z ryandesign@macports.org $ 3 3 4 PortSystem 1.04 PortSystem 1.0 5 5 6 name cppcheck7 version 1.658 categories devel9 license GPL-310 platforms darwin11 maintainers xythobuz.de:xythobuz6 name cppcheck 7 version 1.66 8 categories devel 9 license GPL-3 10 platforms darwin 11 maintainers xythobuz.de:xythobuz 12 12 13 description Static analysis of C and C++ code.13 description Static analysis of C and C++ code. 14 14 15 long_description Cppcheck is an analysis tool for C and C++ code. Unlike \16 compilers and many other analysis tools, we do not detect \17 syntax errors. Cppcheck only detects the types of bugs that \18 the compilers normally fail to detect. The goal is no false \19 positives.15 long_description Cppcheck is an analysis tool for C and C++ code. Unlike \ 16 compilers and many other analysis tools, we do not detect \ 17 syntax errors. Cppcheck only detects the types of bugs that \ 18 the compilers normally fail to detect. The goal is no false \ 19 positives. 20 20 21 homepage http://cppcheck.sourceforge.net/22 master_sites sourceforge:project/cppcheck/cppcheck/${version}21 homepage http://cppcheck.sourceforge.net/ 22 master_sites sourceforge:project/cppcheck/cppcheck/${version} 23 23 24 checksums rmd160 17a7d54a61faea7a3783a94b18301bce18b1b7ec\25 sha256 f684ae47c4556eea87d04f54e3eb9782fca2ba9ff43adaa29a9271177ee6d7ea24 checksums rmd160 5a5a8a20c5d49adf185a8bb84f4236c6c86d35a3 \ 25 sha256 9ac0379f3a7ff161d5f8ead579434a11634ca288c6ad706eba04696bb7ce93a0 26 26 27 depends_build port:libxslt \28 port:docbook-xsl27 depends_build port:libxslt \ 28 port:docbook-xsl 29 29 30 depends_lib port:pcre30 depends_lib port:pcre 31 31 32 use_configure no 32 compiler.blacklist-append gcc* 33 compiler.fallback-append macports-clang 33 34 34 variant universal {} 35 36 build.args CXX="${configure.cxx} [get_canonical_archflags cxx]" \ 37 HAVE_RULES=yes CFGDIR=${prefix}/share/cppcheck \ 38 DB2MAN=${prefix}/share/xsl/docbook-xsl/manpages/docbook.xsl 39 build.target all man 35 use_configure no 40 36 41 test.run yes 42 test.target test 37 variant universal {} 43 38 44 destroot.args PREFIX=${prefix} 39 build.args CXX="${configure.cxx} [get_canonical_archflags cxx]" \ 40 HAVE_RULES=yes CFGDIR=${prefix}/share/cppcheck \ 41 DB2MAN=${prefix}/share/xsl/docbook-xsl/manpages/docbook.xsl 42 build.target all man 43 44 test.run yes 45 test.target test 46 47 destroot.args PREFIX=${prefix} 48 49 notes "If you've updated cppcheck from a previous version," \ 50 "you may want to replace the included config files:" \ 51 "sudo find /opt/local/share/cppcheck -type f -name \"*.cfg.dist\" -exec bash -c 'f=\"\{\}\"; mv \"\$f\" \"\$\{f%.cfg.dist\}.cfg\"' \\;" 45 52 46 53 post-destroot { 47 54 xinstall -m 444 ${worksrcpath}/cppcheck.1 ${destroot}${prefix}/share/man/man1