gui-apps/foot: conditionally build tests

Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James
2023-05-13 01:23:54 +01:00
parent ac4c7d63af
commit f37bcbedd4

View File

@@ -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-server@.service.in > foot-server@.service
sed 's|@bindir@|/usr/bin|g' "${S}/"/foot-server@.service.in > foot-server@.service || die
}
src_install() {