From: Andreas Sturmlechner Date: Thu, 24 Jan 2019 23:16:28 +0000 (+0100) Subject: dev-libs/appstream: Fix build with USE !test X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=2dd95b1b5378fc917fd27c5d0a5c925ce9b8f5cd;p=gentoo.git 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 --- diff --git a/dev-libs/appstream/appstream-0.12.4.ebuild b/dev-libs/appstream/appstream-0.12.4.ebuild index 315dc0c2acdb..b64ac55e0487 100644 --- a/dev-libs/appstream/appstream-0.12.4.ebuild +++ b/dev-libs/appstream/appstream-0.12.4.ebuild @@ -47,6 +47,9 @@ RDEPEND="${DEPEND}" 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() {