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
# 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
}
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
| Type | File | Size | Source URLs |
|---|---|---|---|
| DIST | cpuinfo-2026.04.13.tar.gz | 3550445 bytes | https://github.com/pytorch/cpuinfo/archive/bc3c01e230c6974283e4b89421cfb0e232435589.tar.gz |