Ticket #42352: cppcheck.diff

File cppcheck.diff, 2.6 KB (added by xythobuz@…, 11 years ago)

Updated to cppcheck 1.64

  • Portfile

    old new  
    44PortSystem          1.0
    55
    66name                cppcheck
    7 version             1.60.1
     7version             1.64
    88categories          devel
    99license             GPL-3
    1010platforms           darwin
     
    2121homepage            http://cppcheck.sourceforge.net/
    2222master_sites        sourceforge:project/cppcheck/cppcheck/${version}
    2323
    24 checksums           rmd160  8e90dd5a7f5c485d709d33bc4cf77d58a0b1ec9b \
    25                     sha256  73eb56e5ea268e917c73f64e68744add35409bdc93be99773d814f9cc0a7221e
     24checksums           rmd160  5d5567cbec377fc922288404c6aad53f9b28f42f \
     25                    sha256  a138f51aee3d547c6e37becbe3deb2f8d7b23133c473690ea2fe7f8efc0bdf56
    2626
    2727depends_build       port:libxslt \
    2828                    port:docbook-xsl
     
    3434variant universal {}
    3535
    3636build.args          CXX="${configure.cxx} [get_canonical_archflags cxx]" \
    37                     HAVE_RULES=yes \
     37                    HAVE_RULES=yes CFGDIR=${prefix}/share/cppcheck \
    3838                    DB2MAN=${prefix}/share/xsl/docbook-xsl/manpages/docbook.xsl
    3939build.target        all man
    4040
     
    4545
    4646post-destroot {
    4747    xinstall -m 444 ${worksrcpath}/cppcheck.1 ${destroot}${prefix}/share/man/man1
     48    xinstall -d ${destroot}${prefix}/share/cppcheck
     49    copy ${worksrcpath}/cfg/gtk.cfg ${destroot}${prefix}/share/cppcheck/gtk.cfg.dist
     50    copy ${worksrcpath}/cfg/posix.cfg ${destroot}${prefix}/share/cppcheck/posix.cfg.dist
     51    copy ${worksrcpath}/cfg/qt.cfg ${destroot}${prefix}/share/cppcheck/qt.cfg.dist
     52    copy ${worksrcpath}/cfg/std.cfg ${destroot}${prefix}/share/cppcheck/std.cfg.dist
     53    copy ${worksrcpath}/cfg/windows.cfg ${destroot}${prefix}/share/cppcheck/windows.cfg.dist
     54}
     55
     56post-activate {
     57    if {![file exists ${prefix}/share/cppcheck/gtk.cfg]} {
     58        copy ${prefix}/share/cppcheck/gtk.cfg.dist ${prefix}/share/cppcheck/gtk.cfg
     59    }
     60
     61    if {![file exists ${prefix}/share/cppcheck/posix.cfg]} {
     62        copy ${prefix}/share/cppcheck/posix.cfg.dist ${prefix}/share/cppcheck/posix.cfg
     63    }
     64
     65    if {![file exists ${prefix}/share/cppcheck/qt.cfg]} {
     66        copy ${prefix}/share/cppcheck/qt.cfg.dist ${prefix}/share/cppcheck/qt.cfg
     67    }
     68
     69    if {![file exists ${prefix}/share/cppcheck/std.cfg]} {
     70        copy ${prefix}/share/cppcheck/std.cfg.dist ${prefix}/share/cppcheck/std.cfg
     71    }
     72
     73    if {![file exists ${prefix}/share/cppcheck/windows.cfg]} {
     74        copy ${prefix}/share/cppcheck/windows.cfg.dist ${prefix}/share/cppcheck/windows.cfg
     75    }
    4876}