Install this version:
emerge -a =dev-libs/yoga-3.2.1-r1
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =dev-libs/yoga-3.2.1-r1
Or alternatively:
emerge --autounmask-write -a =dev-libs/yoga-3.2.1-r1
# Copyright 2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake dot-a
DESCRIPTION="Cross-platform layout engine"
HOMEPAGE="https://github.com/facebook/yoga"
SRC_URI="https://github.com/facebook/yoga/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~riscv"
IUSE="test"
RESTRICT="!test? ( test )"
BDEPEND="
test? ( dev-cpp/gtest )
"
PATCHES=(
"${FILESDIR}"/"${P}-fix-tests.patch"
)
src_configure() {
lto-guarantee-fat
local mycmakeargs=(
-DBUILD_TESTS=$(usex test)
-DBUILD_FUZZ_TESTS=OFF #Requires the compiler to be Clang
)
cmake_src_configure
}
src_test() {
"${BUILD_DIR}"/tests/yogatests || die
}
src_install() {
cmake_src_install
strip-lto-bytecode
}
Manage flags for this package:
euse -i <flag> -p dev-libs/yoga |
euse -E <flag> -p dev-libs/yoga |
euse -D <flag> -p dev-libs/yoga
test? ( dev-cpp/gtest )