1 |
commit: 50a19d3c52f3a304f4770349aaa5affac5b69306 |
2 |
Author: Conrad Kostecki <conrad <AT> kostecki <DOT> com> |
3 |
AuthorDate: Thu Feb 21 19:44:02 2019 +0000 |
4 |
Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Feb 22 21:08:25 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=50a19d3c |
7 |
|
8 |
app-benchmarks/interbench: new package. |
9 |
|
10 |
The Linux interactivity benchmark. |
11 |
|
12 |
It is designed to measure the effect of changed in Linux kernel design or |
13 |
system configuration changes such as CPU, I/O scheduler and filesystem changes |
14 |
and options. |
15 |
|
16 |
Closes: https://bugs.gentoo.org/100145 |
17 |
Package-Manager: Portage-2.3.60, Repoman-2.3.12 |
18 |
Signed-off-by: Conrad Kostecki <conrad <AT> kostecki.com> |
19 |
Closes: https://github.com/gentoo/gentoo/pull/10316 |
20 |
Signed-off-by: Patrice Clement <monsieurp <AT> gentoo.org> |
21 |
|
22 |
app-benchmarks/interbench/Manifest | 1 + |
23 |
.../files/interbench-0.31-makefile.patch | 16 ++++++++++ |
24 |
app-benchmarks/interbench/interbench-0.31.ebuild | 37 ++++++++++++++++++++++ |
25 |
app-benchmarks/interbench/metadata.xml | 22 +++++++++++++ |
26 |
4 files changed, 76 insertions(+) |
27 |
|
28 |
diff --git a/app-benchmarks/interbench/Manifest b/app-benchmarks/interbench/Manifest |
29 |
new file mode 100644 |
30 |
index 00000000000..1a3e159db55 |
31 |
--- /dev/null |
32 |
+++ b/app-benchmarks/interbench/Manifest |
33 |
@@ -0,0 +1 @@ |
34 |
+DIST interbench-0.31.tar.gz 38791 BLAKE2B 8f5605c763be6be0fcb5b240d5022c578af98d470a8bdf61f0ebc2abe56e6439fa37b5ac4e3eae16c7aab902cc08fab25f0cb34a92c0eea05b287b7bef2abbb4 SHA512 ccad7f5a7ea10c3c56809725145bad17970c4fa8aafc4b962e4e79c56bfa05025fee140e5b70ec407158aca59bba47e6bbff14329516d9383801ffe4c0797a23 |
35 |
|
36 |
diff --git a/app-benchmarks/interbench/files/interbench-0.31-makefile.patch b/app-benchmarks/interbench/files/interbench-0.31-makefile.patch |
37 |
new file mode 100644 |
38 |
index 00000000000..712c54f482c |
39 |
--- /dev/null |
40 |
+++ b/app-benchmarks/interbench/files/interbench-0.31-makefile.patch |
41 |
@@ -0,0 +1,16 @@ |
42 |
+--- a/Makefile 2016-10-21 04:28:00.000000000 +0200 |
43 |
++++ b/Makefile 2018-11-01 16:56:36.000000000 +0100 |
44 |
+@@ -1,8 +1,9 @@ |
45 |
+-CC=gcc |
46 |
+-CFLAGS=-W -Wall -g -O2 -s -pipe |
47 |
+-LDFLAGS=-lrt -lm -pthread |
48 |
++CC ?= gcc |
49 |
++CFLAGS+=-W -Wall |
50 |
++LDFLAGS+=-lrt -lm -pthread |
51 |
+ |
52 |
+-interbench: interbench.o hackbench.o -lm |
53 |
++interbench: interbench.o hackbench.o |
54 |
++ $(CC) $(CFLAGS) -o interbench interbench.o hackbench.o $(LDFLAGS) |
55 |
+ interbench.o: interbench.c |
56 |
+ hackbench.o: hackbench.c |
57 |
+ |
58 |
|
59 |
diff --git a/app-benchmarks/interbench/interbench-0.31.ebuild b/app-benchmarks/interbench/interbench-0.31.ebuild |
60 |
new file mode 100644 |
61 |
index 00000000000..bab121c0d44 |
62 |
--- /dev/null |
63 |
+++ b/app-benchmarks/interbench/interbench-0.31.ebuild |
64 |
@@ -0,0 +1,37 @@ |
65 |
+# Copyright 1999-2019 Gentoo Authors |
66 |
+# Distributed under the terms of the GNU General Public License v2 |
67 |
+ |
68 |
+EAPI=7 |
69 |
+ |
70 |
+inherit toolchain-funcs |
71 |
+ |
72 |
+DESCRIPTION="A Linux interactivity benchmark" |
73 |
+HOMEPAGE=" |
74 |
+ http://interbench.kolivas.org/ |
75 |
+ https://github.com/ckolivas/interbench/ |
76 |
+" |
77 |
+SRC_URI="https://github.com/ckolivas/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
78 |
+ |
79 |
+KEYWORDS="~amd64 ~x86" |
80 |
+LICENSE="GPL-2+" |
81 |
+SLOT="0" |
82 |
+ |
83 |
+PATCHES=( "${FILESDIR}/${P}-makefile.patch" ) |
84 |
+ |
85 |
+DOCS=( |
86 |
+ "readme" |
87 |
+ "readme.interactivity" |
88 |
+) |
89 |
+ |
90 |
+src_prepare() { |
91 |
+ default |
92 |
+ |
93 |
+ tc-export CC |
94 |
+} |
95 |
+ |
96 |
+src_install() { |
97 |
+ dobin interbench |
98 |
+ doman interbench.8 |
99 |
+ |
100 |
+ einstalldocs |
101 |
+} |
102 |
|
103 |
diff --git a/app-benchmarks/interbench/metadata.xml b/app-benchmarks/interbench/metadata.xml |
104 |
new file mode 100644 |
105 |
index 00000000000..f86ed635b54 |
106 |
--- /dev/null |
107 |
+++ b/app-benchmarks/interbench/metadata.xml |
108 |
@@ -0,0 +1,22 @@ |
109 |
+<?xml version="1.0" encoding="UTF-8"?> |
110 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
111 |
+<pkgmetadata> |
112 |
+ <maintainer type="person"> |
113 |
+ <email>ck+gentoo@××××××××.de</email> |
114 |
+ <name>Conrad Kostecki</name> |
115 |
+ </maintainer> |
116 |
+ <maintainer type="project"> |
117 |
+ <email>proxy-maint@g.o</email> |
118 |
+ <name>Proxy Maintainers</name> |
119 |
+ </maintainer> |
120 |
+ <longdescription> |
121 |
+ This benchmark application is designed to benchmark interactivity in Linux. |
122 |
+ It is designed to measure the effect of changes in Linux kernel design or system |
123 |
+ configuration changes such as CPU, I/O scheduler and filesystem changes and options. |
124 |
+ With careful benchmarking, different hardware can be compared. |
125 |
+ </longdescription> |
126 |
+ <upstream> |
127 |
+ <bugs-to>https://github.com/ckolivas/interbench/issues</bugs-to> |
128 |
+ <remote-id type="github">ckolivas/interbench</remote-id> |
129 |
+ </upstream> |
130 |
+</pkgmetadata> |