Ignore:
Timestamp:
Apr 7, 2014, 10:46:20 PM (5 years ago)
Author:
macsforever2000@…
Message:

cppcheck: Update to version 1.64. Handle new config files. nomaintainer. (#42352)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/devel/cppcheck/Portfile

    r106672 r118676  
    55
    66name                cppcheck
    7 version             1.60.1
     7version             1.64
    88categories          devel
    99license             GPL-3
    1010platforms           darwin
    11 maintainers         etrix.com.au:brendan.simon openmaintainer
     11maintainers         nomaintainer
    1212
    1313description         Static analysis of C and C++ code.
    1414
    1515long_description    Cppcheck is an analysis tool for C and C++ code. Unlike \
    16                     compilers and many other analysis tools, we don't detect \
     16                    compilers and many other analysis tools, we do not detect \
    1717                    syntax errors. Cppcheck only detects the types of bugs that \
    1818                    the compilers normally fail to detect. The goal is no false \
     
    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 \
     
    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
     
    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
    4854}
     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    }
     76}
Note: See TracChangeset for help on using the changeset viewer.