Gentoo Archives: gentoo-commits

From: "Ole Markus With (olemarkus)" <olemarkus@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-lang/php: ChangeLog php-5.4.0_pre201104301030.ebuild
Date: Sun, 01 May 2011 20:16:32
Message-Id: 20110501201553.22A8F20057@flycatcher.gentoo.org
1 olemarkus 11/05/01 20:15:53
2
3 Modified: ChangeLog
4 Added: php-5.4.0_pre201104301030.ebuild
5 Log:
6 Added SVN snapshot ebuild
7
8 (Portage version: 2.1.9.46/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.488 dev-lang/php/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/php/ChangeLog?rev=1.488&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/php/ChangeLog?rev=1.488&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/php/ChangeLog?r1=1.487&r2=1.488
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-lang/php/ChangeLog,v
20 retrieving revision 1.487
21 retrieving revision 1.488
22 diff -u -r1.487 -r1.488
23 --- ChangeLog 19 Apr 2011 16:44:56 -0000 1.487
24 +++ ChangeLog 1 May 2011 20:15:53 -0000 1.488
25 @@ -1,6 +1,12 @@
26 # ChangeLog for dev-lang/php
27 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/ChangeLog,v 1.487 2011/04/19 16:44:56 olemarkus Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/ChangeLog,v 1.488 2011/05/01 20:15:53 olemarkus Exp $
30 +
31 +*php-5.4.0_pre201104301030 (01 May 2011)
32 +
33 + 01 May 2011; <olemarkus@g.o> +php-5.4.0_pre201104301030.ebuild,
34 + +files/eblits/src_prepare-snapshots.eblit:
35 + Added SVN snapshot ebuild
36
37 *php-5.3.6-r1 (19 Apr 2011)
38
39
40
41
42 1.1 dev-lang/php/php-5.4.0_pre201104301030.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/php/php-5.4.0_pre201104301030.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/php/php-5.4.0_pre201104301030.ebuild?rev=1.1&content-type=text/plain
46
47 Index: php-5.4.0_pre201104301030.ebuild
48 ===================================================================
49 # Copyright 1999-2011 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/dev-lang/php/php-5.4.0_pre201104301030.ebuild,v 1.1 2011/05/01 20:15:53 olemarkus Exp $
52
53 EAPI=4
54
55 PHPCONFUTILS_MISSING_DEPS="adabas birdstep db2 dbmaker empress empress-bcs esoob interbase oci8 sapdb solid"
56
57 inherit eutils autotools flag-o-matic versionator depend.apache apache-module db-use phpconfutils php-common-r1 libtool
58
59 SUHOSIN_VERSION=""
60 FPM_VERSION="builtin"
61 EXPECTED_TEST_FAILURES=""
62
63 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
64
65 function php_get_uri ()
66 {
67 case "${1}" in
68 "php-pre")
69 echo "http://downloads.php.net/johannes/${2}"
70 ;;
71 "php")
72 echo "http://www.php.net/distributions/${2}"
73 ;;
74 "suhosin")
75 echo "http://download.suhosin.org/${2}"
76 ;;
77 "olemarkus")
78 echo "http://olemarkus.org/~olemarkus/gentoo/${2}"
79 ;;
80 "gentoo")
81 echo "mirror://gentoo/${2}"
82 ;;
83 *)
84 die "unhandled case in php_get_uri"
85 ;;
86 esac
87 }
88
89 PHP_MV="$(get_major_version)"
90
91 # alias, so we can handle different types of releases (finals, rcs, alphas,
92 # betas, ...) w/o changing the whole ebuild
93 PHP_PV="$(get_version_component_range 4 )"
94 PHP_PV="${PHP_PV/pre/trunk-}"
95
96 PHP_RELEASE="olemarkus"
97 PHP_P="${PN}-${PHP_PV}"
98
99 PHP_PATCHSET_LOC="olemarkus"
100
101 PHP_SRC_URI="$(php_get_uri "${PHP_RELEASE}" "${PHP_P}.tar.bz2")"
102
103 PHP_PATCHSET="0"
104 PHP_PATCHSET_URI="
105 $(php_get_uri "${PHP_PATCHSET_LOC}" "php-patchset-${PV}-r${PHP_PATCHSET}.tar.bz2")"
106
107 if [[ ${SUHOSIN_VERSION} == *-gentoo ]]; then
108 # in some cases we use our own suhosin patch (very recent version,
109 # patch conflicts, etc.)
110 SUHOSIN_TYPE="gentoo"
111 else
112 SUHOSIN_TYPE="suhosin"
113 fi
114
115 if [[ -n ${SUHOSIN_VERSION} ]]; then
116 SUHOSIN_PATCH="suhosin-patch-${SUHOSIN_VERSION}.patch";
117 SUHOSIN_URI="$(php_get_uri ${SUHOSIN_TYPE} ${SUHOSIN_PATCH}.gz )"
118 fi
119
120 SRC_URI="
121 ${PHP_SRC_URI}
122 ${PHP_PATCHSET_URI}
123 "
124
125 if [[ -n ${SUHOSIN_VERSION} ]]; then
126 SRC_URI="${SRC_URI}
127 suhosin? ( ${SUHOSIN_URI} )"
128 fi
129
130 DESCRIPTION="The PHP language runtime engine: CLI, CGI, FPM/FastCGI, Apache2 and embed SAPIs."
131 HOMEPAGE="http://php.net/"
132 LICENSE="PHP-3"
133
134 SLOT="5.4"
135 S="${WORKDIR}/${PHP_P}"
136
137 # We can build the following SAPIs in the given order
138 SAPIS="embed cli cgi fpm apache2"
139
140 # Gentoo-specific, common features
141 IUSE="kolab"
142
143 # SAPIs and SAPI-specific USE flags (cli SAPI is default on):
144 IUSE="${IUSE}
145 ${SAPIS/cli/+cli}
146 threads"
147
148 IUSE="${IUSE} adabas bcmath berkdb birdstep bzip2 calendar cdb cjk
149 crypt +ctype curl curlwrappers db2 dbmaker debug doc empress
150 empress-bcs enchant esoob exif frontbase +fileinfo +filter firebird
151 flatfile ftp gd gd-external gdbm gmp +hash +iconv imap inifile
152 interbase intl iodbc ipv6 +json kerberos ldap ldap-sasl libedit mhash
153 mssql mysql mysqlnd mysqli nls oci8
154 oci8-instant-client odbc pcntl pdo +phar pic +posix postgres qdbm
155 readline recode sapdb +session sharedext sharedmem
156 +simplexml snmp soap sockets solid spell sqlite sqlite3 ssl
157 sybase-ct sysvipc tidy +tokenizer truetype unicode wddx
158 xml xmlreader xmlwriter xmlrpc xpm xsl zip zlib"
159
160 # Enable suhosin if available
161 [[ -n $SUHOSIN_VERSION ]] && IUSE="${IUSE} suhosin"
162
163 DEPEND="!dev-lang/php:5
164 >=app-admin/eselect-php-0.6.2
165 >=dev-libs/libpcre-8.11[unicode]
166 adabas? ( >=dev-db/unixODBC-1.8.13 )
167 apache2? ( www-servers/apache[threads=] )
168 berkdb? ( =sys-libs/db-4* )
169 birdstep? ( >=dev-db/unixODBC-1.8.13 )
170 bzip2? ( app-arch/bzip2 )
171 cdb? ( || ( dev-db/cdb dev-db/tinycdb ) )
172 cjk? ( !gd? ( !gd-external? (
173 virtual/jpeg
174 media-libs/libpng
175 sys-libs/zlib
176 ) ) )
177 crypt? ( >=dev-libs/libmcrypt-2.4 )
178 curl? ( >=net-misc/curl-7.10.5 )
179 db2? ( >=dev-db/unixODBC-1.8.13 )
180 dbmaker? ( >=dev-db/unixODBC-1.8.13 )
181 empress? ( >=dev-db/unixODBC-1.8.13 )
182 empress-bcs? ( >=dev-db/unixODBC-1.8.13 )
183 enchant? ( app-text/enchant )
184 esoob? ( >=dev-db/unixODBC-1.8.13 )
185 exif? ( !gd? ( !gd-external? (
186 virtual/jpeg
187 media-libs/libpng
188 sys-libs/zlib
189 ) ) )
190 firebird? ( dev-db/firebird )
191 gd? ( virtual/jpeg media-libs/libpng sys-libs/zlib )
192 gd-external? ( media-libs/gd )
193 gdbm? ( >=sys-libs/gdbm-1.8.0 )
194 gmp? ( >=dev-libs/gmp-4.1.2 )
195 iconv? ( virtual/libiconv )
196 imap? ( virtual/imap-c-client[ssl=] )
197 intl? ( dev-libs/icu )
198 iodbc? ( dev-db/libiodbc )
199 kerberos? ( virtual/krb5 )
200 kolab? ( >=net-libs/c-client-2004g-r1 )
201 ldap? ( !oci8? ( >=net-nds/openldap-1.2.11 ) )
202 ldap-sasl? ( !oci8? ( dev-libs/cyrus-sasl >=net-nds/openldap-1.2.11 ) )
203 libedit? ( || ( sys-freebsd/freebsd-lib dev-libs/libedit ) )
204 mssql? ( dev-db/freetds[mssql] )
205 !mysqlnd? (
206 mysql? ( virtual/mysql )
207 mysqli? ( >=virtual/mysql-4.1 )
208 )
209 nls? ( sys-devel/gettext )
210 oci8-instant-client? ( dev-db/oracle-instantclient-basic )
211 odbc? ( >=dev-db/unixODBC-1.8.13 )
212 postgres? ( dev-db/postgresql-base )
213 qdbm? ( dev-db/qdbm )
214 readline? ( sys-libs/readline )
215 recode? ( app-text/recode )
216 sapdb? ( >=dev-db/unixODBC-1.8.13 )
217 sharedmem? ( dev-libs/mm )
218 simplexml? ( >=dev-libs/libxml2-2.6.8 )
219 snmp? ( >=net-analyzer/net-snmp-5.2 )
220 soap? ( >=dev-libs/libxml2-2.6.8 )
221 solid? ( >=dev-db/unixODBC-1.8.13 )
222 spell? ( >=app-text/aspell-0.50 )
223 sqlite? ( =dev-db/sqlite-2* pdo? ( >=dev-db/sqlite-3.7.4 ) )
224 sqlite3? ( >=dev-db/sqlite-3.7.4 )
225 ssl? ( >=dev-libs/openssl-0.9.7 )
226 sybase-ct? ( dev-db/freetds )
227 tidy? ( app-text/htmltidy )
228 truetype? (
229 =media-libs/freetype-2*
230 >=media-libs/t1lib-5.0.0
231 !gd? ( !gd-external? (
232 virtual/jpeg media-libs/libpng sys-libs/zlib ) )
233 )
234 unicode? ( dev-libs/oniguruma )
235 wddx? ( >=dev-libs/libxml2-2.6.8 )
236 xml? ( >=dev-libs/libxml2-2.6.8 )
237 xmlrpc? ( >=dev-libs/libxml2-2.6.8 virtual/libiconv )
238 xmlreader? ( >=dev-libs/libxml2-2.6.8 )
239 xmlwriter? ( >=dev-libs/libxml2-2.6.8 )
240 xpm? (
241 x11-libs/libXpm
242 virtual/jpeg
243 media-libs/libpng sys-libs/zlib
244 )
245 xsl? ( dev-libs/libxslt >=dev-libs/libxml2-2.6.8 )
246 zip? ( sys-libs/zlib )
247 zlib? ( sys-libs/zlib )
248 virtual/mta
249 "
250
251 php="=${CATEGORY}/${PF}"
252
253 REQUIRED_USE="
254 truetype? ( || ( gd gd-external ) )
255 cjk? ( || ( gd gd-external ) )
256 exif? ( || ( gd gd-external ) )
257
258 xpm? ( gd )
259 gd? ( zlib !gd-external )
260 gd-external? ( !gd )
261 simplexml? ( xml )
262 soap? ( xml )
263 wddx? ( xml )
264 xmlrpc? ( || ( xml iconv ) )
265 xmlreader? ( xml )
266 xsl? ( xml )
267 ldap-sasl? ( ldap !oci8 )
268 adabas? ( odbc )
269 birdstep? ( odbc )
270 dbmaker? ( odbc )
271 empress-bcs? ( empress )
272 empress? ( odbc )
273 esoob? ( odbc )
274 db2? ( odbc )
275 sapdb? ( odbc )
276 solid? ( odbc )
277 kolab? ( imap )
278 mhash? ( hash )
279 phar? ( hash )
280 mysqlnd? ( || (
281 mysql
282 mysqli
283 pdo
284 ) )
285
286 oci8? ( !oci8-instant-client !ldap-sasl )
287 oci8-instant-client? ( !oci8 )
288
289 qdbm? ( !gdbm )
290 readline? ( !libedit )
291 recode? ( !imap !mysql !mysqli )
292 firebird? ( !interbase )
293 sharedmem? ( !threads )
294
295 !cli? ( !cgi? ( !fpm? ( !apache2? ( !embed? ( cli ) ) ) ) )"
296
297 DEPEND="${DEPEND}
298 enchant? ( !dev-php5/pecl-enchant )
299 fileinfo? ( !<dev-php5/pecl-fileinfo-1.0.4-r2 )
300 filter? ( !dev-php5/pecl-filter )
301 json? ( !dev-php5/pecl-json )
302 phar? ( !dev-php5/pecl-phar )
303 zip? ( !dev-php5/pecl-zip )"
304
305 [[ -n $SUHOSIN_VERSION ]] && RDEPEND="${RDEPEND} suhosin? (
306 =${CATEGORY}/${PN}-${SLOT}*[unicode] )"
307
308 DEPEND="${DEPEND}
309 sys-devel/flex
310 >=sys-devel/m4-1.4.3
311 >=sys-devel/libtool-1.5.18"
312
313 # They are in PDEPEND because we need PHP installed first!
314 PDEPEND="doc? ( app-doc/php-docs )"
315
316 # No longer depend on the extension. The suhosin USE flag only installs the
317 # patch
318 #[[ -n $SUHOSIN_VERSION ]] && PDEPEND="${PDEPEND} suhosin? ( dev-php${PHP_MV}/suhosin )"
319
320 # Allow users to install production version if they want to
321
322 case "${PHP_INI_VERSION}" in
323 production|development)
324 ;;
325 *)
326 PHP_INI_VERSION="development"
327 ;;
328 esac
329
330 PHP_INI_UPSTREAM="php.ini-${PHP_INI_VERSION}"
331 PHP_INI_FILE="php.ini"
332
333 want_apache
334
335 # eblit-core
336 # Usage: <function> [version] [eval]
337 # Main eblit engine
338 eblit-core() {
339 [[ -z $FILESDIR ]] && FILESDIR="$(dirname $EBUILD)/files"
340 local e v func=$1 ver=$2 eval_=$3
341 for v in ${ver:+-}${ver} -${PVR} -${PV} "" ; do
342 e="${FILESDIR}/eblits/${func}${v}.eblit"
343 if [[ -e ${e} ]] ; then
344 . "${e}"
345 [[ ${eval_} == 1 ]] && eval "${func}() { eblit-run ${func} ${ver} ; }"
346 return 0
347 fi
348 done
349 return 1
350 }
351
352 # eblit-include
353 # Usage: [--skip] <function> [version]
354 # Includes an "eblit" -- a chunk of common code among ebuilds in a given
355 # package so that its functions can be sourced and utilized within the
356 # ebuild.
357 eblit-include() {
358 local skipable=false r=0
359 [[ $1 == "--skip" ]] && skipable=true && shift
360 [[ $1 == pkg_* ]] && skipable=true
361
362 [[ -z $1 ]] && die "Usage: eblit-include <function> [version]"
363 eblit-core $1 $2
364 r="$?"
365 ${skipable} && return 0
366 [[ "$r" -gt "0" ]] && die "Could not locate requested eblit '$1' in ${FILESDIR}/eblits/"
367 }
368
369 # eblit-run-maybe
370 # Usage: <function>
371 # Runs a function if it is defined in an eblit
372 eblit-run-maybe() {
373 [[ $(type -t "$@") == "function" ]] && "$@"
374 }
375
376 # eblit-run
377 # Usage: <function> [version]
378 # Runs a function defined in an eblit
379 eblit-run() {
380 eblit-include --skip common "${*:2}"
381 eblit-include "$@"
382 eblit-run-maybe eblit-$1-pre
383 eblit-${PN}-$1
384 eblit-run-maybe eblit-$1-post
385 }
386
387 # eblit-pkg
388 # Usage: <phase> [version]
389 # Includes the given functions AND evals them so they're included in the binpkgs
390 eblit-pkg() {
391 [[ -z $1 ]] && die "Usage: eblit-pkg <phase> [version]"
392 eblit-core $1 $2 1
393 }
394
395 eblit-pkg pkg_setup v2
396
397 src_prepare() { eblit-run src_prepare snapshots ; }
398 src_configure() { eblit-run src_configure v2 ; }
399 src_compile() { eblit-run src_compile v1 ; }
400 src_install() { eblit-run src_install v2 ; }
401 src_test() { eblit-run src_test v1 ; }
402 pkg_postinst() { eblit-run pkg_postinst v2 ; }