Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-portage/cpuid2cpuflags/
Date: Tue, 10 Sep 2019 20:03:21
Message-Id: 1568145793.5573b23ca0a533fefc536ed590f8c53f11619902.mgorny@gentoo
1 commit: 5573b23ca0a533fefc536ed590f8c53f11619902
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Tue Sep 10 20:02:22 2019 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Tue Sep 10 20:03:13 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5573b23c
7
8 app-portage/cpuid2cpuflags: Bump to v7, with ppc support
9
10 Thanks to Georgy Yakovlev for the patch, testing and hopefully upcoming
11 keywording.
12
13 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
14
15 app-portage/cpuid2cpuflags/Manifest | 1 +
16 app-portage/cpuid2cpuflags/cpuid2cpuflags-7.ebuild | 28 ++++++++++++++++++++++
17 2 files changed, 29 insertions(+)
18
19 diff --git a/app-portage/cpuid2cpuflags/Manifest b/app-portage/cpuid2cpuflags/Manifest
20 index 24603e56533..94fd55fec78 100644
21 --- a/app-portage/cpuid2cpuflags/Manifest
22 +++ b/app-portage/cpuid2cpuflags/Manifest
23 @@ -1,3 +1,4 @@
24 DIST cpuid2cpuflags-5.tar.bz2 72050 BLAKE2B e9b7022ae5b7d51c88b5e41d9d7af1175498cb5a1f32876bfb766f785060f501d07ba3a5c346961e742bbf7022121faf3d0d068ec711ee9ed4e67cbdcd72a58a SHA512 41dcd2b974f6bd96867dea15a3839a8d63a3ff600189107ab16a67b5bc77ef421acbedb83f3e3b16ec90ac900d187aa8c44baae6fbdb4988f3bf7caa2d0d19a2
25 DIST cpuid2cpuflags-6.tar.bz2 79329 BLAKE2B 3fb1e104a065b020926602e3badcb96c8c3bbcf5ddc708eebdf7754e37bc302b88297471f51a07403eb49b0d688a1c2725b878bcb2a47edb0f491e3608d72b49 SHA512 b7c844667988663ad50430a506055c11263c33bd8821ae8025eea3f719c33101425dcaef3f89afed7f15952d678e4467afe99672eb3135bedc34fe5979f999e0
26 +DIST cpuid2cpuflags-7.tar.bz2 80582 BLAKE2B f78c94e2c3706a3bffe58631455c91d1742d8e551449b8ec0b3aa7cef4b542dbc7215f6cc6d5d8514aa7f8d90af56ea95ab6d1263f8d7442e0478581728d9511 SHA512 6ddfab6fc44910f8ad1c03ef1f6d6e2a9348a4ae419eeca6f97cf7bea76a88a2ff413421f6fc75df22b6b04d42346dc0f3c958dbd87d672abe007bfacf355d7f
27 DIST cpuinfo2cpuflags-1.tar.gz 1429 BLAKE2B 5126e643e5e2ea0be2418068fbcfbbae1781a0e3ab7903d909d4a5a291cb2e5db132a7a6a5c6db12a757688efca0557e4331a91f64af4b7e47deca415fd05b34 SHA512 68a21cfdb0fc8c6eb5aad5c6702d50dd56c927b2010efea1651dbc6a9657654b770bc5a4055fb11e790066c2c63c9ea29c3e03d91057abe187e7029e6797aede
28
29 diff --git a/app-portage/cpuid2cpuflags/cpuid2cpuflags-7.ebuild b/app-portage/cpuid2cpuflags/cpuid2cpuflags-7.ebuild
30 new file mode 100644
31 index 00000000000..b4d12bac27b
32 --- /dev/null
33 +++ b/app-portage/cpuid2cpuflags/cpuid2cpuflags-7.ebuild
34 @@ -0,0 +1,28 @@
35 +# Copyright 1999-2019 Gentoo Authors
36 +# Distributed under the terms of the GNU General Public License v2
37 +
38 +EAPI=7
39 +
40 +DESCRIPTION="Tool to guess CPU_FLAGS_* flags for the host"
41 +HOMEPAGE="https://github.com/mgorny/cpuid2cpuflags"
42 +SRC_URI="https://github.com/mgorny/cpuid2cpuflags/releases/download/v${PV}/${P}.tar.bz2"
43 +
44 +LICENSE="BSD-2"
45 +SLOT="0"
46 +KEYWORDS="~amd64 ~arm ~arm64 ~x86 ~amd64-fbsd ~x86-fbsd ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris"
47 +IUSE=""
48 +
49 +pkg_postinst() {
50 + local v
51 + for v in ${REPLACING_VERSIONS}; do
52 + if [[ ${v%-r*} -lt 2 ]]; then
53 + elog 'Please note that the output has changed in v2. The new format is suitable'
54 + elog 'both for Portage and Paludis. To use it, e.g.:'
55 + elog
56 + elog ' $ echo "*/* $(cpuid2cpuflags)" > /etc/portage/package.use/00cpuflags'
57 + elog
58 + elog '(you may need to convert package.use into a directory if you want to use'
59 + elog ' separate file as presented here)'
60 + fi
61 + done
62 +}