1 # Copyright 2024 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 DISTUTILS_USE_PEP517
=poetry
7 PYTHON_COMPAT
=( python3_
{9.
.12} )
11 DESCRIPTION
="A library for detecting, labeling, and reasoning about microarchitectures"
12 HOMEPAGE
="https://github.com/archspec/archspec"
14 CPUID
="5b381ed2af05ad9ead46a136b43c2f7021bd44bb"
17 https://github.com/archspec/archspec/archive/v${PV}.tar.gz -> ${P}.tar.gz
18 https://github.com/archspec/archspec-json/archive/v${PV}.tar.gz -> ${P}-json.tar.gz
19 https://github.com/archspec/cpuid/archive/${CPUID}.tar.gz -> ${P}-cpuid.tar.gz"
21 LICENSE
="Apache-2.0 MIT"
23 KEYWORDS
="~amd64 ~x86"
25 distutils_enable_tests pytest
29 mv -u "${PN}-json-${PV}/cpu/" "${S}/${PN}/json" || die
30 rm -r "${S}/${PN}/vendor/cpuid" || die
31 mv -u "cpuid-${CPUID}" "${S}/${PN}/vendor/cpuid" || die