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: Sat, 01 Apr 2017 06:15:14
Message-Id: 1491027304.a6139b237992c6963d48b60e31f0f4520cd33636.mgorny@gentoo
1 commit: a6139b237992c6963d48b60e31f0f4520cd33636
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sat Apr 1 06:14:12 2017 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sat Apr 1 06:15:04 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a6139b23
7
8 app-portage/cpuid2cpuflags: Add postinst about the new output
9
10 app-portage/cpuid2cpuflags/cpuid2cpuflags-3.ebuild | 15 +++++++++++++++
11 app-portage/cpuid2cpuflags/cpuid2cpuflags-4.ebuild | 15 +++++++++++++++
12 2 files changed, 30 insertions(+)
13
14 diff --git a/app-portage/cpuid2cpuflags/cpuid2cpuflags-3.ebuild b/app-portage/cpuid2cpuflags/cpuid2cpuflags-3.ebuild
15 index 9d5be8483d5..7aec3c15788 100644
16 --- a/app-portage/cpuid2cpuflags/cpuid2cpuflags-3.ebuild
17 +++ b/app-portage/cpuid2cpuflags/cpuid2cpuflags-3.ebuild
18 @@ -11,3 +11,18 @@ LICENSE="BSD-2"
19 SLOT="0"
20 KEYWORDS="~amd64 ~arm64 ~x86 ~amd64-fbsd ~x86-fbsd ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris"
21 IUSE=""
22 +
23 +pkg_postinst() {
24 + local v
25 + for v in ${REPLACING_VERSIONS}; do
26 + if [[ ${v%-r*} -lt 2 ]]; then
27 + elog 'Please note that the output has changed in v2. The new format is suitable'
28 + elog 'both for Portage and Paludis. To use it, e.g.:'
29 + elog
30 + elog ' $ echo "*/* $(cpuid2cpuflags)" > /etc/portage/package.use/00cpuflags'
31 + elog
32 + elog '(you may need to convert package.use into a directory if you want to use'
33 + elog ' separate file as presented here)'
34 + fi
35 + done
36 +}
37
38 diff --git a/app-portage/cpuid2cpuflags/cpuid2cpuflags-4.ebuild b/app-portage/cpuid2cpuflags/cpuid2cpuflags-4.ebuild
39 index 9d5be8483d5..7aec3c15788 100644
40 --- a/app-portage/cpuid2cpuflags/cpuid2cpuflags-4.ebuild
41 +++ b/app-portage/cpuid2cpuflags/cpuid2cpuflags-4.ebuild
42 @@ -11,3 +11,18 @@ LICENSE="BSD-2"
43 SLOT="0"
44 KEYWORDS="~amd64 ~arm64 ~x86 ~amd64-fbsd ~x86-fbsd ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris"
45 IUSE=""
46 +
47 +pkg_postinst() {
48 + local v
49 + for v in ${REPLACING_VERSIONS}; do
50 + if [[ ${v%-r*} -lt 2 ]]; then
51 + elog 'Please note that the output has changed in v2. The new format is suitable'
52 + elog 'both for Portage and Paludis. To use it, e.g.:'
53 + elog
54 + elog ' $ echo "*/* $(cpuid2cpuflags)" > /etc/portage/package.use/00cpuflags'
55 + elog
56 + elog '(you may need to convert package.use into a directory if you want to use'
57 + elog ' separate file as presented here)'
58 + fi
59 + done
60 +}