1 |
commit: 1dc4a663afef9f5cba0809971293ffe866a55aa4 |
2 |
Author: Jan Ziak (⚛) <0xe2.0x9a.0x9b <AT> gmail <DOT> com> |
3 |
AuthorDate: Fri Feb 26 22:55:24 2016 +0000 |
4 |
Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Feb 26 22:55:24 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1dc4a663 |
7 |
|
8 |
Add app-benchmarks/phoronix-test-suite 6.2.1 |
9 |
|
10 |
app-benchmarks/phoronix-test-suite/Manifest | 1 + |
11 |
.../phoronix-test-suite-6.2.1.ebuild | 109 +++++++++++++++++++++ |
12 |
2 files changed, 110 insertions(+) |
13 |
|
14 |
diff --git a/app-benchmarks/phoronix-test-suite/Manifest b/app-benchmarks/phoronix-test-suite/Manifest |
15 |
index 2126ac7..45db1ac 100644 |
16 |
--- a/app-benchmarks/phoronix-test-suite/Manifest |
17 |
+++ b/app-benchmarks/phoronix-test-suite/Manifest |
18 |
@@ -1,2 +1,3 @@ |
19 |
DIST phoronix-test-suite-4.8.4.tar.gz 523952 SHA256 113e6c725672c1f379885575e7cd51a3d0a387dc1c842606840e27fcd4695e43 SHA512 e7c201467a52fbbb9b0a87a47bd1eb772e24e43bedc2baf02845a9e9f355d6c22f46901be390d501a0e721ccfa05d28da4b8362817518ba5c801d6f4422c3b6f WHIRLPOOL 0760916473d8544652c0fc9c53f57a41015aacb99b42f53186d8b5008cbe5b2b396b024ce51ba3a3e31c35b319bac63db17db2b29295a8414c031c16d73813f6 |
20 |
DIST phoronix-test-suite-4.8.5.tar.gz 524136 SHA256 ca7bcbb5c72bee24075200449ee33fc75490ba528f804505d62fc3826d15456e SHA512 e37acdb48ba9ca532a6f409aea1c05b11b4320b967aac4576491ba5d401262d149f376506fef50ccee5506b77686aeed7a404102527472250cb7b5c1a247246a WHIRLPOOL be340514f3fdebafda449d60f069efcd44fa97d567b90616dc7332810d2802ed13433c94438937cab37f36744ddd383a918ceac92874f2702f28715c56ba3f9c |
21 |
+DIST phoronix-test-suite-6.2.1.tar.gz 836633 SHA256 2b83d1c552d13b6e3fc6dde288b661698122003250b1eefe823d99dcabbb91f1 SHA512 d4e3d29645be76804c4ce96f8072d43653607fb34fd003771e614f4b5213c7bf8d9d629261ff2c696e685196d08e05a935d5a496d139a6e9efa37df9c5550fd6 WHIRLPOOL 808963909db7ff227515b05b404c4c1dec106f38c5cd47139b5e059a82d05d82ff47e277f7f6af0eda63c3fc3f3e83ff86d7fa58a5abc4561ef615646f3dcf86 |
22 |
|
23 |
diff --git a/app-benchmarks/phoronix-test-suite/phoronix-test-suite-6.2.1.ebuild b/app-benchmarks/phoronix-test-suite/phoronix-test-suite-6.2.1.ebuild |
24 |
new file mode 100644 |
25 |
index 0000000..d67968b |
26 |
--- /dev/null |
27 |
+++ b/app-benchmarks/phoronix-test-suite/phoronix-test-suite-6.2.1.ebuild |
28 |
@@ -0,0 +1,109 @@ |
29 |
+# Copyright 1999-2015 Gentoo Foundation |
30 |
+# Distributed under the terms of the GNU General Public License v2 |
31 |
+# $Id$ |
32 |
+ |
33 |
+EAPI=4 |
34 |
+ |
35 |
+inherit eutils bash-completion-r1 |
36 |
+ |
37 |
+DESCRIPTION="Phoronix's comprehensive, cross-platform testing and benchmark suite" |
38 |
+HOMEPAGE="http://www.phoronix-test-suite.com" |
39 |
+SRC_URI="http://www.phoronix-test-suite.com/download.php?file=${P} -> ${P}.tar.gz" |
40 |
+ |
41 |
+LICENSE="GPL-3" |
42 |
+SLOT="0" |
43 |
+KEYWORDS="~amd64 ~x86" |
44 |
+IUSE="" |
45 |
+ |
46 |
+DEPEND="" |
47 |
+ |
48 |
+# php 5.3 doesn't have pcre and reflection useflags anymore |
49 |
+RDEPEND="dev-lang/php[cli,curl,gd,json,posix,pcntl,truetype,zip]" |
50 |
+ |
51 |
+S="${WORKDIR}/${PN}" |
52 |
+ |
53 |
+src_prepare() { |
54 |
+ sed -i -e "s,export PTS_DIR=\`pwd\`,export PTS_DIR=\"/usr/share/${PN}\"," \ |
55 |
+ phoronix-test-suite |
56 |
+} |
57 |
+ |
58 |
+src_configure() { |
59 |
+ : |
60 |
+} |
61 |
+ |
62 |
+src_compile() { |
63 |
+ : |
64 |
+} |
65 |
+ |
66 |
+src_install() { |
67 |
+ dodir /usr/share/${PN} |
68 |
+ insinto /usr/share/${PN} |
69 |
+ |
70 |
+ doman documentation/man-pages/phoronix-test-suite.1 |
71 |
+ dodoc AUTHORS ChangeLog README.md |
72 |
+ dohtml -r documentation/ |
73 |
+ doicon pts-core/static/images/phoronix-test-suite.png |
74 |
+ doicon pts-core/static/images/openbenchmarking.png |
75 |
+ domenu pts-core/static/phoronix-test-suite.desktop |
76 |
+ rm -f pts-core/static/phoronix-test-suite.desktop |
77 |
+ |
78 |
+ doins -r pts-core |
79 |
+ exeinto /usr/bin |
80 |
+ doexe phoronix-test-suite |
81 |
+ |
82 |
+ fperms a+x /usr/share/${PN}/pts-core/static/root-access.sh |
83 |
+ fperms a+x /usr/share/${PN}/pts-core/external-test-dependencies/scripts/install-gentoo-packages.sh |
84 |
+ |
85 |
+ newbashcomp pts-core/static/bash_completion ${PN} |
86 |
+ |
87 |
+ # Need to fix the cli-php config for downloading to work. Very naughty! |
88 |
+ local slots |
89 |
+ local slot |
90 |
+ if [[ "x${PHP_TARGETS}" == "x" ]] ; then |
91 |
+ ewarn |
92 |
+ ewarn "PHP_TARGETS seems empty, php.ini file can't be configured." |
93 |
+ ewarn "Make sure that PHP_TARGETS in /etc/make.conf is set." |
94 |
+ ewarn "phoronix-test-suite needs the 'allow_url_fopen' option set to \"On\"" |
95 |
+ ewarn "for downloading to work properly." |
96 |
+ ewarn |
97 |
+ else |
98 |
+ for slot in ${PHP_TARGETS}; do |
99 |
+ slots+=" ${slot/-/.}" |
100 |
+ done |
101 |
+ fi |
102 |
+ |
103 |
+ for slot in ${slots}; do |
104 |
+ local PHP_INI_FILE="/etc/php/cli-${slot}/php.ini" |
105 |
+ if [[ -f ${PHP_INI_FILE} ]] ; then |
106 |
+ dodir $(dirname ${PHP_INI_FILE}) |
107 |
+ cp ${PHP_INI_FILE} "${D}${PHP_INI_FILE}" |
108 |
+ sed -e 's|^allow_url_fopen .*|allow_url_fopen = On|g' -i "${D}${PHP_INI_FILE}" |
109 |
+ else |
110 |
+ if [[ "x$(eselect php show cli)" == "x${slot}" ]] ; then |
111 |
+ ewarn |
112 |
+ ewarn "${slot} hasn't a php.ini file." |
113 |
+ ewarn "phoronix-test-suite needs the 'allow_url_fopen' option set to \"On\"" |
114 |
+ ewarn "for downloading to work properly." |
115 |
+ ewarn "Check that your PHP_INI_VERSION is set during ${slot} merge" |
116 |
+ ewarn |
117 |
+ else |
118 |
+ elog |
119 |
+ elog "${slot} hasn't a php.ini file." |
120 |
+ elog "phoronix-test-suite may need the 'allow_url_fopen' option set to \"On\"" |
121 |
+ elog "for downloading to work properly if you switch to ${slot}" |
122 |
+ elog "Check that your PHP_INI_VERSION is set during ${slot} merge" |
123 |
+ elog |
124 |
+ fi |
125 |
+ fi |
126 |
+ done |
127 |
+ |
128 |
+ ewarn |
129 |
+ ewarn "If you upgrade from phoronix-test-suite-2*, you should reinstall all" |
130 |
+ ewarn "your tests because" |
131 |
+ ewarn " \$HOME/.phoronix-test-suite/installed-tests/\$TEST_NAME/" |
132 |
+ ewarn "moves to" |
133 |
+ ewarn " \$HOME/.phoronix-test-suite/installed-tests/pts/\$TEST_NAME-\$TEST_VERSION/" |
134 |
+ ewarn "in phoronix-test-suite-3* version. The \$TEST_VERSION can be find in" |
135 |
+ ewarn "pts-install.xml file." |
136 |
+ ewarn |
137 |
+} |