From a978c074e4272bb901fbe4a10de0a7b2af574f17 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Tue, 4 May 2021 22:28:33 +0100 Subject: gentoo resync : 04.05.2021 --- dev-util/bear/Manifest | 2 +- dev-util/bear/bear-3.0.11-r1.ebuild | 86 +++++++++++++++++++++++++++++++++++++ dev-util/bear/bear-3.0.11.ebuild | 86 ------------------------------------- 3 files changed, 87 insertions(+), 87 deletions(-) create mode 100644 dev-util/bear/bear-3.0.11-r1.ebuild delete mode 100644 dev-util/bear/bear-3.0.11.ebuild (limited to 'dev-util/bear') diff --git a/dev-util/bear/Manifest b/dev-util/bear/Manifest index 579c594c05c8..e7c096358336 100644 --- a/dev-util/bear/Manifest +++ b/dev-util/bear/Manifest @@ -1,5 +1,5 @@ DIST bear-2.4.4.tar.gz 50347 BLAKE2B 73fa332cf97413e55c588f8830806a26c6905299af902c6cf1f39fd576c6261690239c1b502b28b5a2aa24e5ca521c3f1dd58aacd60e00ece4fe1840f5656155 SHA512 4ee3fd5c846149029fe9e4104e2a0d0e318a15215aa80fc5dc376e22ebea510384b02d4d62765495343cab537bacd2b1b0130c00246e081feb4e543761a594e5 DIST bear-3.0.11.tar.gz 118678 BLAKE2B 209d904a84363a87e566798dcd65ffed96cdbf3d2e753af8dc2706adb995d2999bc112eabb88db28791cbb245c373eb330cf9c20d3d886bb2caeb5c01150e65d SHA512 6d362aede911a8ad35be30638a698579582ca5de770a7c3199bb205046f08f355387099261b8d857188d526ab62024f78e3d06a225734c5f9acca03e5dfea1ec EBUILD bear-2.4.4.ebuild 1640 BLAKE2B 33c75872aa47499025a9296eb7bc535206d29215040e75c31c85b9b7667b035d9aee4886423ec6f5cab80aad3d5e15f6627aa7909957014872dffa2ba8223c56 SHA512 037fdf6bf071188df0027c6deb69a402dd721d44ff0e8ccf96dacc0b7692e6e9cd71901c284c984636bfeb49f5186a6881896ddfc1832106b0ba05e617335483 -EBUILD bear-3.0.11.ebuild 2069 BLAKE2B 66cb6e2029ceb432fb8d30ad83c7bb7b0a32e4910496f0e70eb616bb011797ceca967ddcb9c52fa94e8947831ddd5d71530abec2867a1085b0764b24db5c7248 SHA512 4b05dd82325cfbbfdbe8d843682dd14dd25a10c3785b270a58738f30f176a901f574542a5e2934c93a6f65c7158973df1e2957ce60833da39075d097cfcfc537 +EBUILD bear-3.0.11-r1.ebuild 2071 BLAKE2B a133a2e37f574d2ad1b060023becf5277f3011a7d54bad2d389b146ae3ef08f2a5d55ad93d2bd1c4e2778d9c44d6f4cea403ece918e111e19d3261ee9bde5a77 SHA512 562c3d1a8c4bded4cb8f29cefdc06dcef5665d40bf37c7f097c848a01b29df8c7bde0d905bc2e11dc20fec291963579ddc4db6c24b8679ffb5935b3f52c43764 MISC metadata.xml 914 BLAKE2B 791cac2c9a3850bc49848ec8f6ff889a21802ddce6937783afccdda45045b3861f0c79e44028ea6df18f046c5fc1b6ad89ac1a940afc9e4d6607507a12933382 SHA512 a7b29ce47f3c9d91f2ba5d1abf5975d64a9229619737b75d38d54b3bde860a47a859e6de7a959ad67cba21b2a0ced8a9fbaf508c02cace63c4090afbac2005ba diff --git a/dev-util/bear/bear-3.0.11-r1.ebuild b/dev-util/bear/bear-3.0.11-r1.ebuild new file mode 100644 index 000000000000..86011aec51e5 --- /dev/null +++ b/dev-util/bear/bear-3.0.11-r1.ebuild @@ -0,0 +1,86 @@ +# 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 ~x86" +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_prepare() { + cmake_src_prepare + # Turn off testing before installation + sed -i 's/TEST_BEFORE_INSTALL/TEST_EXCLUDE_FROM_MAIN/g' CMakeLists.txt || die +} + +src_configure() { + local mycmakeargs=( + -DENABLE_UNIT_TESTS="$(usex test ON OFF)" + -DENABLE_FUNC_TESTS="$(usex test ON 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" + # unit tests + cmake_run_in "${BUILD_DIR}/subprojects/Build/BearSource" ctest --verbose + # functional tests + cmake_run_in "${BUILD_DIR}/subprojects/Build/BearTest" ctest --verbose + fi +} diff --git a/dev-util/bear/bear-3.0.11.ebuild b/dev-util/bear/bear-3.0.11.ebuild deleted file mode 100644 index ec5887766693..000000000000 --- a/dev-util/bear/bear-3.0.11.ebuild +++ /dev/null @@ -1,86 +0,0 @@ -# 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 ~x86" -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_prepare() { - cmake_src_prepare - # Turn off testing before installation - sed -i 's/TEST_BEFORE_INSTALL/TEST_EXCLUDE_FROM_MAIN/g' CMakeLists.txt || die -} - -src_configure() { - local mycmakeargs=( - -DENABLE_UNIT_TESTS="$(usex test ON OFF)" - -DENABLE_FUNC_TESTS="$(usex test ON 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" - # unit tests - cmake_run_in "${BUILD_DIR}/subprojects/Build/BearSource" ctest --verbose - # functional tests - cmake_run_in "${BUILD_DIR}/subprojects/Build/BearTest" ctest --verbose - fi -} -- cgit v1.2.3