dev-libs/yoga - 3.2.1-r1 (gentoo)

Search

Install

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

Package Information

Description:
Cross-platform layout engine
Homepage:
https://github.com/facebook/yoga
License:
MIT

Ebuild Details

Version EAPI Keywords Slot
3.2.1-r1 8 ~amd64 ~riscv 0
View Raw Ebuild
# 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
}

USE Flags

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

Global/Standard Flags

Inherited Eclasses

Dependencies

BDEPEND

	test? ( dev-cpp/gtest )