commit:     2b4d9a6848c3a632f2fc38a2d5c9358da993b7fd
Author:     Anton Filimonov <anton.filimonov <AT> gmail <DOT> com>
AuthorDate: Wed Apr 28 07:45:48 2021 +0000
Commit:     Anton Filimonov <anton.filimonov <AT> gmail <DOT> com>
CommitDate: Wed Apr 28 07:47:11 2021 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=2b4d9a68

app-text/klogg: fix building tests

Closes: https://bugs.gentoo.org/786219

Package-Manager: Portage-3.0.18, Repoman-3.0.2
Signed-off-by: Anton Filimonov <anton.filimonov <AT> gmail.com>

 app-text/klogg/klogg-20.12.ebuild | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/app-text/klogg/klogg-20.12.ebuild 
b/app-text/klogg/klogg-20.12.ebuild
index 13be48640..5c12b31af 100644
--- a/app-text/klogg/klogg-20.12.ebuild
+++ b/app-text/klogg/klogg-20.12.ebuild
@@ -12,7 +12,7 @@ 
SRC_URI="https://github.com/variar/klogg/archive/refs/tags/v${PV}.tar.gz -> ${P}
 LICENSE="GPL-3+"
 SLOT="0"
 KEYWORDS="~amd64 ~x86"
-IUSE="+sentry lto"
+IUSE="+sentry lto test"
 
 DEPEND="
        dev-qt/qtcore:5
@@ -26,6 +26,9 @@ RDEPEND="
        ${DEPEND}
        x11-themes/hicolor-icon-theme
 "
+BDEPEND="
+       test? ( dev-qt/qttest:5 )
+"
 
 QA_PREBUILT="usr/bin/klogg_minidump_dump"
 
@@ -40,6 +43,7 @@ src_configure() {
        local mycmakeargs=(
                -DDISABLE_WERROR=ON
                -DKLOGG_USE_SENTRY=$(usex sentry)
+               -DBUILD_TESTS=$(usex test)
                -DUSE_LTO=$(usex lto)
                -DWARNINGS_AS_ERRORS=OFF
        )

Reply via email to