dev-libs/cpuinfo - 2026.04.13 (gentoo)

Search

Install

Install this version:

emerge -a =dev-libs/cpuinfo-2026.04.13

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =dev-libs/cpuinfo-2026.04.13

Or alternatively:

emerge --autounmask-write -a =dev-libs/cpuinfo-2026.04.13

Package Information

Description:
CPU INFOrmation library
Homepage:
https://github.com/pytorch/cpuinfo/
License:
MIT

Ebuild Details

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

EAPI=8
inherit cmake

CommitId=bc3c01e230c6974283e4b89421cfb0e232435589

DESCRIPTION="CPU INFOrmation library"
HOMEPAGE="https://github.com/pytorch/cpuinfo/"
SRC_URI="https://github.com/pytorch/${PN}/archive/${CommitId}.tar.gz
	-> ${P}.tar.gz"

S="${WORKDIR}"/${PN}-${CommitId}

LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~arm64 ~x86"
IUSE="test"

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

PATCHES=(
	"${FILESDIR}"/${PN}-2023.11.04-gentoo.patch
	"${FILESDIR}"/${PN}-2023.01.13-test.patch
)

src_configure() {
	local mycmakeargs=(
		-DCPUINFO_BUILD_BENCHMARKS=OFF
		-DCPUINFO_BUILD_UNIT_TESTS=$(usex test ON OFF)
	)
	cmake_src_configure
}

USE Flags

Manage flags for this package: euse -i <flag> -p dev-libs/cpuinfo | euse -E <flag> -p dev-libs/cpuinfo | euse -D <flag> -p dev-libs/cpuinfo

Global/Standard Flags

Inherited Eclasses

Dependencies

BDEPEND

test? ( dev-cpp/gtest )

Manifest for 2026.04.13

Type File Size Source URLs
DIST cpuinfo-2026.04.13.tar.gz 3550445 bytes https://github.com/pytorch/cpuinfo/archive/bc3c01e230c6974283e4b89421cfb0e232435589.tar.gz