Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/cppcheck/
Date: Mon, 22 Nov 2021 15:52:19
Message-Id: 1637596325.1d184b86516d7c090deb45394e4e2d0b643de16c.soap@gentoo
1 commit: 1d184b86516d7c090deb45394e4e2d0b643de16c
2 Author: David Seifert <soap <AT> gentoo <DOT> org>
3 AuthorDate: Mon Nov 22 15:52:05 2021 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Mon Nov 22 15:52:05 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1d184b86
7
8 dev-util/cppcheck: [QA] EROOT -> EPREFIX
9
10 Signed-off-by: David Seifert <soap <AT> gentoo.org>
11
12 dev-util/cppcheck/cppcheck-2.4.1.ebuild | 13 +++++++------
13 1 file changed, 7 insertions(+), 6 deletions(-)
14
15 diff --git a/dev-util/cppcheck/cppcheck-2.4.1.ebuild b/dev-util/cppcheck/cppcheck-2.4.1.ebuild
16 index 9130c7d88401..74102100a3f2 100644
17 --- a/dev-util/cppcheck/cppcheck-2.4.1.ebuild
18 +++ b/dev-util/cppcheck/cppcheck-2.4.1.ebuild
19 @@ -2,8 +2,9 @@
20 # Distributed under the terms of the GNU General Public License v2
21
22 EAPI=7
23 -PYTHON_COMPAT=( python{3_7,3_8,3_9} )
24 -inherit distutils-r1 toolchain-funcs cmake
25 +
26 +PYTHON_COMPAT=( python3_{8..10} )
27 +inherit distutils-r1 cmake
28
29 DESCRIPTION="Static analyzer of C/C++ code"
30 HOMEPAGE="https://github.com/danmar/cppcheck"
31 @@ -30,6 +31,7 @@ DEPEND="${RDEPEND}
32 virtual/pkgconfig
33 z3? ( sci-mathematics/z3 )
34 "
35 +
36 PATCHES=(
37 "${FILESDIR}"/${PN}-2.4.1-limits.patch
38 )
39 @@ -39,12 +41,11 @@ src_prepare() {
40 }
41
42 src_configure() {
43 -
44 local mycmakeargs=(
45 -DHAVE_RULES="$(usex pcre)"
46 -DBUILD_GUI="$(usex qt5)"
47 -DUSE_Z3="$(usex z3)"
48 - -DFILESDIR="${EROOT}/usr/share/${PN}/"
49 + -DFILESDIR="${EPREFIX}/usr/share/${PN}/"
50 -DENABLE_OSS_FUZZ=OFF
51 )
52 cmake_src_configure
53 @@ -63,7 +64,7 @@ src_compile() {
54 src_install() {
55 # it's not autotools-based, so "${ED}" here, not "${D}", bug 531760
56 emake install DESTDIR="${ED}" \
57 - FILESDIR="${EROOT}/usr/share/${PN}/"
58 + FILESDIR="${EPREFIX}/usr/share/${PN}/"
59
60 insinto "/usr/share/${PN}/cfg"
61 doins cfg/*.cfg
62 @@ -75,7 +76,7 @@ src_install() {
63 pushd htmlreport || die
64 distutils-r1_src_install
65 popd || die
66 - find "${D}" -name "*.egg-info" -delete
67 + find "${D}" -name "*.egg-info" -delete || die
68 else
69 rm "${ED}/usr/bin/cppcheck-htmlreport" || die
70 fi