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