diff options
-rw-r--r-- | app-portage/cpuid2cpuflags/Manifest | 1 | ||||
-rw-r--r-- | app-portage/cpuid2cpuflags/cpuid2cpuflags-9.ebuild | 28 |
2 files changed, 29 insertions, 0 deletions
diff --git a/app-portage/cpuid2cpuflags/Manifest b/app-portage/cpuid2cpuflags/Manifest index 5892e3daaadb..21d476316e1d 100644 --- a/app-portage/cpuid2cpuflags/Manifest +++ b/app-portage/cpuid2cpuflags/Manifest @@ -1,2 +1,3 @@ DIST cpuid2cpuflags-8.tar.bz2 82432 BLAKE2B c4284106a4b1433e266e364b40dd50cf801f6b4afcb6928b13c1ac58ea1c3854b4a952f6ac914ef995aaa8bc9cfd8a4428c84386eb2949f83228a5b9d9781ada SHA512 167ee1620d6d726ef849d265785b568bb72a1aae15f5f0c527a903424c8ce9519033c49e8a143ae093b56e25fd71b4746793fb825233173fe60ac29eeecca20c +DIST cpuid2cpuflags-9.tar.bz2 82841 BLAKE2B 6f866a29680b53975359c56f54f3ecd8e978fe55297fdfcb84b25f57dc38bb0fb5c2169dde83e29235d13667a43faa11d75fa15e3d8fbef65a86cea2832363c4 SHA512 61a265abfd5b0920e1b3c18d322dceb416a6a353b3d3ef3f01ab1d02aab1b45dd1ec4eed4ccf667eae82c953830f29d22a671dd7d7c2b4d309050033af1fd5b7 DIST cpuinfo2cpuflags-1.tar.gz 1429 BLAKE2B 5126e643e5e2ea0be2418068fbcfbbae1781a0e3ab7903d909d4a5a291cb2e5db132a7a6a5c6db12a757688efca0557e4331a91f64af4b7e47deca415fd05b34 SHA512 68a21cfdb0fc8c6eb5aad5c6702d50dd56c927b2010efea1651dbc6a9657654b770bc5a4055fb11e790066c2c63c9ea29c3e03d91057abe187e7029e6797aede diff --git a/app-portage/cpuid2cpuflags/cpuid2cpuflags-9.ebuild b/app-portage/cpuid2cpuflags/cpuid2cpuflags-9.ebuild new file mode 100644 index 000000000000..365682172c57 --- /dev/null +++ b/app-portage/cpuid2cpuflags/cpuid2cpuflags-9.ebuild @@ -0,0 +1,28 @@ +# Copyright 1999-2020 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 ~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 +} |