Gentoo Archives: gentoo-commits

From: Georgy Yakovlev <gyakovlev@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/bear/
Date: Thu, 10 Sep 2020 22:59:02
Message-Id: 1599778716.f21f6bf63437897c5142136a2e15276cd8fc7a4e.gyakovlev@gentoo
1 commit: f21f6bf63437897c5142136a2e15276cd8fc7a4e
2 Author: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
3 AuthorDate: Thu Sep 10 22:58:19 2020 +0000
4 Commit: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
5 CommitDate: Thu Sep 10 22:58:36 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f21f6bf6
7
8 dev-util/bear: bump to 2.4.4
9
10 Package-Manager: Portage-3.0.6, Repoman-3.0.1
11 Signed-off-by: Georgy Yakovlev <gyakovlev <AT> gentoo.org>
12
13 dev-util/bear/Manifest | 1 +
14 dev-util/bear/bear-2.4.4.ebuild | 61 +++++++++++++++++++++++++++++++++++++++++
15 2 files changed, 62 insertions(+)
16
17 diff --git a/dev-util/bear/Manifest b/dev-util/bear/Manifest
18 index bbfa7c76de5..414b55e796d 100644
19 --- a/dev-util/bear/Manifest
20 +++ b/dev-util/bear/Manifest
21 @@ -1 +1,2 @@
22 DIST bear-2.4.3.tar.gz 49933 BLAKE2B 2a91c30d81f9d0e58a25458579f6b0c867c07d2e532bd2ed29305645e152bd564156f708c4a07a683577412b3fdab1f106685ecf1ad88eaad2f33f0bc43a5baa SHA512 a4690cfc9938d8752ca5c8322ca4c5039746ade059e4459e7f3f91b2bf3d36ea691a5d855cab7a4e7ad8ff76478c48c4394593e069a1cf8396ead41017421753
23 +DIST bear-2.4.4.tar.gz 50347 BLAKE2B 73fa332cf97413e55c588f8830806a26c6905299af902c6cf1f39fd576c6261690239c1b502b28b5a2aa24e5ca521c3f1dd58aacd60e00ece4fe1840f5656155 SHA512 4ee3fd5c846149029fe9e4104e2a0d0e318a15215aa80fc5dc376e22ebea510384b02d4d62765495343cab537bacd2b1b0130c00246e081feb4e543761a594e5
24
25 diff --git a/dev-util/bear/bear-2.4.4.ebuild b/dev-util/bear/bear-2.4.4.ebuild
26 new file mode 100644
27 index 00000000000..468a104719b
28 --- /dev/null
29 +++ b/dev-util/bear/bear-2.4.4.ebuild
30 @@ -0,0 +1,61 @@
31 +# Copyright 2020 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=7
35 +
36 +PYTHON_COMPAT=( python3_{7,8} )
37 +
38 +inherit cmake python-single-r1
39 +
40 +DESCRIPTION="Build EAR generates a compilation database for clang tooling"
41 +HOMEPAGE="https://github.com/rizsotto/Bear"
42 +SRC_URI="https://github.com/rizsotto/Bear/archive/${PV}.tar.gz -> ${P}.tar.gz"
43 +
44 +LICENSE="GPL-3+"
45 +SLOT="0"
46 +KEYWORDS="~amd64 ~ppc64"
47 +IUSE="test"
48 +
49 +REQUIRED_USE="${PYTHON_REQUIRED_USE}"
50 +
51 +DEPEND="test? (
52 + app-shells/bash
53 + $(python_gen_cond_dep '
54 + dev-python/lit[${PYTHON_USEDEP}]
55 + ')
56 +)"
57 +
58 +RDEPEND="${PYTHON_DEPS}"
59 +
60 +RESTRICT="!test? ( test )"
61 +
62 +S="${WORKDIR}/${P^}"
63 +
64 +src_compile() {
65 + cmake_src_compile
66 + # need to fix it now, before tests are run
67 + python_fix_shebang "${BUILD_DIR}"/bear/bear
68 + python_fix_shebang test/functional/tools/cdb_diff.py
69 +}
70 +
71 +src_test() {
72 + if has sandbox ${FEATURES}; then
73 + ewarn "\'FEATURES=sandbox\' detected"
74 + ewarn "Bear overrides LD_PRELOAD and conflicts with gentoo sandbox"
75 + ewarn "Skipping tests"
76 + elif
77 + has usersandbox ${FEATURES}; then
78 + ewarn "\'FEATURES=usersandbox\' detected"
79 + ewarn "Skipping tests"
80 + elif
81 + has_version -b 'sys-devel/gcc-config[-native-symlinks]'; then
82 + ewarn "\'sys-devel/gcc-config[-native-symlinks]\' detected, tests call /usr/bin/cc directly (hardcoded)"
83 + ewarn "and will fail without generic cc symlink"
84 + ewarn "Skipping tests"
85 + else
86 + einfo "removing unwanted/unsupported/xfail tests"
87 + rm -v test/functional/cases/{end-to-end/scons.ft,intercept/cuda/successful_build.fts,run_pep8.ft} || die
88 + einfo "test may use optional tools if found: qmake gfortran"
89 + cmake_build check
90 + fi
91 +}