From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 63677158086 for ; Tue, 23 Nov 2021 20:57:24 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 37A8BE0866; Tue, 23 Nov 2021 20:57:23 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 12432E0866 for ; Tue, 23 Nov 2021 20:57:23 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 9A5EC3432DD for ; Tue, 23 Nov 2021 20:57:20 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id EED771BD for ; Tue, 23 Nov 2021 20:57:17 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1637701025.4de40c03a6832bc5cfc95637ca4d26fe81ff1da7.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/cppcheck/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-util/cppcheck/Manifest dev-util/cppcheck/cppcheck-2.6.2.ebuild X-VCS-Directories: dev-util/cppcheck/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 4de40c03a6832bc5cfc95637ca4d26fe81ff1da7 X-VCS-Branch: master Date: Tue, 23 Nov 2021 20:57:17 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 8663b493-bfba-4071-ba42-99c78d87d2cc X-Archives-Hash: 3e1079565ace87acd65888eeb493d9eb commit: 4de40c03a6832bc5cfc95637ca4d26fe81ff1da7 Author: Sam James gentoo org> AuthorDate: Tue Nov 23 20:56:24 2021 +0000 Commit: Sam James gentoo org> CommitDate: Tue Nov 23 20:57:05 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4de40c03 dev-util/cppcheck: add 2.6.2 Fixes build with glibc-2.34. Also: - Use BDEPEND - Run tests - Don't use bundled tinyxml2 - Don't recompile in src_install (and don't call CXX directly within it) Closes: https://bugs.gentoo.org/822114 Closes: https://bugs.gentoo.org/806312 Closes: https://bugs.gentoo.org/803014 Closes: https://bugs.gentoo.org/802279 Closes: https://bugs.gentoo.org/796638 Closes: https://bugs.gentoo.org/729090 Signed-off-by: Sam James gentoo.org> dev-util/cppcheck/Manifest | 1 + dev-util/cppcheck/cppcheck-2.6.2.ebuild | 87 +++++++++++++++++++++++++++++++++ 2 files changed, 88 insertions(+) diff --git a/dev-util/cppcheck/Manifest b/dev-util/cppcheck/Manifest index 5de50914c64f..5c54697dc489 100644 --- a/dev-util/cppcheck/Manifest +++ b/dev-util/cppcheck/Manifest @@ -1 +1,2 @@ DIST cppcheck-2.4.1.tar.gz 3761646 BLAKE2B 4c791088621f989e2529c92de38a73676fc3394e8cac72822596f7a75594283d0983693d693aa903a3ffb80bc0e1e20e71b55db5682d4d01c135ed77b2fc2e3c SHA512 8fb1ed5faa0071fc69405b7eb5b41e9f94b77d097158ea0d4f5e4da8a5087b9d1ab7bf37f8dc73d00096d3d2494aeb431af8029f0d4f1e2085f5b9b72bdc2d09 +DIST cppcheck-2.6.2.tar.gz 3880239 BLAKE2B 63abba752ed0e4bef1bf7be4eb3f1a0dfcd1bab286db41e7fd787969674f59354f1c2a0b4477bb1d0cc7ca71306bc6a3375cebade1c60416a21010f7b313d20c SHA512 f1b1b0d6d46712147984bf907519eaaef04b41f02979d371d836aa8668fbdaa0f18b503a76d809abcedf9a0e7b7666be910714ca411d289aa921d0204585f47f diff --git a/dev-util/cppcheck/cppcheck-2.6.2.ebuild b/dev-util/cppcheck/cppcheck-2.6.2.ebuild new file mode 100644 index 000000000000..70fe05ebbf69 --- /dev/null +++ b/dev-util/cppcheck/cppcheck-2.6.2.ebuild @@ -0,0 +1,87 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{8..10} ) +DISTUTILS_USE_SETUPTOOLS=no +inherit distutils-r1 cmake toolchain-funcs + +DESCRIPTION="Static analyzer of C/C++ code" +HOMEPAGE="https://github.com/danmar/cppcheck" +SRC_URI="https://github.com/danmar/cppcheck/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-3+" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc64 ~sparc ~x86" +IUSE="htmlreport pcre qt5 test +z3" +RESTRICT="!test? ( test )" + +RDEPEND=" + dev-libs/tinyxml2:= + htmlreport? ( dev-python/pygments[${PYTHON_USEDEP}] ) + pcre? ( dev-libs/libpcre ) + qt5? ( + dev-qt/qtcore:5 + dev-qt/qtgui:5 + dev-qt/qthelp + dev-qt/qtprintsupport:5 + ) + z3? ( sci-mathematics/z3 ) +" +DEPEND="${RDEPEND}" +BDEPEND=" + app-text/docbook-xsl-stylesheets + dev-libs/libxslt + virtual/pkgconfig + qt5? ( dev-qt/linguist-tools:5 ) +" + +src_prepare() { + cmake_src_prepare +} + +src_configure() { + local mycmakeargs=( + -DHAVE_RULES="$(usex pcre)" + -DBUILD_GUI="$(usex qt5)" + -DUSE_Z3="$(usex z3)" + -DFILESDIR="${EPREFIX}/usr/share/${PN}/" + -DENABLE_OSS_FUZZ=OFF + -DUSE_BUNDLED_TINYXML2=OFF + -DBUILD_TESTS="$(usex test)" + ) + + cmake_src_configure +} + +src_compile() { + cmake_src_compile + + if use htmlreport ; then + pushd htmlreport || die + distutils-r1_src_compile + popd || die + fi +} + +src_install() { + cmake_src_install + + insinto "/usr/share/${PN}/cfg" + doins cfg/*.cfg + + if use qt5 ; then + dobin "${WORKDIR}/${P}_build/bin/${PN}-gui" + dodoc gui/{projectfile.txt,gui.${PN}} + fi + + if use htmlreport ; then + pushd htmlreport || die + distutils-r1_src_install + popd || die + find "${ED}" -name "*.egg-info" -delete || die + fi + + dodoc -r tools/triage +}