dev-libs/yoga - 3.2.1 (gentoo)

Search

Package Information

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

Ebuild Details

Version EAPI Keywords Slot
3.2.1 8 ~amd64 0
View Raw Ebuild
# Copyright 2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit cmake

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"
IUSE="test"
RESTRICT="!test? ( test )"

BDEPEND="
	test? ( dev-cpp/gtest )
"

PATCHES=(
	"${FILESDIR}"/"${P}-fix-tests.patch"
)

src_configure() {
	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
}

USE Flags

Dependencies

BDEPEND

	test? ( dev-cpp/gtest )

Manifest for 3.2.1

Type File Size Source URLs
DIST yoga-3.2.1.tar.gz 2172950 bytes https://github.com/facebook/yoga/archive/refs/tags/v3.2.1.tar.gz