Ticket #47627: cppcheck_fixed.diff

File cppcheck_fixed.diff, 3.2 KB (added by xythobuz@…, 10 years ago)
  • Portfile

    old new  
    55PortGroup                   compiler_blacklist_versions 1.0
    66
    77name                        cppcheck
    8 version                     1.68
     8version                     1.69
    99categories                  devel
    1010license                     GPL-3
    1111platforms                   darwin
     
    2222homepage                    http://cppcheck.sourceforge.net/
    2323master_sites                sourceforge:project/cppcheck/cppcheck/${version}
    2424
    25 checksums                   rmd160  ecd6abba8c5f0f7b23087074f0556bfbba120ae7 \
    26                             sha256  ef9252f72e7b1fc204345d5318e5609d3770e6196473c145a84f5862f7a5237a
     25checksums                   rmd160  0141924e7cceb65526af9ef70df2b603ee3d7c42 \
     26                            sha256  fe61c9df64eb5ff170b866237045aae6427d47edcff9b684abac2d11fb4d7826
    2727
    2828depends_build               port:libxslt \
    2929                            port:docbook-xsl
     
    5454post-destroot {
    5555    xinstall -m 444 ${worksrcpath}/cppcheck.1 ${destroot}${prefix}/share/man/man1
    5656    xinstall -d ${destroot}${prefix}/share/cppcheck
     57    copy ${worksrcpath}/cfg/avr.cfg ${destroot}${prefix}/share/cppcheck/avr.cfg.dist
     58    copy ${worksrcpath}/cfg/gnu.cfg ${destroot}${prefix}/share/cppcheck/gnu.cfg.dist
    5759    copy ${worksrcpath}/cfg/gtk.cfg ${destroot}${prefix}/share/cppcheck/gtk.cfg.dist
     60    copy ${worksrcpath}/cfg/microsoft_sal.cfg ${destroot}${prefix}/share/cppcheck/microsoft_sal.cfg.dist
    5861    copy ${worksrcpath}/cfg/posix.cfg ${destroot}${prefix}/share/cppcheck/posix.cfg.dist
    5962    copy ${worksrcpath}/cfg/qt.cfg ${destroot}${prefix}/share/cppcheck/qt.cfg.dist
     63    copy ${worksrcpath}/cfg/sdl.cfg ${destroot}${prefix}/share/cppcheck/sdl.cfg.dist
    6064    copy ${worksrcpath}/cfg/std.cfg ${destroot}${prefix}/share/cppcheck/std.cfg.dist
    6165    copy ${worksrcpath}/cfg/windows.cfg ${destroot}${prefix}/share/cppcheck/windows.cfg.dist
    6266}
    6367
    6468post-activate {
     69    if {![file exists ${prefix}/share/cppcheck/avr.cfg]} {
     70        copy ${prefix}/share/cppcheck/avr.cfg.dist ${prefix}/share/cppcheck/avr.cfg
     71    }
     72
     73    if {![file exists ${prefix}/share/cppcheck/gnu.cfg]} {
     74        copy ${prefix}/share/cppcheck/gnu.cfg.dist ${prefix}/share/cppcheck/gnu.cfg
     75    }
     76
    6577    if {![file exists ${prefix}/share/cppcheck/gtk.cfg]} {
    6678        copy ${prefix}/share/cppcheck/gtk.cfg.dist ${prefix}/share/cppcheck/gtk.cfg
    6779    }
    6880
     81    if {![file exists ${prefix}/share/cppcheck/microsoft_sal.cfg]} {
     82        copy ${prefix}/share/cppcheck/microsoft_sal.cfg.dist ${prefix}/share/cppcheck/microsoft_sal.cfg
     83    }
     84
    6985    if {![file exists ${prefix}/share/cppcheck/posix.cfg]} {
    7086        copy ${prefix}/share/cppcheck/posix.cfg.dist ${prefix}/share/cppcheck/posix.cfg
    7187    }
     
    7490        copy ${prefix}/share/cppcheck/qt.cfg.dist ${prefix}/share/cppcheck/qt.cfg
    7591    }
    7692
     93    if {![file exists ${prefix}/share/cppcheck/sdl.cfg]} {
     94        copy ${prefix}/share/cppcheck/sdl.cfg.dist ${prefix}/share/cppcheck/sdl.cfg
     95    }
     96
    7797    if {![file exists ${prefix}/share/cppcheck/std.cfg]} {
    7898        copy ${prefix}/share/cppcheck/std.cfg.dist ${prefix}/share/cppcheck/std.cfg
    7999    }