summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJannik Glückert <jannik.glueckert@gmail.com>2021-03-30 22:31:02 +0200
committerGeorgy Yakovlev <gyakovlev@gentoo.org>2021-04-21 21:04:50 -0700
commiteafeae183f01b63bcb91fd44494b6cc00d8160fd (patch)
tree143e8edab9466c48318c6fc72e9e673940bd925e /dev-util/bear
parentnet-misc/openssh-8.6_p1: Version bump, no X509 patch for now (diff)
downloadgentoo-eafeae183f01b63bcb91fd44494b6cc00d8160fd.tar.gz
gentoo-eafeae183f01b63bcb91fd44494b6cc00d8160fd.tar.bz2
gentoo-eafeae183f01b63bcb91fd44494b6cc00d8160fd.zip
dev-util/bear: add 3.0.10
Package-Manager: Portage-3.0.17, Repoman-3.0.2 Signed-off-by: Jannik Glückert <jannik.glueckert@gmail.com> Closes: https://github.com/gentoo/gentoo/pull/20205 Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
Diffstat (limited to 'dev-util/bear')
-rw-r--r--dev-util/bear/Manifest1
-rw-r--r--dev-util/bear/bear-3.0.10.ebuild82
2 files changed, 83 insertions, 0 deletions
diff --git a/dev-util/bear/Manifest b/dev-util/bear/Manifest
index 414b55e796de..8e01ff47b80d 100644
--- a/dev-util/bear/Manifest
+++ b/dev-util/bear/Manifest
@@ -1,2 +1,3 @@
DIST bear-2.4.3.tar.gz 49933 BLAKE2B 2a91c30d81f9d0e58a25458579f6b0c867c07d2e532bd2ed29305645e152bd564156f708c4a07a683577412b3fdab1f106685ecf1ad88eaad2f33f0bc43a5baa SHA512 a4690cfc9938d8752ca5c8322ca4c5039746ade059e4459e7f3f91b2bf3d36ea691a5d855cab7a4e7ad8ff76478c48c4394593e069a1cf8396ead41017421753
DIST bear-2.4.4.tar.gz 50347 BLAKE2B 73fa332cf97413e55c588f8830806a26c6905299af902c6cf1f39fd576c6261690239c1b502b28b5a2aa24e5ca521c3f1dd58aacd60e00ece4fe1840f5656155 SHA512 4ee3fd5c846149029fe9e4104e2a0d0e318a15215aa80fc5dc376e22ebea510384b02d4d62765495343cab537bacd2b1b0130c00246e081feb4e543761a594e5
+DIST bear-3.0.10.tar.gz 117101 BLAKE2B fcf60a9b642f1583392689e70cb744119d243c3799c7bdfa8381386b32af4f27e4366775a2b718ff49552b1823d5b7550eb2a0e994dc863c978bc13552e38e30 SHA512 9a7a2a7ed6fa0f67457e6678c991fe945b0a54acb3b681ea09d901adcde26da72721073d81b31a2721e94dd83e73e86af49ea195e1d15cdbfa5ae40cc229af96
diff --git a/dev-util/bear/bear-3.0.10.ebuild b/dev-util/bear/bear-3.0.10.ebuild
new file mode 100644
index 000000000000..863e0ddc519b
--- /dev/null
+++ b/dev-util/bear/bear-3.0.10.ebuild
@@ -0,0 +1,82 @@
+# Copyright 2020-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_{7..9} )
+
+inherit cmake python-any-r1
+
+DESCRIPTION="Build EAR generates a compilation database for clang tooling"
+HOMEPAGE="https://github.com/rizsotto/Bear"
+SRC_URI="https://github.com/rizsotto/Bear/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-3+"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc64"
+IUSE="test"
+
+RDEPEND="
+ >=dev-cpp/nlohmann_json-3.7:=
+ >=dev-db/sqlite-3.14:=
+ >=dev-libs/libfmt-6.2
+ >=dev-libs/spdlog-1.5
+ >=net-libs/grpc-1.26
+"
+
+DEPEND="${RDEPEND}
+test? (
+ >=dev-cpp/gtest-1.10
+)"
+
+BDEPEND="test? (
+ $(python_gen_any_dep '
+ dev-python/lit[${PYTHON_USEDEP}]
+ ')
+)"
+
+RESTRICT="!test? ( test )"
+
+S="${WORKDIR}/${P^}"
+
+pkg_setup() {
+ use test && python-any-r1_pkg_setup
+}
+
+src_configure() {
+ local mycmakeargs=(
+ "-DENABLE_UNIT_TESTS=OFF"
+ "-DENABLE_FUNC_TESTS=OFF"
+ )
+ cmake_src_configure
+}
+
+src_test() {
+ if has sandbox ${FEATURES}; then
+ ewarn "\'FEATURES=sandbox\' detected"
+ ewarn "Bear overrides LD_PRELOAD and conflicts with gentoo sandbox"
+ ewarn "Skipping tests"
+ elif
+ has usersandbox ${FEATURES}; then
+ ewarn "\'FEATURES=usersandbox\' detected"
+ ewarn "Skipping tests"
+ elif
+ has network-sandbox ${FEATURES}; then
+ ewarn "\'FEATURES=network-sandbox\' detected"
+ ewarn "Skipping tests"
+ elif
+ has_version -b 'sys-devel/gcc-config[-native-symlinks]'; then
+ ewarn "\'sys-devel/gcc-config[-native-symlinks]\' detected, tests call /usr/bin/cc directly (hardcoded)"
+ ewarn "and will fail without generic cc symlink"
+ ewarn "Skipping tests"
+ else
+ einfo "test may use optional tools if found: qmake gfortran valgrind"
+ local mycmakeargs=(
+ "-DENABLE_UNIT_TESTS=ON"
+ "-DENABLE_FUNC_TESTS=ON"
+ )
+ # bear has no seperate "make check"
+ cmake_src_configure
+ cmake_build all
+ fi
+}