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-benchmarks/cpuburn/
Date: Sun, 03 Jun 2018 08:32:42
Message-Id: 1528014746.8588318f93b994fb5a1ef8df1060807417655e6d.mgorny@gentoo
1 commit: 8588318f93b994fb5a1ef8df1060807417655e6d
2 Author: Conrad Kostecki <conrad <AT> kostecki <DOT> com>
3 AuthorDate: Sun May 6 20:15:43 2018 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sun Jun 3 08:32:26 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8588318f
7
8 app-benchmarks/cpuburn: Add arm support and fix QA warnings
9
10 Closes: https://bugs.gentoo.org/650058
11 Closes: https://bugs.gentoo.org/654966
12 Closes: https://github.com/gentoo/gentoo/pull/8274
13 Package-Manager: Portage-2.3.36, Repoman-2.3.9
14
15 app-benchmarks/cpuburn/cpuburn-1.4a-r2.ebuild | 57 +++++++++++++++++++++++++++
16 app-benchmarks/cpuburn/metadata.xml | 16 ++++++--
17 2 files changed, 69 insertions(+), 4 deletions(-)
18
19 diff --git a/app-benchmarks/cpuburn/cpuburn-1.4a-r2.ebuild b/app-benchmarks/cpuburn/cpuburn-1.4a-r2.ebuild
20 new file mode 100644
21 index 00000000000..db1f520822b
22 --- /dev/null
23 +++ b/app-benchmarks/cpuburn/cpuburn-1.4a-r2.ebuild
24 @@ -0,0 +1,57 @@
25 +# Copyright 1999-2018 Gentoo Foundation
26 +# Distributed under the terms of the GNU General Public License v2
27 +
28 +EAPI=6
29 +
30 +MY_PV="${PV/./_}"
31 +
32 +DESCRIPTION="CPU testing utilities in optimized assembler for maximum loading"
33 +HOMEPAGE="https://downloads.bl4ckb0x.de/pages.sbcglobal.net/redelm/"
34 +SRC_URI="https://downloads.bl4ckb0x.de/pages.sbcglobal.net/redelm/${PN}_${MY_PV}_tar.gz -> ${P}.tar.gz"
35 +
36 +KEYWORDS="-* ~amd64 ~arm ~x86"
37 +LICENSE="GPL-2"
38 +SLOT="0"
39 +
40 +PATCHES=( "${FILESDIR}/01-variables.patch" )
41 +
42 +QA_FLAGS_IGNORED="usr/bin/burnBX
43 + usr/bin/burnK6
44 + usr/bin/burnK7
45 + usr/bin/burnMMX
46 + usr/bin/burnP5
47 + usr/bin/burnP6"
48 +
49 +QA_TEXTRELS="${QA_FLAGS_IGNORED}"
50 +
51 +src_prepare() {
52 + default
53 +
54 + # Respect users compiler and users CFLAGS and LDFLAGS on x86/amd64
55 + # Must be always compiled in 32-bit on amd64 arch
56 + # See https://bugs.gentoo.org/65719
57 + sed -i -e 's/gcc -s/$(CC) $(CFLAGS) -m32 $(LDFLAGS)/' Makefile || die
58 +
59 + # Respect users compiler and users CFLAGS and LDFLAGS on arm
60 + sed -i -e '/CC :=/d' -e 's/^.*-mfloat-abi=softfp/ $(CC) $(CFLAGS) -nostdlib $(LDFLAGS)/' ARM/Makefile || die
61 +}
62 +
63 +src_compile() {
64 + if use arm; then
65 + cd "${S}"/ARM || die
66 + fi
67 +
68 + default
69 +}
70 +
71 +src_install() {
72 + if use arm; then
73 + dobin ARM/burnCortexA8 ARM/burnCortexA9
74 + local DOCS=( "ARM/Design" "README" )
75 + else
76 + dobin burnBX burnK6 burnK7 burnMMX burnP5 burnP6
77 + local DOCS=( "Design" "README" )
78 + fi
79 +
80 + einstalldocs
81 +}
82
83 diff --git a/app-benchmarks/cpuburn/metadata.xml b/app-benchmarks/cpuburn/metadata.xml
84 index 5aa5eacd888..140c5aa589a 100644
85 --- a/app-benchmarks/cpuburn/metadata.xml
86 +++ b/app-benchmarks/cpuburn/metadata.xml
87 @@ -1,10 +1,18 @@
88 <?xml version="1.0" encoding="UTF-8"?>
89 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
90 <pkgmetadata>
91 - <!-- maintainer-needed -->
92 + <maintainer type="person">
93 + <email>ck+gentoo@××××××××.de</email>
94 + <name>Conrad Kostecki</name>
95 + </maintainer>
96 + <maintainer type="project">
97 + <email>proxy-maint@g.o</email>
98 + <name>Proxy Maintainers</name>
99 + </maintainer>
100 <longdescription>
101 - CPUBurn is the ultimate stability testing tool for overclockers. The
102 - program heats up any x86 CPU to the maximum possible operating
103 - temperature that is achievable by using ordinary software.
104 + CPU testing utilities in optimized assembler for maximum loading
105 + P6 (Intel Pentium Pro/II/III and Celeron TM),
106 + AMD K7 (Athlon/Duron/Thunderbird TM),
107 + AMD K6, and Intel P5 Pentium chips.
108 </longdescription>
109 </pkgmetadata>