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)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 5989E158094 for ; Mon, 29 Aug 2022 19:06:27 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 95668E0907; Mon, 29 Aug 2022 19:06:26 +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)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 79DABE0905 for ; Mon, 29 Aug 2022 19:06:26 +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)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 9D577340D5F for ; Mon, 29 Aug 2022 19:06:25 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id D1F575B5 for ; Mon, 29 Aug 2022 19:06:22 +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: <1661799939.677d08070a26e93f96194e15cf368232120b3182.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.9.ebuild X-VCS-Directories: dev-util/cppcheck/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 677d08070a26e93f96194e15cf368232120b3182 X-VCS-Branch: master Date: Mon, 29 Aug 2022 19:06:22 +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: c880d2fd-52c5-423e-9325-66e93d4c91dc X-Archives-Hash: 0994a2167a0b4da789b3788ac85b48ef commit: 677d08070a26e93f96194e15cf368232120b3182 Author: Sam James gentoo org> AuthorDate: Mon Aug 29 19:04:23 2022 +0000 Commit: Sam James gentoo org> CommitDate: Mon Aug 29 19:05:39 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=677d0807 dev-util/cppcheck: add 2.9 Signed-off-by: Sam James gentoo.org> dev-util/cppcheck/Manifest | 1 + dev-util/cppcheck/cppcheck-2.9.ebuild | 120 ++++++++++++++++++++++++++++++++++ 2 files changed, 121 insertions(+) diff --git a/dev-util/cppcheck/Manifest b/dev-util/cppcheck/Manifest index 5e11ee2b33d7..2f2dc68d633e 100644 --- a/dev-util/cppcheck/Manifest +++ b/dev-util/cppcheck/Manifest @@ -1,3 +1,4 @@ DIST cppcheck-2.6.3.tar.gz 3880340 BLAKE2B ef83538a0aa867dd0c0bd6165b41921335256ed0372a4990ad85151ab5e87a79bde7958be43887f07a4bbf372b9992339b75ddeae7ed8ea767b83c028dfc56db SHA512 e59b4b4659c2b4fa2c16dcb548f7ee3027555dddc289ef8b54fe186af0396b6f7caa23d91bf1142ece62908b56fe9f5ba013191817322815681994093310fb37 DIST cppcheck-2.8.1.tar.gz 3921391 BLAKE2B d61c4a8a3e88441f0a65090eddacaa34bda91ba50ce92e79c122525524368ade49d24f13f343a5a856a3014e904495e87db2d774146e871af1738d55f1a52728 SHA512 ff5a9955498101a2d061a431d0f8ed42267627b3cd029302871ee781a0e4039aa531dd47c2d44d1f3952b5e5bd3b65c9b32a10a9b1922ef466f440f8c4417e28 DIST cppcheck-2.8.2.tar.gz 3921806 BLAKE2B b48a3f4163fec491d8a7f9eb4957a140cd33b852d1778974c383ca5148aa252cee412b4616cbf49b622ee5b4ccddcb1aa60b217284f2c01c020df606a1e4fe5b SHA512 595645cede2d1b801127747cf19c66ebc73a97c4c3f5c9af1fbf865a995f9b7ab4027a16d73cf2aa638e51569be275a26b92909d548ddb40e185978a247fb5cd +DIST cppcheck-2.9.tar.gz 3916529 BLAKE2B 5d75328e1fcd389376630502ad7427d3473392a9467e8731e6cd7c2c6349efccc05eddd7eca4cb361930661d2383a8d316e33bd3609b9333a710153d199e326d SHA512 69204a7ceac087470201482894e6422b99d0849f08641e80b2e341c9d164a1d2095e3a08a1fba2e9fa681783d07fe7277b30ea0cc0bf582431b5d13ab2f58c1f diff --git a/dev-util/cppcheck/cppcheck-2.9.ebuild b/dev-util/cppcheck/cppcheck-2.9.ebuild new file mode 100644 index 000000000000..0ab87ba97840 --- /dev/null +++ b/dev-util/cppcheck/cppcheck-2.9.ebuild @@ -0,0 +1,120 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +# Python is used both for htmlreport (USE flag) but also for various +# helper scripts in /usr/share/cppcheck. +DISTUTILS_OPTIONAL=1 +DISTUTILS_USE_PEP517=setuptools +DISTUTILS_SINGLE_IMPL=1 +PYTHON_COMPAT=( python3_{8..10} ) +inherit distutils-r1 cmake + +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" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" +RESTRICT="!test? ( test )" + +RDEPEND=" + ${PYTHON_DEPS} + dev-libs/tinyxml2:= + htmlreport? ( + $(python_gen_cond_dep ' + dev-python/pygments[${PYTHON_USEDEP}] + dev-python/setuptools[${PYTHON_USEDEP}] + ') + ) + pcre? ( dev-libs/libpcre ) + qt5? ( + dev-qt/qtcore:5 + dev-qt/qtgui:5 + dev-qt/qthelp:5 + dev-qt/qtprintsupport:5 + dev-qt/qtwidgets:5 + ) +" +DEPEND="${RDEPEND}" +BDEPEND=" + app-text/docbook-xsl-stylesheets + dev-libs/libxslt + virtual/pkgconfig + htmlreport? ( ${DISTUTILS_DEPS} ) + qt5? ( dev-qt/linguist-tools:5 ) + test? ( + htmlreport? ( + $(python_gen_cond_dep 'dev-python/unittest-or-fail[${PYTHON_USEDEP}]') + ) + ) +" + +src_prepare() { + cmake_src_prepare + + distutils-r1_src_prepare +} + +python_prepare_all() { + distutils-r1_python_prepare_all + + rm htmlreport/test_htmlreport.py || die +} + +src_configure() { + local mycmakeargs=( + -DHAVE_RULES="$(usex pcre)" + -DBUILD_GUI="$(usex qt5)" + -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 +} + +python_install() { + if use htmlreport ; then + pushd htmlreport || die + distutils-r1_python_install + popd || die + fi +} + +python_install_all() { + distutils-r1_python_install_all + + python_fix_shebang "${ED}"/usr/share/cppcheck/* +} + +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 + + distutils-r1_src_install + + dodoc -r tools/triage +}