Gentoo Archives: gentoo-commits

From: "Patrick Lauer (patrick)" <patrick@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-benchmarks/phoronix-test-suite: phoronix-test-suite-4.0.1.ebuild ChangeLog
Date: Mon, 27 Aug 2012 03:36:00
Message-Id: 20120827033548.281AF2088C@flycatcher.gentoo.org
1 patrick 12/08/27 03:35:48
2
3 Modified: ChangeLog
4 Added: phoronix-test-suite-4.0.1.ebuild
5 Log:
6 Bump for #427724
7
8 (Portage version: 2.2.0_alpha123/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.19 app-benchmarks/phoronix-test-suite/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-benchmarks/phoronix-test-suite/ChangeLog?rev=1.19&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-benchmarks/phoronix-test-suite/ChangeLog?rev=1.19&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-benchmarks/phoronix-test-suite/ChangeLog?r1=1.18&r2=1.19
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/app-benchmarks/phoronix-test-suite/ChangeLog,v
20 retrieving revision 1.18
21 retrieving revision 1.19
22 diff -u -r1.18 -r1.19
23 --- ChangeLog 22 Mar 2012 06:31:23 -0000 1.18
24 +++ ChangeLog 27 Aug 2012 03:35:48 -0000 1.19
25 @@ -1,6 +1,12 @@
26 # ChangeLog for app-benchmarks/phoronix-test-suite
27 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/app-benchmarks/phoronix-test-suite/ChangeLog,v 1.18 2012/03/22 06:31:23 patrick Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/app-benchmarks/phoronix-test-suite/ChangeLog,v 1.19 2012/08/27 03:35:48 patrick Exp $
30 +
31 +*phoronix-test-suite-4.0.1 (27 Aug 2012)
32 +
33 + 27 Aug 2012; Patrick Lauer <patrick@g.o>
34 + +phoronix-test-suite-4.0.1.ebuild:
35 + Bump for #427724
36
37 *phoronix-test-suite-3.8.0 (22 Mar 2012)
38
39 @@ -99,4 +105,3 @@
40 19 Apr 2009; Doug Goldstein <cardoe@g.o>
41 +phoronix-test-suite-1.8.0.ebuild:
42 add developmental ebuild
43 -
44
45
46
47 1.1 app-benchmarks/phoronix-test-suite/phoronix-test-suite-4.0.1.ebuild
48
49 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-benchmarks/phoronix-test-suite/phoronix-test-suite-4.0.1.ebuild?rev=1.1&view=markup
50 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-benchmarks/phoronix-test-suite/phoronix-test-suite-4.0.1.ebuild?rev=1.1&content-type=text/plain
51
52 Index: phoronix-test-suite-4.0.1.ebuild
53 ===================================================================
54 # Copyright 1999-2012 Gentoo Foundation
55 # Distributed under the terms of the GNU General Public License v2
56 # $Header: /var/cvsroot/gentoo-x86/app-benchmarks/phoronix-test-suite/phoronix-test-suite-4.0.1.ebuild,v 1.1 2012/08/27 03:35:48 patrick Exp $
57
58 EAPI=4
59
60 inherit eutils bash-completion
61
62 DESCRIPTION="Phoronix's comprehensive, cross-platform testing and benchmark suite"
63 HOMEPAGE="http://www.phoronix-test-suite.com"
64 SRC_URI="http://www.phoronix-test-suite.com/download.php?file=${P} -> ${P}.tar.gz"
65
66 LICENSE="GPL-3"
67 SLOT="0"
68 KEYWORDS="~amd64 ~x86"
69 IUSE=""
70
71 DEPEND=""
72
73 # php 5.3 doesn't have pcre and reflection useflags anymore
74 RDEPEND="dev-lang/php[cli,curl,gd,json,posix,pcntl,truetype,zip]
75 dev-php/pecl-ps"
76
77 S="${WORKDIR}/${PN}"
78
79 src_prepare() {
80 sed -i -e "s,export PTS_DIR=\`pwd\`,export PTS_DIR=\"/usr/share/${PN}\"," \
81 phoronix-test-suite
82 }
83
84 src_configure() {
85 :
86 }
87
88 src_compile() {
89 :
90 }
91
92 src_install() {
93 dodir /usr/share/${PN}
94 insinto /usr/share/${PN}
95
96 doman documentation/man-pages/phoronix-test-suite.1
97 dodoc AUTHORS CHANGE-LOG
98 dohtml -r documentation/
99 doicon pts-core/static/images/phoronix-test-suite.png
100 doicon pts-core/static/images/openbenchmarking.png
101 domenu pts-core/static/phoronix-test-suite.desktop
102 rm -f pts-core/static/phoronix-test-suite.desktop
103
104 doins -r pts-core
105 exeinto /usr/bin
106 doexe phoronix-test-suite
107
108 fperms a+x /usr/share/${PN}/pts-core/static/scripts/root-access.sh
109 fperms a+x /usr/share/${PN}/pts-core/external-test-dependencies/scripts/install-gentoo-packages.sh
110
111 dobashcompletion pts-core/static/bash_completion ${PN}
112
113 # Need to fix the cli-php config for downloading to work. Very naughty!
114 local slots
115 local slot
116 if [[ "x${PHP_TARGETS}" == "x" ]] ; then
117 ewarn
118 ewarn "PHP_TARGETS seems empty, php.ini file can't be configure."
119 ewarn "Make sure that PHP_TARGETS in /etc/make.conf is set."
120 ewarn "phoronix-test-suite needs the 'allow_url_fopen' option set to \"On\""
121 ewarn "for downloading to work properly."
122 ewarn
123 else
124 for slot in ${PHP_TARGETS}; do
125 slots+=" ${slot/-/.}"
126 done
127 fi
128
129 for slot in ${slots}; do
130 local PHP_INI_FILE="/etc/php/cli-${slot}/php.ini"
131 if [[ -f ${PHP_INI_FILE} ]] ; then
132 dodir $(dirname ${PHP_INI_FILE})
133 cp ${PHP_INI_FILE} "${D}${PHP_INI_FILE}"
134 sed -e 's|^allow_url_fopen .*|allow_url_fopen = On|g' -i "${D}${PHP_INI_FILE}"
135 else
136 if [[ "x$(eselect php show cli)" == "x${slot}" ]] ; then
137 ewarn
138 ewarn "${slot} hasn't a php.ini file."
139 ewarn "phoronix-test-suite needs the 'allow_url_fopen' option set to \"On\""
140 ewarn "for downloading to work properly."
141 ewarn "Check that your PHP_INI_VERSION is set during ${slot} merge"
142 ewarn
143 else
144 elog
145 elog "${slot} hasn't a php.ini file."
146 elog "phoronix-test-suite may need the 'allow_url_fopen' option set to \"On\""
147 elog "for downloading to work properly if you switch to ${slot}"
148 elog "Check that your PHP_INI_VERSION is set during ${slot} merge"
149 elog
150 fi
151 fi
152 done
153
154 ewarn
155 ewarn "If you upgrade from phoronix-test-suite-2*, you should reinstall all"
156 ewarn "your tests because"
157 ewarn " \$HOME/.phoronix-test-suite/installed-tests/\$TEST_NAME/"
158 ewarn "moves to"
159 ewarn " \$HOME/.phoronix-test-suite/installed-tests/pts/\$TEST_NAME-\$TEST_VERSION/"
160 ewarn "in phoronix-test-suite-3* version. The \$TEST_VERSION can be find in"
161 ewarn "pts-install.xml file."
162 ewarn
163 }