[crux-commits] ports/contrib (3.5): cppcheck: update to 2.1

crux at crux.nu crux at crux.nu
Sat Jun 20 10:22:15 UTC 2020


commit bed1f821178442fcc0e67989489a4b7e6a5952ee
Author: John Vogel <jvogel4 at stny.rr.com>
Date:   Sat Jun 20 06:21:21 2020 -0400

    cppcheck: update to 2.1
    
    Switch to python3.
    Add missing dep pygments (python3-pygments).
    Fix permissions on manpage install.

diff --git a/cppcheck/.footprint b/cppcheck/.footprint
index 6f92d1fb2..9d82a5dcc 100644
--- a/cppcheck/.footprint
+++ b/cppcheck/.footprint
@@ -66,4 +66,4 @@ drwxr-xr-x	root/root	usr/share/cppcheck/platforms/
 -rw-r--r--	root/root	usr/share/cppcheck/platforms/unix64-unsigned.xml
 drwxr-xr-x	root/root	usr/share/man/
 drwxr-xr-x	root/root	usr/share/man/man1/
--r--r--r--	root/root	usr/share/man/man1/cppcheck.1.gz
+-rw-r--r--	root/root	usr/share/man/man1/cppcheck.1.gz
diff --git a/cppcheck/.signature b/cppcheck/.signature
index 49333ba92..bf5b49f1f 100644
--- a/cppcheck/.signature
+++ b/cppcheck/.signature
@@ -1,5 +1,5 @@
 untrusted comment: verify with /etc/ports/contrib.pub
-RWSagIOpLGJF35JFueNT8oLP573hmoqZNyPfFNkscxYmimAMKKC75AJNwxwGwHQ0HA8gd2sm+W/JbkpMBQ55Y6ZuNl9aNeGseAs=
-SHA256 (Pkgfile) = d9f03c00aa8bed6097149f13d2f05b81fb1eb632419daaa3681336c9f2812d3c
-SHA256 (.footprint) = 3fd811d152057a7698579ae4d4b11bc2cfbb6eebcc85ff0b150919e84c8fc54c
-SHA256 (cppcheck-2.0.tar.gz) = fdba69d9f8db4bbe27ee00bb88839d212b6a848372add7ad8f567236deb0f00f
+RWSagIOpLGJF31w4U/iU0BOQ+/7scAk0x3PKo9qpqEmI/EMkMTDpMudvW3HXXgeKyC7Fx5S0TxfUi43HVHr2fIG0ys1jfhiLRw4=
+SHA256 (Pkgfile) = 600cac11bbd3a94b48e35e1087c305492a1e91401d699f16291b2dd611dc0200
+SHA256 (.footprint) = 9e04d36013f2a12b4766da9faa3e30b5484820f3e3f9b6ac2d2d43560e4f8cf8
+SHA256 (cppcheck-2.1.tar.gz) = 447d44bbaa555fa78b89dd2cb0203fd4c6f18269db8a78638b968ba7c72cb02e
diff --git a/cppcheck/Pkgfile b/cppcheck/Pkgfile
index 0c6fb3eae..25c1f2a7d 100644
--- a/cppcheck/Pkgfile
+++ b/cppcheck/Pkgfile
@@ -1,21 +1,24 @@
 # Description: Static analysis tool for C/C++ code
 # URL:         http://cppcheck.sourceforge.net/
 # Maintainer:  John Vogel, jvogel4 at stny dot rr dot com
-# Depends on:  libpcre python docbook-xsl
+# Depends on:  libpcre python3-pygments docbook-xsl
 
 name=cppcheck
-version=2.0
+version=2.1
 release=1
 source=(https://github.com/danmar/$name/archive/$version/$name-$version.tar.gz)
 
 build() {
 	cd $name-$version
 
-	make install	HAVE_RULES=yes	\
-			MATCHCOMPILER=yes	\
-			FILESDIR=/usr/share/cppcheck	\
-			DESTDIR=$PKG
+	sed -i -e 's,python,python3,' htmlreport/cppcheck-htmlreport
+
+	make install \
+		HAVE_RULES=yes	\
+		MATCHCOMPILER=yes	\
+		FILESDIR=/usr/share/cppcheck	\
+		DESTDIR=$PKG
 
 	make man DB2MAN=/usr/share/xml/docbook/xsl-stylesheets/manpages/docbook.xsl
-	install -Dm 0444 $name.1 $PKG/usr/share/man/man1/$name.1
+	install -Dm 0644 $name.1 $PKG/usr/share/man/man1/$name.1
 }


More information about the crux-commits mailing list