Gentoo Archives: gentoo-commits

From: "Matti Bickel (mabi)" <mabi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-lang/php: ChangeLog php-5.3.2.ebuild metadata.xml
Date: Thu, 27 May 2010 23:05:11
Message-Id: 20100527230504.EE48F2CF39@corvid.gentoo.org
1 mabi 10/05/27 23:05:04
2
3 Modified: ChangeLog metadata.xml
4 Added: php-5.3.2.ebuild
5 Log:
6 version bump
7 (Portage version: 2.1.8.3/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.377 dev-lang/php/ChangeLog
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/php/ChangeLog?rev=1.377&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/php/ChangeLog?rev=1.377&content-type=text/plain
14 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/php/ChangeLog?r1=1.376&r2=1.377
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/dev-lang/php/ChangeLog,v
19 retrieving revision 1.376
20 retrieving revision 1.377
21 diff -u -r1.376 -r1.377
22 --- ChangeLog 29 Mar 2010 21:59:43 -0000 1.376
23 +++ ChangeLog 27 May 2010 23:05:04 -0000 1.377
24 @@ -1,6 +1,22 @@
25 # ChangeLog for dev-lang/php
26 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/ChangeLog,v 1.376 2010/03/29 21:59:43 maekke Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/ChangeLog,v 1.377 2010/05/27 23:05:04 mabi Exp $
29 +
30 +*php-5.3.2 (27 May 2010)
31 +
32 + 27 May 2010; <mabi@g.o> files/70_mod_php5_concurr.conf-apache2,
33 + files/70_mod_php5.conf-apache2, +files/eblits/common-v1.eblit,
34 + +files/eblits/common-v2.eblit, +files/eblits/pkg_postinst-v1.eblit,
35 + +files/eblits/pkg_setup-v1.eblit, +files/eblits/src_compile-v1.eblit,
36 + +files/eblits/src_compile-v2.eblit, +files/eblits/src_configure-v1.eblit,
37 + +files/eblits/src_install-v1.eblit, +files/eblits/src_install-v2.eblit,
38 + +files/eblits/src_prepare-v1.eblit, +files/eblits/src_test-v1.eblit,
39 + +php-5.3.2.ebuild:
40 + version bump (bug #274512, #312775); see
41 + http://www.php.net/ChangeLog-5.php#5.3.2 for a list of changes and the
42 + migration guide for an update from 5.2:
43 + http://www.php.net/manual/en/migration53.php; expect more bumps as we fix
44 + open bugs
45
46 29 Mar 2010; Markus Meier <maekke@g.o> php-5.2.13.ebuild:
47 amd64 stable, bug #306939
48
49
50
51 1.9 dev-lang/php/metadata.xml
52
53 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/php/metadata.xml?rev=1.9&view=markup
54 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/php/metadata.xml?rev=1.9&content-type=text/plain
55 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/php/metadata.xml?r1=1.8&r2=1.9
56
57 Index: metadata.xml
58 ===================================================================
59 RCS file: /var/cvsroot/gentoo-x86/dev-lang/php/metadata.xml,v
60 retrieving revision 1.8
61 retrieving revision 1.9
62 diff -u -r1.8 -r1.9
63 --- metadata.xml 24 Jun 2009 23:01:18 -0000 1.8
64 +++ metadata.xml 27 May 2010 23:05:04 -0000 1.9
65 @@ -6,17 +6,25 @@
66 <flag name='cli'>Enable CLI SAPI</flag>
67 <flag name='concurrentmodphp'>Make it possible to load both mod_php4 and mod_php5 into the same Apache2 instance (experimental)</flag>
68 <flag name='discard-path'>Switch on common security setting for CGI SAPI</flag>
69 + <flag name='embed'>Enable embed SAPI</flag>
70 + <flag name='enchant'>Add supports Enchant spelling library.</flag>
71 <flag name='fastbuild'>Build PHP quicker (experimental)</flag>
72 <flag name='fdftk'>Add supports for Adobe's FDF toolkit.</flag>
73 + <flag name='fileinfo'>Add fileinfo extension support</flag>
74 <flag name='filter'>Add filter extension support</flag>
75 <flag name='force-cgi-redirect'>Switch on common security setting for CGI SAPI</flag>
76 <flag name='hash'>Enable the hash extension</flag>
77 + <flag name='intl'>Enables the intl extension for extended internalization support</flag>
78 <flag name='java-external'>Use the external java extension rather than the bundled one</flag>
79 <flag name='json'>Enable JSON support</flag>
80 <flag name='ldap-sasl'>Add SASL support for the PHP LDAP extension</flag>
81 + <flag name='mysqlnd'>Use native driver for mysql, mysqli, PDO_Mysql</flag>
82 + <flag name='pcre'>Adds support for Perl Compatible Regular Expressions (deprecated: always "on" in php 5.3)</flag>
83 <flag name='pic'>Force shared modules to build as PIC on x86 (speed tradeoff with memory usage)</flag>
84 <flag name='pdo'>Enable the bundled PDO extensions</flag>
85 - <flag name='reflection'>Enable the reflection extension (Reflection API)</flag>
86 + <flag name='phar'>Enables the phar extension to provide phar archive support</flag>
87 + <flag name='reflection'>Enable the reflection extension (Reflection API) (deprecated: always "on" in php 5.3)</flag>
88 + <flag name='spl'>Adds support for the Standard PHP Library (deprecated: always "on" in php 5.3)</flag>
89 <flag name='suhosin'>Add Suhosin support (patch and extension from http://www.suhosin.org/)</flag>
90 <flag name='xmlreader'>Enable XMLReader support</flag>
91 <flag name='xmlwriter'>Enable XMLWriter support</flag>
92
93
94
95 1.1 dev-lang/php/php-5.3.2.ebuild
96
97 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/php/php-5.3.2.ebuild?rev=1.1&view=markup
98 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/php/php-5.3.2.ebuild?rev=1.1&content-type=text/plain
99
100 Index: php-5.3.2.ebuild
101 ===================================================================
102 # Copyright 1999-2010 Gentoo Foundation
103 # Distributed under the terms of the GNU General Public License v2
104 # $Header: /var/cvsroot/gentoo-x86/dev-lang/php/php-5.3.2.ebuild,v 1.1 2010/05/27 23:05:04 mabi Exp $
105
106 EAPI=2
107
108 PHPCONFUTILS_MISSING_DEPS="adabas birdstep db2 dbmaker empress empress-bcs esoob interbase oci8 sapdb solid sybase-ct"
109
110 inherit eutils autotools flag-o-matic versionator depend.apache apache-module db-use phpconfutils php-common-r1 libtool
111
112 PHP_PATCHSET=""
113 SUHOSIN_VERSION="$PV-0.9.9.1"
114 EXPECTED_TEST_FAILURES=""
115
116 KEYWORDS="~amd64 ~x86"
117
118 function php_get_uri ()
119 {
120 case "${1}" in
121 "php-pre")
122 echo "http://downloads.php.net/johannes/${2}"
123 ;;
124 "php")
125 echo "http://www.php.net/distributions/${2}"
126 ;;
127 "suhosin")
128 echo "http://download.suhosin.org/${2}"
129 ;;
130 "gentoo")
131 echo "mirror://gentoo/${2}"
132 ;;
133 *)
134 die "unhandled case in php_get_uri"
135 ;;
136 esac
137 };
138
139 PHP_MV="$(get_major_version)"
140
141 # alias, so we can handle different types of releases (finals, rcs, alphas,
142 # betas, ...) w/o changing the whole ebuild
143 PHP_PV="${PV}"
144 PHP_RELEASE="php"
145 PHP_P="${PN}-${PHP_PV}"
146 PHP_SRC_URI="$(php_get_uri "${PHP_RELEASE}" "${PHP_P}.tar.bz2")"
147
148 PHP_PATCHSET="${PHP_PATCHSET:-${PR/r/}}";
149 PHP_PATCHSET_URI="
150 $(php_get_uri gentoo "php-patchset-${PV}-r${PHP_PATCHSET}.tar.bz2")"
151
152 if [[ ${SUHOSIN_VERSION} == *-gentoo ]]; then
153 # in some cases we use our own suhosin patch (very recent version,
154 # patch conflicts, etc.)
155 SUHOSIN_TYPE="gentoo"
156 else
157 SUHOSIN_TYPE="suhosin"
158 fi;
159
160 SUHOSIN_PATCH="suhosin-patch-${SUHOSIN_VERSION}.patch";
161 SUHOSIN_URI="$(php_get_uri ${SUHOSIN_TYPE} ${SUHOSIN_PATCH}.gz )"
162
163 SRC_URI="
164 ${PHP_SRC_URI}
165 ${PHP_PATCHSET_URI}
166 suhosin? ( ${SUHOSIN_URI} )"
167
168 DESCRIPTION="The PHP language runtime engine: CLI, CGI, Apache2 and embed SAPIs."
169 HOMEPAGE="http://php.net/"
170 LICENSE="PHP-3"
171
172 # We can build the following SAPIs in the given order
173 SAPIS="cli cgi embed apache2"
174
175 # Gentoo-specific, common features
176 IUSE="kolab"
177
178 # SAPIs and SAPI-specific USE flags:
179 IUSE="${IUSE}
180 ${SAPIS}
181 concurrentmodphp threads"
182
183 IUSE="${IUSE} adabas bcmath berkdb birdstep bzip2 calendar cdb cjk
184 crypt ctype curl curlwrappers db2 dbmaker debug doc empress
185 empress-bcs enchant esoob exif frontbase fileinfo filter firebird
186 flatfile ftp gd gd-external gdbm gmp hash iconv imap inifile
187 interbase intl iodbc ipv6 json kerberos ldap ldap-sasl libedit
188 mssql mysql mysqlnd mysqli nls oci8
189 oci8-instant-client odbc pcntl pdo phar pic posix postgres qdbm
190 readline recode sapdb session sharedext sharedmem
191 simplexml snmp soap sockets solid spell sqlite sqlite3 ssl suhosin
192 sybase-ct sysvipc tidy tokenizer truetype unicode wddx
193 xml xmlreader xmlwriter xmlrpc xpm xsl zip zlib"
194
195 DEPEND="app-admin/php-toolkit
196 >=dev-libs/libpcre-7.9[unicode]
197 adabas? ( >=dev-db/unixODBC-1.8.13 )
198 apache2? ( !threads? ( www-servers/apache[-threads] ) )
199 berkdb? ( =sys-libs/db-4* )
200 birdstep? ( >=dev-db/unixODBC-1.8.13 )
201 bzip2? ( app-arch/bzip2 )
202 cdb? ( || ( dev-db/cdb dev-db/tinycdb ) )
203 cjk? ( !gd? ( !gd-external? (
204 >=media-libs/jpeg-6b
205 media-libs/libpng
206 sys-libs/zlib
207 ) ) )
208 crypt? ( >=dev-libs/libmcrypt-2.4 )
209 curl? ( >=net-misc/curl-7.10.5 )
210 db2? ( >=dev-db/unixODBC-1.8.13 )
211 dbmaker? ( >=dev-db/unixODBC-1.8.13 )
212 empress? ( >=dev-db/unixODBC-1.8.13 )
213 empress-bcs? ( >=dev-db/unixODBC-1.8.13 )
214 enchant? ( app-text/enchant )
215 esoob? ( >=dev-db/unixODBC-1.8.13 )
216 exif? ( !gd? ( !gd-external? (
217 >=media-libs/jpeg-6b
218 media-libs/libpng
219 sys-libs/zlib
220 ) ) )
221 firebird? ( dev-db/firebird )
222 gd? ( >=media-libs/jpeg-6b media-libs/libpng sys-libs/zlib )
223 gd-external? ( media-libs/gd )
224 gdbm? ( >=sys-libs/gdbm-1.8.0 )
225 gmp? ( >=dev-libs/gmp-4.1.2 )
226 iconv? ( virtual/libiconv )
227 imap? (
228 virtual/imap-c-client[ssl=]
229 virtual/imap-c-client[kolab=]
230 )
231 intl? ( dev-libs/icu )
232 iodbc? ( dev-db/libiodbc >=dev-db/unixODBC-1.8.13 )
233 kerberos? ( virtual/krb5 )
234 kolab? ( >=net-libs/c-client-2004g-r1 )
235 ldap? ( !oci8? ( >=net-nds/openldap-1.2.11 ) )
236 ldap-sasl? ( !oci8? ( dev-libs/cyrus-sasl >=net-nds/openldap-1.2.11 ) )
237 libedit? ( || ( sys-freebsd/freebsd-lib dev-libs/libedit ) )
238 mbstring? ( dev-libs/oniguruma )
239 mcve? ( >=dev-libs/openssl-0.9.7 )
240 mssql? ( dev-db/freetds )
241 !mysqlnd? (
242 mysql? ( virtual/mysql )
243 mysqli? ( >=virtual/mysql-4.1 )
244 )
245 nls? ( sys-devel/gettext )
246 oci8-instant-client? ( dev-db/oracle-instantclient-basic )
247 odbc? ( >=dev-db/unixODBC-1.8.13 )
248 postgres? (
249 || (
250 >=dev-db/postgresql-base-7.1[threads=]
251 (
252 || (
253 <dev-db/libpq-8
254 >=dev-db/libpq-8[threads=]
255 )
256 )
257 )
258 )
259 qdbm? ( dev-db/qdbm )
260 readline? ( sys-libs/readline )
261 recode? ( app-text/recode )
262 sapdb? ( >=dev-db/unixODBC-1.8.13 )
263 sharedmem? ( dev-libs/mm )
264 simplexml? ( >=dev-libs/libxml2-2.6.8 )
265 snmp? ( >=net-analyzer/net-snmp-5.2 )
266 soap? ( >=dev-libs/libxml2-2.6.8 )
267 solid? ( >=dev-db/unixODBC-1.8.13 )
268 spell? ( >=app-text/aspell-0.50 )
269 sqlite? ( =dev-db/sqlite-2* pdo? ( =dev-db/sqlite-3* ) )
270 sqlite3? ( =dev-db/sqlite-3* )
271 ssl? ( >=dev-libs/openssl-0.9.7 )
272 tidy? ( app-text/htmltidy )
273 truetype? (
274 =media-libs/freetype-2*
275 >=media-libs/t1lib-5.0.0
276 !gd? ( !gd-external? (
277 >=media-libs/jpeg-6b media-libs/libpng sys-libs/zlib ) )
278 )
279 unicode? ( dev-libs/oniguruma )
280 wddx? ( >=dev-libs/libxml2-2.6.8 )
281 xml? ( >=dev-libs/libxml2-2.6.8 )
282 xmlrpc? ( >=dev-libs/libxml2-2.6.8 virtual/libiconv )
283 xmlreader? ( >=dev-libs/libxml2-2.6.8 )
284 xmlwriter? ( >=dev-libs/libxml2-2.6.8 )
285 xpm? (
286 x11-libs/libXpm
287 >=media-libs/jpeg-6b
288 media-libs/libpng sys-libs/zlib
289 )
290 xsl? ( dev-libs/libxslt >=dev-libs/libxml2-2.6.8 )
291 zip? ( sys-libs/zlib )
292 zlib? ( sys-libs/zlib )
293 virtual/mta
294 ";
295
296 php="=${CATEGORY}/${PF}";
297 RDEPEND="${DEPEND}
298 truetype? ( || ( $php[gd] $php[gd-external] ) )
299 cjk? ( || ( $php[gd] $php[gd-external] ) )
300 exif? ( || ( $php[gd] $php[gd-external] ) )
301
302 xpm? ( $php[gd] )
303 gd? ( $php[zlib,-gd-external] )
304 gd-external? ( $php[-gd] )
305 simplexml? ( $php[xml] )
306 soap? ( $php[xml] )
307 wddx? ( $php[xml] )
308 xmlrpc? ( || ( $php[xml] $php[iconv] ) )
309 xmlreader? ( $php[xml] )
310 xsl? ( $php[xml] )
311 ldap-sasl? ( $php[ldap,-oci8] )
312 mcve? ( $php[ssl] )
313 suhosin? ( $php[unicode] )
314 adabas? ( $php[odbc] )
315 birdstep? ( $php[odbc] )
316 dbmaker? ( $php[odbc] )
317 empress-bcs? ( $php[empress] )
318 empress? ( $php[odbc] )
319 esoob? ( $php[odbc] )
320 db2? ( $php[odbc] )
321 iodbc? ( $php[odbc] )
322 sapdb? ( $php[odbc] )
323 solid? ( $php[odbc] )
324 kolab? ( $php[imap] )
325 phar? ( $php[hash] )
326 mysqlnd? ( || (
327 $php[mysql]
328 $php[mysqli]
329 $php[pdo]
330 ) )
331
332 oci8? ( $php[-oci8-instant-client,-ldap-sasl] )
333 oci8-instant-client? ( $php[-oci8] )
334
335 qdbm? ( $php[-gdbm] )
336 readline? ( $php[-libedit] )
337 recode? ( $php[-imap,-mysql,-mysqli] )
338 firebird? ( $php[-interbase] )
339 sharedmem? ( $php[-threads] )
340
341 !cli? ( !cgi? ( !apache2? ( !embed? ( $php[cli] ) ) ) )
342
343 enchant? ( !dev-php${PHP_MV}/pecl-enchant )
344 fileinfo? ( !dev-php${PHP_MV}/pecl-fileinfo )
345 filter? ( !dev-php${PHP_MV}/pecl-filter )
346 json? ( !dev-php${PHP_MV}/pecl-json )
347 phar? ( !dev-php${PHP_MV}/pecl-phar )
348 zip? ( !dev-php${PHP_MV}/pecl-zip )"
349
350 DEPEND="${DEPEND}
351 >=sys-devel/m4-1.4.3
352 >=sys-devel/libtool-1.5.18"
353
354 # They are in PDEPEND because we need PHP installed first!
355 PDEPEND="doc? ( app-doc/php-docs )
356 suhosin? ( dev-php${PHP_MV}/suhosin )"
357
358 # Portage doesn't support setting PROVIDE based on the USE flags that
359 # have been enabled, so we have to PROVIDE everything for now and hope
360 # for the best
361 PROVIDE="virtual/php virtual/httpd-php"
362
363 SLOT="${PHP_MV}";
364 S="${WORKDIR}/${PHP_P}"
365
366 PHP_INI_FILE="php.ini"
367 PHP_INI_UPSTREAM="php.ini-production"
368
369 want_apache
370
371 # eblit-core
372 # Usage: <function> [version] [eval]
373 # Main eblit engine
374 eblit-core() {
375 [[ -z $FILESDIR ]] && FILESDIR="$(dirname $EBUILD)/files"
376 local e v func=$1 ver=$2 eval_=$3
377 for v in ${ver:+-}${ver} -${PVR} -${PV} "" ; do
378 e="${FILESDIR}/eblits/${func}${v}.eblit"
379 if [[ -e ${e} ]] ; then
380 . "${e}"
381 [[ ${eval_} == 1 ]] && eval "${func}() { eblit-run ${func} ${ver} ; }"
382 return 0
383 fi
384 done
385 return 1
386 }
387
388 # eblit-include
389 # Usage: [--skip] <function> [version]
390 # Includes an "eblit" -- a chunk of common code among ebuilds in a given
391 # package so that its functions can be sourced and utilized within the
392 # ebuild.
393 eblit-include() {
394 local skipable=false r=0
395 [[ $1 == "--skip" ]] && skipable=true && shift
396 [[ $1 == pkg_* ]] && skipable=true
397
398 [[ -z $1 ]] && die "Usage: eblit-include <function> [version]"
399 eblit-core $1 $2
400 r="$?"
401 ${skipable} && return 0
402 [[ "$r" -gt "0" ]] && die "Could not locate requested eblit '$1' in ${FILESDIR}/eblits/"
403 }
404
405 # eblit-run-maybe
406 # Usage: <function>
407 # Runs a function if it is defined in an eblit
408 eblit-run-maybe() {
409 [[ $(type -t "$@") == "function" ]] && "$@"
410 }
411
412 # eblit-run
413 # Usage: <function> [version]
414 # Runs a function defined in an eblit
415 eblit-run() {
416 eblit-include --skip common "${*:2}"
417 eblit-include "$@"
418 eblit-run-maybe eblit-$1-pre
419 eblit-${PN}-$1
420 eblit-run-maybe eblit-$1-post
421 }
422
423 # eblit-pkg
424 # Usage: <phase> [version]
425 # Includes the given functions AND evals them so they're included in the binpkgs
426 eblit-pkg() {
427 [[ -z $1 ]] && die "Usage: eblit-pkg <phase> [version]"
428 eblit-core $1 $2 1
429 }
430
431 eblit-pkg pkg_setup v1
432
433 src_prepare() { eblit-run src_prepare v1 ; }
434 src_configure() { eblit-run src_configure v1 ; }
435 src_compile() { eblit-run src_compile v2 ; }
436 src_install() { eblit-run src_install v2 ; }
437 src_test() { eblit-run src_test v1 ; }
438
439 eblit-pkg pkg_postinst v1