From ad6182343997a405079870a2fe91c4e0c6b94595 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Wed, 25 Sep 2019 19:33:39 +0100 Subject: gentoo resync : 25.09.2019 --- app-portage/cpuid2cpuflags/cpuid2cpuflags-8.ebuild | 28 ++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 app-portage/cpuid2cpuflags/cpuid2cpuflags-8.ebuild (limited to 'app-portage/cpuid2cpuflags/cpuid2cpuflags-8.ebuild') diff --git a/app-portage/cpuid2cpuflags/cpuid2cpuflags-8.ebuild b/app-portage/cpuid2cpuflags/cpuid2cpuflags-8.ebuild new file mode 100644 index 000000000000..f90b8b68888d --- /dev/null +++ b/app-portage/cpuid2cpuflags/cpuid2cpuflags-8.ebuild @@ -0,0 +1,28 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DESCRIPTION="Tool to guess CPU_FLAGS_* flags for the host" +HOMEPAGE="https://github.com/mgorny/cpuid2cpuflags" +SRC_URI="https://github.com/mgorny/cpuid2cpuflags/releases/download/v${PV}/${P}.tar.bz2" + +LICENSE="BSD-2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86 ~amd64-fbsd ~x86-fbsd ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris" +IUSE="" + +pkg_postinst() { + local v + for v in ${REPLACING_VERSIONS}; do + if [[ ${v%-r*} -lt 2 ]]; then + elog 'Please note that the output has changed in v2. The new format is suitable' + elog 'both for Portage and Paludis. To use it, e.g.:' + elog + elog ' $ echo "*/* $(cpuid2cpuflags)" > /etc/portage/package.use/00cpuflags' + elog + elog '(you may need to convert package.use into a directory if you want to use' + elog ' separate file as presented here)' + fi + done +} -- cgit v1.2.3