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