[118676] trunk/dports/devel/cppcheck/Portfile

macsforever2000 at macports.org macsforever2000 at macports.org
Mon Apr 7 15:46:21 PDT 2014


Revision: 118676
          https://trac.macports.org/changeset/118676
Author:   macsforever2000 at macports.org
Date:     2014-04-07 15:46:20 -0700 (Mon, 07 Apr 2014)
Log Message:
-----------
cppcheck: Update to version 1.64. Handle new config files. nomaintainer. (#42352)

Modified Paths:
--------------
    trunk/dports/devel/cppcheck/Portfile

Modified: trunk/dports/devel/cppcheck/Portfile
===================================================================
--- trunk/dports/devel/cppcheck/Portfile	2014-04-07 22:43:35 UTC (rev 118675)
+++ trunk/dports/devel/cppcheck/Portfile	2014-04-07 22:46:20 UTC (rev 118676)
@@ -4,16 +4,16 @@
 PortSystem          1.0
 
 name                cppcheck
-version             1.60.1
+version             1.64
 categories          devel
 license             GPL-3
 platforms           darwin
-maintainers         etrix.com.au:brendan.simon openmaintainer
+maintainers         nomaintainer
 
 description         Static analysis of C and C++ code.
 
 long_description    Cppcheck is an analysis tool for C and C++ code. Unlike \
-                    compilers and many other analysis tools, we don't detect \
+                    compilers and many other analysis tools, we do not detect \
                     syntax errors. Cppcheck only detects the types of bugs that \
                     the compilers normally fail to detect. The goal is no false \
                     positives.
@@ -21,8 +21,8 @@
 homepage            http://cppcheck.sourceforge.net/
 master_sites        sourceforge:project/cppcheck/cppcheck/${version}
 
-checksums           rmd160  8e90dd5a7f5c485d709d33bc4cf77d58a0b1ec9b \
-                    sha256  73eb56e5ea268e917c73f64e68744add35409bdc93be99773d814f9cc0a7221e
+checksums           rmd160  5d5567cbec377fc922288404c6aad53f9b28f42f \
+                    sha256  a138f51aee3d547c6e37becbe3deb2f8d7b23133c473690ea2fe7f8efc0bdf56
 
 depends_build       port:libxslt \
                     port:docbook-xsl
@@ -34,7 +34,7 @@
 variant universal {}
 
 build.args          CXX="${configure.cxx} [get_canonical_archflags cxx]" \
-                    HAVE_RULES=yes \
+                    HAVE_RULES=yes CFGDIR=${prefix}/share/cppcheck \
                     DB2MAN=${prefix}/share/xsl/docbook-xsl/manpages/docbook.xsl
 build.target        all man
 
@@ -45,4 +45,32 @@
 
 post-destroot {
     xinstall -m 444 ${worksrcpath}/cppcheck.1 ${destroot}${prefix}/share/man/man1
+    xinstall -d ${destroot}${prefix}/share/cppcheck
+    copy ${worksrcpath}/cfg/gtk.cfg ${destroot}${prefix}/share/cppcheck/gtk.cfg.dist
+    copy ${worksrcpath}/cfg/posix.cfg ${destroot}${prefix}/share/cppcheck/posix.cfg.dist
+    copy ${worksrcpath}/cfg/qt.cfg ${destroot}${prefix}/share/cppcheck/qt.cfg.dist
+    copy ${worksrcpath}/cfg/std.cfg ${destroot}${prefix}/share/cppcheck/std.cfg.dist
+    copy ${worksrcpath}/cfg/windows.cfg ${destroot}${prefix}/share/cppcheck/windows.cfg.dist
 }
+
+post-activate {
+    if {![file exists ${prefix}/share/cppcheck/gtk.cfg]} {
+        copy ${prefix}/share/cppcheck/gtk.cfg.dist ${prefix}/share/cppcheck/gtk.cfg
+    }
+
+    if {![file exists ${prefix}/share/cppcheck/posix.cfg]} {
+        copy ${prefix}/share/cppcheck/posix.cfg.dist ${prefix}/share/cppcheck/posix.cfg
+    }
+
+    if {![file exists ${prefix}/share/cppcheck/qt.cfg]} {
+        copy ${prefix}/share/cppcheck/qt.cfg.dist ${prefix}/share/cppcheck/qt.cfg
+    }
+
+    if {![file exists ${prefix}/share/cppcheck/std.cfg]} {
+        copy ${prefix}/share/cppcheck/std.cfg.dist ${prefix}/share/cppcheck/std.cfg
+    }
+
+    if {![file exists ${prefix}/share/cppcheck/windows.cfg]} {
+        copy ${prefix}/share/cppcheck/windows.cfg.dist ${prefix}/share/cppcheck/windows.cfg
+    }
+}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140407/0e981810/attachment.html>


More information about the macports-changes mailing list