Ticket #50267: cppcheck.diff
File cppcheck.diff, 2.5 KB (added by xythobuz@…, 9 years ago) |
---|
-
Portfile
old new 5 5 PortGroup cxx11 1.0 6 6 7 7 name cppcheck 8 version 1.7 18 version 1.72 9 9 categories devel 10 10 license GPL-3 11 11 platforms darwin … … 22 22 homepage http://cppcheck.sourceforge.net/ 23 23 master_sites sourceforge:project/cppcheck/cppcheck/${version} 24 24 25 checksums rmd160 232e5f9e15eb722523abbebb22bcfa3c17a7e7b5\26 sha256 a8768e1feef5cafa5e2dbce92fbaf95b70b4457ea8e1ed3bad52000d2286d3c825 checksums rmd160 62444a704fc0f6a7301aad3c763c297a3d727788 \ 26 sha256 459108c81ea607c8bd3da842d83990d6555e0351d0fe4bb21c2c72110274f393 27 27 28 28 depends_build port:libxslt \ 29 29 port:docbook-xsl … … 46 46 47 47 notes "If you've updated cppcheck from a previous version," \ 48 48 "you may want to replace the included config files:" \ 49 "sudo find /opt/local/share/cppcheck -type f -name \"*.cfg.dist\" -exec bash -c 'f=\"\{\}\"; cp \"\$f\" \"\$\{f%.cfg.dist\}.cfg\"' \\;"49 "sudo find ${prefix}/share/cppcheck -type f -name \"*.dist\" -exec bash -c 'f=\"\{\}\"; cp \"\$f\" \"\$\{f%.dist\}\"' \\;" 50 50 51 51 post-destroot { 52 52 xinstall -m 444 ${worksrcpath}/cppcheck.1 ${destroot}${prefix}/share/man/man1 53 53 xinstall -d ${destroot}${prefix}/share/cppcheck 54 54 copy ${worksrcpath}/cfg/avr.cfg ${destroot}${prefix}/share/cppcheck/avr.cfg.dist 55 copy ${worksrcpath}/cfg/cppcheck-cfg.rng ${destroot}${prefix}/share/cppcheck/cppcheck-cfg.rng.dist 55 56 copy ${worksrcpath}/cfg/gnu.cfg ${destroot}${prefix}/share/cppcheck/gnu.cfg.dist 56 57 copy ${worksrcpath}/cfg/gtk.cfg ${destroot}${prefix}/share/cppcheck/gtk.cfg.dist 57 58 copy ${worksrcpath}/cfg/microsoft_sal.cfg ${destroot}${prefix}/share/cppcheck/microsoft_sal.cfg.dist … … 67 68 copy ${prefix}/share/cppcheck/avr.cfg.dist ${prefix}/share/cppcheck/avr.cfg 68 69 } 69 70 71 if {![file exists ${prefix}/share/cppcheck/cppcheck-cfg.rng]} { 72 copy ${prefix}/share/cppcheck/cppcheck-cfg.rng.dist ${prefix}/share/cppcheck/cppcheck-cfg.rng 73 } 74 70 75 if {![file exists ${prefix}/share/cppcheck/gnu.cfg]} { 71 76 copy ${prefix}/share/cppcheck/gnu.cfg.dist ${prefix}/share/cppcheck/gnu.cfg 72 77 }