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: Mon, 04 Jul 2022 17:56:49
Message-Id: 1656957340.a781e48f72f4b3af2a6f76530993953b65a0e4ec.gyakovlev@gentoo
1 commit: a781e48f72f4b3af2a6f76530993953b65a0e4ec
2 Author: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jul 4 17:55:10 2022 +0000
4 Commit: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
5 CommitDate: Mon Jul 4 17:55:40 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a781e48f
7
8 dev-util/bear: add 3.0.19
9
10 Closes: https://bugs.gentoo.org/849104
11 Signed-off-by: Georgy Yakovlev <gyakovlev <AT> gentoo.org>
12
13 dev-util/bear/Manifest | 1 +
14 dev-util/bear/bear-3.0.19.ebuild | 91 ++++++++++++++++++++++++++++++++++++++++
15 2 files changed, 92 insertions(+)
16
17 diff --git a/dev-util/bear/Manifest b/dev-util/bear/Manifest
18 index 01fadb98ab4f..01b27cf96c00 100644
19 --- a/dev-util/bear/Manifest
20 +++ b/dev-util/bear/Manifest
21 @@ -1,3 +1,4 @@
22 DIST bear-2.4.4.tar.gz 50347 BLAKE2B 73fa332cf97413e55c588f8830806a26c6905299af902c6cf1f39fd576c6261690239c1b502b28b5a2aa24e5ca521c3f1dd58aacd60e00ece4fe1840f5656155 SHA512 4ee3fd5c846149029fe9e4104e2a0d0e318a15215aa80fc5dc376e22ebea510384b02d4d62765495343cab537bacd2b1b0130c00246e081feb4e543761a594e5
23 DIST bear-3.0.16.tar.gz 122948 BLAKE2B bb720170488968e79d26b7022859a3a55f191661a65d8c5c1ce6120911919ffcd74a32035eebb419e4fe9a616f6dec1c66804445d9e8b243c7d26a87284f7776 SHA512 3906011aa01f42c7841046614e9f1972a39288749cbdeab4b55e517d48a05cb02a48be2b055b4ce65300ffa0a940609e713f55bd1a47ce4fc9a8cb2702487f07
24 DIST bear-3.0.17.tar.gz 123861 BLAKE2B 9dea85c7c0ec5ec4954d08147cdac31e0b28c9780281a544687340e6e226e5403ad82f74db0fb9edd3f65c9a982531afb612e1c744430735e6de97d8d29a2189 SHA512 08e50b04c87745ae60623c32de07e710ffb4e78d9978f13cca9d51929b45477c780f1fe47178569310dca20dab5fef49dbffdf17a087c388f111eb11ffadf5b1
25 +DIST bear-3.0.19.tar.gz 125086 BLAKE2B 0c6a27359e8c88ab0dbaa3f5442a87efeaba4f6a9b8d0912ad026231421e2555a524b194a19972f549600951bc1f6620398c48338f7eac8850ba6c3969f2e6ac SHA512 688766a76cc3bee1dc82478d29d6e8754618f92633c842586fce95f2f1096764902ffd64a6f2f59101e58eba5472bf39ddb178c3dfcd48491fa4eb63d111585c
26
27 diff --git a/dev-util/bear/bear-3.0.19.ebuild b/dev-util/bear/bear-3.0.19.ebuild
28 new file mode 100644
29 index 000000000000..c13981978dd7
30 --- /dev/null
31 +++ b/dev-util/bear/bear-3.0.19.ebuild
32 @@ -0,0 +1,91 @@
33 +# Copyright 2020-2022 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=8
37 +
38 +PYTHON_COMPAT=( python3_{8..11} )
39 +
40 +inherit cmake python-any-r1
41 +
42 +DESCRIPTION="Build EAR generates a compilation database for clang tooling"
43 +HOMEPAGE="https://github.com/rizsotto/Bear"
44 +SRC_URI="https://github.com/rizsotto/Bear/archive/${PV}.tar.gz -> ${P}.tar.gz"
45 +
46 +LICENSE="GPL-3+"
47 +SLOT="0"
48 +KEYWORDS="~amd64 ~ppc64 ~x86"
49 +IUSE="test"
50 +
51 +RDEPEND="
52 + >=dev-cpp/nlohmann_json-3.7.3:=
53 + >=dev-db/sqlite-3.14:=
54 + >=dev-libs/libfmt-6.2:=
55 + dev-libs/protobuf:=
56 + >=dev-libs/spdlog-1.5
57 + >=net-libs/grpc-1.26:=
58 +"
59 +
60 +DEPEND="${RDEPEND}
61 + test? (
62 + >=dev-cpp/gtest-1.10
63 + )
64 +"
65 +
66 +BDEPEND="
67 + virtual/pkgconfig
68 + test? (
69 + sys-devel/libtool
70 + $(python_gen_any_dep '
71 + dev-python/lit[${PYTHON_USEDEP}]
72 + ')
73 + )
74 +"
75 +
76 +RESTRICT="!test? ( test )"
77 +
78 +S="${WORKDIR}/${P^}"
79 +
80 +pkg_setup() {
81 + use test && python-any-r1_pkg_setup
82 +}
83 +
84 +src_prepare() {
85 + cmake_src_prepare
86 + # Turn off testing before installation
87 + sed -i 's/TEST_BEFORE_INSTALL/TEST_EXCLUDE_FROM_MAIN/g' CMakeLists.txt || die
88 +}
89 +
90 +src_configure() {
91 + local mycmakeargs=(
92 + -DENABLE_UNIT_TESTS="$(usex test ON OFF)"
93 + -DENABLE_FUNC_TESTS="$(usex test ON OFF)"
94 + )
95 + cmake_src_configure
96 +}
97 +
98 +src_test() {
99 + if has sandbox ${FEATURES}; then
100 + ewarn "\'FEATURES=sandbox\' detected"
101 + ewarn "Bear overrides LD_PRELOAD and conflicts with gentoo sandbox"
102 + ewarn "Skipping tests"
103 + elif
104 + has usersandbox ${FEATURES}; then
105 + ewarn "\'FEATURES=usersandbox\' detected"
106 + ewarn "Skipping tests"
107 + elif
108 + has network-sandbox ${FEATURES}; then
109 + ewarn "\'FEATURES=network-sandbox\' detected"
110 + ewarn "Skipping tests"
111 + elif
112 + has_version -b 'sys-devel/gcc-config[-native-symlinks]'; then
113 + ewarn "\'sys-devel/gcc-config[-native-symlinks]\' detected, tests call /usr/bin/cc directly (hardcoded)"
114 + ewarn "and will fail without generic cc symlink"
115 + ewarn "Skipping tests"
116 + else
117 + einfo "test may use optional tools if found: qmake gfortran valgrind"
118 + # unit tests
119 + cmake_run_in "${BUILD_DIR}/subprojects/Build/BearSource" ctest --verbose
120 + # functional tests
121 + cmake_run_in "${BUILD_DIR}/subprojects/Build/BearTest" ctest --verbose
122 + fi
123 +}