]> Cypherpunks repositories - bass.git/commitdiff
cppcheck
authorSergey Matveev <stargrave@stargrave.org>
Tue, 7 Oct 2025 11:22:01 +0000 (14:22 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Tue, 7 Oct 2025 11:22:01 +0000 (14:22 +0300)
build/distfiles/.gitignore
build/distfiles/cppcheck-2.18.0.tar.gz.meta4 [new file with mode: 0644]
build/skel/devel/cppcheck-2.18.0.do [new file with mode: 0644]

index 713437317c893f86f160618d0433a7fe179ed91ee0a8fc03fae8749fd8ccd6ac..79a5833a54b37fd73f3a8743f545e90758b5957db938224e8fceeb6b5d22c8fc 100644 (file)
@@ -27,6 +27,7 @@
 /cairo-1.16.0.tar.xz
 /cmake-3.28.3-SHA-256.txt
 /cmake-3.28.3.tar.gz
+/cppcheck-2.18.0.tar.gz
 /curl-8.12.1.tar.xz
 /cyrus-sasl-2.1.28.tar.gz
 /daemontools-encore-1.11.tar.gz
diff --git a/build/distfiles/cppcheck-2.18.0.tar.gz.meta4 b/build/distfiles/cppcheck-2.18.0.tar.gz.meta4
new file mode 100644 (file)
index 0000000..7e0e5d9
--- /dev/null
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<metalink xmlns="urn:ietf:params:xml:ns:metalink">
+  <file name="cppcheck-2.18.0.tar.gz">
+    <hash type="blake3-256">db87ab6232c2d275d4e2fa180ca458eb7ee3409a29240b00846caaa7acd48631</hash>
+    <hash type="blake2b-512">a7f75c65ffbdc5b450f158c7ce3e24da5263b099e25933dccb2d41d3f753f4a6530ff6c6e006b86458a530fbed73339b77e9df8b6b5ebce9498e40a0c7d17136</hash>
+    <hash type="blake2b-256">bee2a664e3ebee81a9644538f74141c13ec25d1223a9fefa1db353ca03754b10</hash>
+    <hash type="skein-512">128583a3678578d8b88ee9ec15b00e25f8939ce58ef1bf4cd435edc6a1a9ea747e04b7203740a9d9f15a61eb09855229f00830de1b0d7cb3d01ec246b1f525b4</hash>
+    <hash type="sha-512">8c85e3a3ec2841b28208b594e6408034384f17d2b10c2e42d16f898ad2af21babe2edefb99bf7c0271d0807f4f337c4f73c2618e0f26b283da0ed58a2e03df65</hash>
+    <hash type="sha-256">dc74e300ac59f2ef9f9c05c21d48ae4c8dd1ce17f08914dd30c738ff482e748f</hash>
+    <hash type="streebog-512">78d6fde9abd6d9343a65a27e519e0a0ade9d9d899a10882bb2f4b7eac97d661268faafc65c9bd10d9a85ea22518419044fb5fa4edcbd03696fe2496c30432f9b</hash>
+    <hash type="streebog-256">a67a24782b6f7e185513697743948bd2000403fce41b4257d9379be27ca8cb29</hash>
+    <hash type="xxh3-128">3fa4387ab9b9cdd744c618d4010d30a6</hash>
+    <size>3928107</size>
+    <url>https://github.com/danmar/cppcheck/archive/2.18.0.tar.gz</url>
+  </file>
+</metalink>
diff --git a/build/skel/devel/cppcheck-2.18.0.do b/build/skel/devel/cppcheck-2.18.0.do
new file mode 100644 (file)
index 0000000..2f87e78
--- /dev/null
@@ -0,0 +1,24 @@
+[ -n "$BASS_ROOT" ] || BASS_ROOT="$(dirname "$(realpath -- "$0")")"/../../../..
+sname=$1.do . "$BASS_ROOT"/lib/rc
+. "$BASS_ROOT"/build/skel/common.rc
+
+bdeps="rc-paths stow archivers/zstd devel/gmake-4.4.1"
+redo-ifchange $bdeps "$DISTFILES"/$NAME.tar.gz
+hsh=$("$BASS_ROOT"/build/bin/cksum $BASS_REV $SPATH)
+. "$BASS_ROOT"/build/lib/create-tmp-for-build.rc
+"$BASS_ROOT"/build/bin/pkg-inst $bdeps
+. ./rc
+$TAR xf "$DISTFILES"/$NAME.tar.gz
+"$BASS_ROOT"/bin/rm-r "$SKELBINS"/$ARCH/$NAME-$hsh
+
+cd $NAME
+gmake -j$MAKE_JOBS MATCHCOMPILER=yes HAVE_RULES=yes \
+    FILESDIR="$SKELBINS"/$ARCH/$NAME-$hsh/share/cppcheck \
+    CXXFLAGS="-O2 -DNDEBUG -Wall -Wno-sign-compare -Wno-unused-function" >&2
+strip cppcheck
+mkdir -p "$SKELBINS"/$ARCH/$NAME-$hsh/bin "$SKELBINS"/$ARCH/$NAME-$hsh/share/cppcheck
+mv cppcheck "$SKELBINS"/$ARCH/$NAME-$hsh/bin
+cp -r cfg "$SKELBINS"/$ARCH/$NAME-$hsh/share/cppcheck/
+
+cd "$SKELBINS"/$ARCH
+"$BASS_ROOT"/build/lib/mk-pkg $NAME-$hsh