Ticket #50267: cppcheck.diff

File cppcheck.diff, 2.5 KB (added by xythobuz@…, 9 years ago)
  • Portfile

    old new  
    55PortGroup                   cxx11 1.0
    66
    77name                        cppcheck
    8 version                     1.71
     8version                     1.72
    99categories                  devel
    1010license                     GPL-3
    1111platforms                   darwin
     
    2222homepage                    http://cppcheck.sourceforge.net/
    2323master_sites                sourceforge:project/cppcheck/cppcheck/${version}
    2424
    25 checksums                   rmd160  232e5f9e15eb722523abbebb22bcfa3c17a7e7b5 \
    26                             sha256  a8768e1feef5cafa5e2dbce92fbaf95b70b4457ea8e1ed3bad52000d2286d3c8
     25checksums                   rmd160  62444a704fc0f6a7301aad3c763c297a3d727788 \
     26                            sha256  459108c81ea607c8bd3da842d83990d6555e0351d0fe4bb21c2c72110274f393
    2727
    2828depends_build               port:libxslt \
    2929                            port:docbook-xsl
     
    4646
    4747notes                       "If you've updated cppcheck from a previous version," \
    4848                            "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\}\"' \\;"
    5050
    5151post-destroot {
    5252    xinstall -m 444 ${worksrcpath}/cppcheck.1 ${destroot}${prefix}/share/man/man1
    5353    xinstall -d ${destroot}${prefix}/share/cppcheck
    5454    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
    5556    copy ${worksrcpath}/cfg/gnu.cfg ${destroot}${prefix}/share/cppcheck/gnu.cfg.dist
    5657    copy ${worksrcpath}/cfg/gtk.cfg ${destroot}${prefix}/share/cppcheck/gtk.cfg.dist
    5758    copy ${worksrcpath}/cfg/microsoft_sal.cfg ${destroot}${prefix}/share/cppcheck/microsoft_sal.cfg.dist
     
    6768        copy ${prefix}/share/cppcheck/avr.cfg.dist ${prefix}/share/cppcheck/avr.cfg
    6869    }
    6970
     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
    7075    if {![file exists ${prefix}/share/cppcheck/gnu.cfg]} {
    7176        copy ${prefix}/share/cppcheck/gnu.cfg.dist ${prefix}/share/cppcheck/gnu.cfg
    7277    }