1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 PYTHON_COMPAT=( python{2_7,3_4} pypy )
10 MY_PN=cpuinfo2cpuflags
12 DESCRIPTION="Script to guess CPU_FLAGS_X86 flags from /proc/cpuinfo"
13 HOMEPAGE="https://github.com/mgorny/cpuid2cpuflags"
14 SRC_URI="https://github.com/mgorny/cpuid2cpuflags/releases/download/v${PV}/${MY_P}.tar.gz"
18 KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux"
21 RDEPEND=${PYTHON_DEPS}
22 REQUIRED_USE=${PYTHON_REQUIRED_USE}
27 python_foreach_impl python_newscript "${MY_PN}-x86"{.py,}
31 if has_version 'sys-apps/portage' \
32 && ! has_version "sys-apps/portage[${PYTHON_USEDEP}]"
34 ewarn "Support for matching Python implementations should be enabled"
35 ewarn "on sys-apps/portage as well. Otherwise, cpuinfo2cpuflags won't"
36 ewarn "be able to figure out the correct repository location and will"
37 ewarn "require you to specify it explicitly."