app-i18n/fcitx-chewing: conditionally build tests

19->15 targets when tests are disabled

Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James
2025-05-27 03:31:39 +01:00
parent f47c18258a
commit 33bafda7ef

View File

@@ -14,6 +14,8 @@ SRC_URI="https://download.fcitx-im.org/fcitx5/${MY_PN}/${MY_PN}-${PV}.tar.zst ->
LICENSE="LGPL-2.1+"
SLOT="5"
KEYWORDS="amd64 ~arm64 ~loong ~riscv x86"
IUSE="test"
RESTRICT="!test? ( test )"
RDEPEND="
!app-i18n/fcitx-chewing:4
@@ -24,3 +26,11 @@ DEPEND="${RDEPEND}"
BDEPEND="virtual/pkgconfig"
S="${WORKDIR}/${MY_PN}-${PV}"
src_configure() {
local mycmakeargs=(
-DENABLE_TEST=$(usex test)
)
cmake_src_configure
}