commit:     15c2c6034d134844ec33db482a48611a7f703928
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Thu Jan 24 23:16:28 2019 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Tue Sep 13 18:33:13 2022 +0000
URL:        https://gitweb.gentoo.org/proj/kde.git/commit/?id=15c2c603

dev-libs/appstream: Fix build with USE !test

Closes: https://bugs.gentoo.org/675944
Package-Manager: Portage-2.3.58, Repoman-2.3.12
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>

 dev-libs/appstream/appstream-9999.ebuild | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/dev-libs/appstream/appstream-9999.ebuild 
b/dev-libs/appstream/appstream-9999.ebuild
index ad3a68301a..669548c9d8 100644
--- a/dev-libs/appstream/appstream-9999.ebuild
+++ b/dev-libs/appstream/appstream-9999.ebuild
@@ -49,6 +49,9 @@ BDEPEND="
 src_prepare() {
        default
        sed -e "/^as_doc_target_dir/s/appstream/${PF}/" -i docs/meson.build || 
die
+       if ! use test; then
+               sed -e "/^subdir.*tests/s/^/#DONT /" -i {,qt/}meson.build || 
die # bug 675944
+       fi
 }
 
 src_configure() {

Reply via email to