Gentoo Archives: gentoo-commits

From: Thomas Deutschmann <whissi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-benchmarks/iozone/
Date: Thu, 14 Feb 2019 18:45:07
Message-Id: 1550169893.21b7d681d0fd932cc2f4989a7f92b102b1dc5996.whissi@gentoo
1 commit: 21b7d681d0fd932cc2f4989a7f92b102b1dc5996
2 Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
3 AuthorDate: Thu Feb 14 18:39:49 2019 +0000
4 Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
5 CommitDate: Thu Feb 14 18:44:53 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=21b7d681
7
8 app-benchmarks/iozone: bump to v3.487
9
10 Package-Manager: Portage-2.3.59, Repoman-2.3.12
11 Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>
12
13 app-benchmarks/iozone/Manifest | 1 +
14 app-benchmarks/iozone/iozone-3.487.ebuild | 77 +++++++++++++++++++++++++++++++
15 2 files changed, 78 insertions(+)
16
17 diff --git a/app-benchmarks/iozone/Manifest b/app-benchmarks/iozone/Manifest
18 index b4e1bf07cb7..1a001458f1e 100644
19 --- a/app-benchmarks/iozone/Manifest
20 +++ b/app-benchmarks/iozone/Manifest
21 @@ -1,2 +1,3 @@
22 DIST iozone3_471.tar 1853440 BLAKE2B 280c821a439ad1bacbd749278385481678d644a59c14395482c8a088b0578285f389f376fb32ce3c3abde598f50d693fb0c7c9a3d6597765547a71c76d21ea1c SHA512 c61b2b8b5af3dccdb99b26aef8a0a4f2f5f467fc3985ac72ed4bb4fb36e4b7684ca6dbaa5bbc05ae0a4e73852e048e9fd2495eda9313f5abc4e631499d683aec
23 DIST iozone3_484.tar 1863680 BLAKE2B 72d3d3125aec2dfc504bb00684ef325e85edffe0d6efcd519cd692cfa2b9b792a44c00313dc96eabbbb3ab850a7a440b3ca3d5b955c4f6092b08f92ebe5c332b SHA512 bb1ac0c1724a5d3c20e90c56c0b4a438b4aa50384cddc76f4b77f2c465f052fd3fae9217b77688a2c6caf5e90611123a97ea0cd8074b3678068a90e6dd7857b7
24 +DIST iozone3_487.tar 1873920 BLAKE2B f27edb85ebfd19e55dea239a4e5d595a84981c0249ec57148efdcce90a85a5cbf1e17f319de820a06410c66390ddd38efe1b90b31ed98c3bf979eea6fb25ccc7 SHA512 2f3a9d259ca531e45124e8ad55358706e2f9615f50fbf434e786b832622aa5f673dbed1b2706c6450c200e0af7f7374e40402e0b06ad116d5f2a0704a6156a1a
25
26 diff --git a/app-benchmarks/iozone/iozone-3.487.ebuild b/app-benchmarks/iozone/iozone-3.487.ebuild
27 new file mode 100644
28 index 00000000000..0706eaef996
29 --- /dev/null
30 +++ b/app-benchmarks/iozone/iozone-3.487.ebuild
31 @@ -0,0 +1,77 @@
32 +# Copyright 1999-2019 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI="7"
36 +
37 +# TODO
38 +# -> linux-arm (32bit) <-
39 +# -> linux-AMD64 (64bit) <-
40 +# -> linux-ia64 (64bit) <-
41 +# -> linux-powerpc (32bit) <-
42 +# -> linux-powerpc64 (64bit) <-
43 +# -> linux-S390 (32bit) <-
44 +# -> linux-S390X (64bit) <-
45 +#
46 +# -> freebsd (32bit) <-
47 +# -> macosx (32bit) <-
48 +# -> netbsd (32bit) <-
49 +# -> openbsd (32bit) <-
50 +# -> openbsd-threads (32bit) <-
51 +#
52 +# ~ia64 ~s390 alpha(?) x86-fbsd
53 +
54 +inherit toolchain-funcs
55 +
56 +DESCRIPTION="Filesystem benchmarking program"
57 +HOMEPAGE="http://www.iozone.org/"
58 +SRC_URI="http://www.iozone.org/src/current/${PN}${PV/./_}.tar"
59 +
60 +LICENSE="freedist"
61 +SLOT="0"
62 +KEYWORDS="~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86"
63 +IUSE=""
64 +
65 +S=${WORKDIR}/${PN}${PV/./_}
66 +
67 +src_prepare() {
68 + default
69 +
70 + # Options FIX
71 + sed -i -e "s:CC =.*:CC =$(tc-getCC):g" \
72 + -e "s:-O3:${CFLAGS}:g" src/current/makefile || die
73 +}
74 +
75 +src_configure() {
76 + case ${ARCH} in
77 + x86|alpha) PLATFORM="linux";;
78 + arm) PLATFORM="linux-arm";;
79 + ppc) PLATFORM="linux-powerpc";;
80 + ppc64) PLATFORM="linux-powerpc64";;
81 + amd64) PLATFORM="linux-AMD64";;
82 + ia64) PLATFORM="linux-ia64";;
83 + s390) PLATFORM="linux-S390";;
84 + x86-fbsd) PLATFORM="freebsd";;
85 + *) PLATFORM="linux-${ARCH}";;
86 + esac
87 +}
88 +
89 +src_compile() {
90 + emake -C src/current ${PLATFORM}
91 +}
92 +
93 +src_test() {
94 + cd "${T}" || die
95 + "${S}"/src/current/iozone testfile || die "self test failed"
96 +}
97 +
98 +src_install() {
99 + dosbin src/current/{iozone,fileop}
100 +
101 + # decompress pre-compressed file to make QA check happy
102 + gzip -d docs/Iozone_ps.gz || die
103 +
104 + dodoc docs/I* docs/Run_rules.doc src/current/Changes.txt
105 + doman docs/iozone.1
106 + cd src/current || die
107 + dodoc Generate_Graphs Gnuplot.txt gengnuplot.sh gnu3d.dem
108 +}