commit:     f37bcbedd481e67127e4d57dc58ebfa02635ef0c
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat May 13 00:23:54 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat May 13 00:41:27 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f37bcbed

gui-apps/foot: conditionally build tests

Signed-off-by: Sam James <sam <AT> gentoo.org>

 gui-apps/foot/foot-1.14.0.ebuild | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/gui-apps/foot/foot-1.14.0.ebuild b/gui-apps/foot/foot-1.14.0.ebuild
index c5e9a1847586..ff73ca025c6d 100644
--- a/gui-apps/foot/foot-1.14.0.ebuild
+++ b/gui-apps/foot/foot-1.14.0.ebuild
@@ -13,7 +13,8 @@ S="${WORKDIR}/${PN}"
 LICENSE="MIT"
 SLOT="0"
 KEYWORDS="~amd64 ~arm64"
-IUSE="+grapheme-clustering"
+IUSE="+grapheme-clustering test"
+RESTRICT="!test? ( test )"
 
 COMMON_DEPEND="
        dev-libs/wayland
@@ -52,13 +53,14 @@ src_prepare() {
 src_configure() {
        local emesonargs=(
                $(meson_feature grapheme-clustering)
+               $(meson_use test tests)
                -Dthemes=true
                -Dime=true
                -Dterminfo=disabled
        )
        meson_src_configure
 
-       sed 's|@bindir@|/usr/bin|g' "${S}/"/foot-ser...@.service.in > 
foot-server@.service
+       sed 's|@bindir@|/usr/bin|g' "${S}/"/foot-ser...@.service.in > 
foot-server@.service || die
 }
 
 src_install() {

Reply via email to