summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOle Markus With <olemarkus@gentoo.org>2012-09-09 14:13:00 +0000
committerOle Markus With <olemarkus@gentoo.org>2012-09-09 14:13:00 +0000
commite366433022e77b63453b677efcaffabe8e34ae92 (patch)
tree943847432a05e46715d7d40381847c42b3383f00 /dev-lang
parentalpha/ia64/m68k/s390/sh/sparc stable wrt #411887 (diff)
downloadhistorical-e366433022e77b63453b677efcaffabe8e34ae92.tar.gz
historical-e366433022e77b63453b677efcaffabe8e34ae92.tar.bz2
historical-e366433022e77b63453b677efcaffabe8e34ae92.zip
Revbump renaming sqlite USE flag to sqlite2
Package-Manager: portage-2.1.11.9/cvs/Linux x86_64
Diffstat (limited to 'dev-lang')
-rw-r--r--dev-lang/php/ChangeLog9
-rw-r--r--dev-lang/php/Manifest19
-rw-r--r--dev-lang/php/files/eblits/src_configure-v2.eblit276
-rw-r--r--dev-lang/php/files/eblits/src_configure-v521.eblit273
-rw-r--r--dev-lang/php/files/eblits/src_configure-v53.eblit13
-rw-r--r--dev-lang/php/metadata.xml1
-rw-r--r--dev-lang/php/php-5.3.16-r2.ebuild393
7 files changed, 422 insertions, 562 deletions
diff --git a/dev-lang/php/ChangeLog b/dev-lang/php/ChangeLog
index ebbbbb2b82e7..60ed4ce02ff8 100644
--- a/dev-lang/php/ChangeLog
+++ b/dev-lang/php/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for dev-lang/php
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/ChangeLog,v 1.630 2012/09/06 01:00:40 blueness Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/ChangeLog,v 1.631 2012/09/09 14:13:00 olemarkus Exp $
+
+*php-5.3.16-r2 (09 Sep 2012)
+
+ 09 Sep 2012; Ole Markus With <olemarkus@gentoo.org> +php-5.3.16-r2.ebuild,
+ -files/eblits/src_configure-v2.eblit, -files/eblits/src_configure-v521.eblit,
+ files/eblits/src_configure-v53.eblit, metadata.xml:
+ Revbump renaming sqlite USE flag to sqlite2
06 Sep 2012; Anthony G. Basile <blueness@gentoo.org> php-5.4.6.ebuild:
Stable ppc64
diff --git a/dev-lang/php/Manifest b/dev-lang/php/Manifest
index e18772bf2cee..e4504408d877 100644
--- a/dev-lang/php/Manifest
+++ b/dev-lang/php/Manifest
@@ -8,9 +8,7 @@ AUX eblits/pkg_setup-v2.eblit 393 SHA256 17f9316065960ff0ca56aeec918c2c9e6c80ffd
AUX eblits/pkg_setup-v3.eblit 283 SHA256 5905eb3e6d984a9f8fe49e088adad99db7249f62a957c19f0ae4bf3f56ecaecd SHA512 e1c7fc1bb0a59021767a7bf848de88b0cea602ad596f40768b3b98e90713d41abfc690a15578eaf575ce3841bc52069d229b5470b3e5cd78cb962007b6da8eee WHIRLPOOL a91534151f0dbd804a4af634ca9c29e3008759664a307cd5338d518d4bbc0790bc473f71e645543682e7c25953e524b224d14e9463a2cbbbbde56d3f43e81d77
AUX eblits/src_compile-v1.eblit 1330 SHA256 9fde08d6813bc7551811d3a7330c06bbee7208bba857c32e1817ee52e6e03a56 SHA512 9dbbd5c5b51d2be71b21824284d2b72f58b013f918fe408f269b4b50f27bf92f4b89ec0fd1a40b3ae1ea7a0cfe53b44ea09f17acd425c1332a4888ad1fed00a8 WHIRLPOOL 493b7c421a741613e4cc4a987ea1bb4eea52716cccf2980b36d5b2346014901b81b4fad6a2b7315c6c9f3c55f6917531d29fe98f7d942fee6a4a128ae3d93eeb
AUX eblits/src_compile-v2.eblit 562 SHA256 9df4c76d18d589e58c36085713b5f7d072a0edb0656dc39bf349700a156b7d9d SHA512 1686a28eeaeb7d8488d58f68b767a7940ff49377b4ad5a7382329e1cae1112edcd73fe13a2aa57a6472fe4e82ea3d9d2584e3df8a9ca54958ff05361ce9351b5 WHIRLPOOL 525c4af676acd8897e46e79557c8e2a33c6b8a96d6ad3c71a3a5beea2cfe582d7370a7921fd7c84c698e731ece01cbb891a7460fc7bff9faf5dc8e42b9bb22cb
-AUX eblits/src_configure-v2.eblit 10855 SHA256 cd3002b6c9bd91dc9d7471e416cc631247fb2ad9d7b68981b26a3f83f84c916a SHA512 a91d4a34d5ea56196715c908dfca39f54c100761dfddad3a4c87014cc58da013e5b2327fd7eed46e36913336d21f393289cfbe59ad4bb1abeb592b562a8c43af WHIRLPOOL 2666978310e910f98325ea54e8e61bb980526e216d3a84135cf71c89acd676020e3cea6c7e69dc2dab03804ae67e0270ea2835dc1bcfde7a03ca95e80f1923d8
-AUX eblits/src_configure-v521.eblit 10844 SHA256 ad875ca45e9ad975c0d7a3cbedc27c5035aa048d7aa935221a15e47cbca63c3d SHA512 eab9ac435d179b5452d00062977f7e6b858a98a40942f1edb4c063753a003f4dd61c126d84f4d490fa9a1a321d41ef3fd852d81673bfa0da03604338e3d7b87e WHIRLPOOL 80e4f15c6dcee14634e52d454ee8d359d37eca711f19ae9f0d7c2534ddf8c45d406a1928a855fb92d0af3caed7f5f2986fc76fb40480debaa4788a64098a1a53
-AUX eblits/src_configure-v53.eblit 6512 SHA256 19d086d5fe9adaa24a30a2867891bd75d46280b8ebb948ead7ec8b9046f4e495 SHA512 685363dcfd9d8c487af30f238e930de61a520336379de75d7e63c3582bf1cb405c23cf17fe70b128da90d36e08c0554ab04abb4fa5f17517757571d6cd8fbbc7 WHIRLPOOL 62ddb8cabb8fad055788a39255fbd518ba65418eede736b7277d1826ea42ed64880c50c73d1dfd6f8bc4bb1068a27a9d6f9fe1c8d8d11b4c76a9d2622a1a8f09
+AUX eblits/src_configure-v53.eblit 6684 SHA256 447e6a96a7b72726e5004c591e013fdacb190e4016a0fb20ab614145c5c996bf SHA512 19456fae08da67196a80ee5cdecab73755b23f1254eb6c9fa8bc7eedb523236af449238cf62f4d2bad7858cdeb5cc52cf1035560f8abbe95cb8da9ea3f163628 WHIRLPOOL 9fa4919c622ead369f980c406c78535cd65dba57b08067323cbae9fc0e84097985ad812bdc739ca46d9c4743e90f0b299c5e035c78e33d28bc281440feac0dab
AUX eblits/src_configure-v54.eblit 6411 SHA256 f0b4378f5cae19e6f1da9e05a61d16f509fe025bdd55f89c495adfa40d57658c SHA512 c60418ebf58003de88bfd01197be5c82b0c01021bf7c279e87a8751d062e8a7dc289d12dba829f82351a7003d65e394968c91e37ae07fc77116a7106188f8b8a WHIRLPOOL 30e6e70944038705dd23d56cd0a358d61439dd92bb7b652d90e719bc1370d20212ecf4f4020df334ef92f2e003d5fcb5205a090d527bb2028fcb0266c8052e9d
AUX eblits/src_install-v2.eblit 5237 SHA256 860bf8ada8a4900d6a4bdd29bab3e65aff29ba8ddbbba4bec50d9d29c6990ca4 SHA512 e8efa688e9f8418a46fb3ef734d787478c77a7cfe2a0e65d9eeaf70241e29964e494c761dcbf61c0e32642ef113b296c66e27e8891b4617ddb2448834b0daffd WHIRLPOOL 100fe0d603ae2105ad5897390c774d93b015f81651369d94ea187aa7e2d37dbbe0a64094dd66e7aad2de0ff7f869c1481c688bde9a8156bb659141ae1681f073
AUX eblits/src_install-v3.eblit 4837 SHA256 2bec8caa8d0447815594110c596d67b45dfbe3daab4d65e0e6422b253f73bd94 SHA512 cee2405d1f4f942a83fa2c8eef13129031ec024e7343aaccbbe14ee54c9d351df3183a8098181cf53b4665b2425bfa2d3bdfd3832e516fb278f31051a6b27430 WHIRLPOOL 584b7b62edb37114b1266f6c7f02d921959ea97f34479b149df031758b3f8eda1bcd3a56acb6a9076e6060aed3bc187e964e6abd05f7d9c3530c08d182816e4a
@@ -31,15 +29,20 @@ DIST php-patchset-5.4-2.tar.bz2 5824 SHA256 4a47f4d31f50a244f85349486cdb3474cf31
DIST suhosin-patch-5.3.9-0.9.10.patch.gz 40967 SHA256 4438caeab0a10c6c94aee9f7eaa703f5799f97d4e0579f43a947bb7314e38317 SHA512 98c56d41fac123626cbd1bcf4ca8afba5a9a960fd58a60e08c91a68cab7589162c4f9e1b0c39abaf173775cb63091a04c4224ee278410ec0afdbe9f3cf05f322 WHIRLPOOL f551823324919cc14cc5f0b4dc2ed75e292fcb2dbe3a34b2c954d4f3cd8ff27937b7a8a0e5665ddc4e737908d2530abf3c61397b040dd6aadcc31163d762b42e
EBUILD php-5.3.15.ebuild 10727 SHA256 a6cdf22245763af064ecad4ff0e9a92cb5a30889fcfb0da494b51eada88e8fb7 SHA512 eb6d09c4a7fb06dbc88d6810331d567832b41ef9c8baed2c2014d5896c6363711a74d4ce355c0caf50416bda61be7fa6d453a768f428103c7b08f8ac77f0bd33 WHIRLPOOL 670d2680d75ba20a63d68fb4408d12aba4635ff50e722159b27b6ae2aaef2fe2b218c00a0a6b6aa34ffb0332085b3304d859a187a00d1a758f84bd42ac4b195b
EBUILD php-5.3.16-r1.ebuild 10824 SHA256 cf409f4837f042fc1dd30aa18b72678d4d0a7fc0277b5a2419771ae1ab911909 SHA512 e49e72c7adccb674062ad341d20ed33097a668ada3a115829fc9eb4ad1de72c3e09a2f33a9db2f9f6129dfbb623d8eab34f2bf82a6108bb300ab3b55fecb809d WHIRLPOOL f6ea7c18bf3ef3bd00630036d3b18721b09e5cf7873d841de8131e1adbb9452e912fbabf4ec64441f58906d61c61ea3c1be7240eb6e04c7f06693b2ca210f981
+EBUILD php-5.3.16-r2.ebuild 10793 SHA256 3ac8d97f6454c83493a0e330fddf8096803878f9393f3a94a841efb79a2bc3b1 SHA512 3408e19c4973044826b7157a2d7a37c3e59e44a67b9493a008c4794ffba4985326cb5703aac25bc3259aaf71b9d50cc3b6d3e347ebdba67e4d47d5ebbf46633a WHIRLPOOL e5ecbf59f3d7b229953302fb7ccc0a2c89ce1890dc30fba2bdd45545f7b3272569d8fffe56a4dc50152cdad8c317653badaff181f06cd8fbddcac74412bfd128
EBUILD php-5.4.5.ebuild 10449 SHA256 fe1ccc25a397885386c27354bf3c39033b0d06c1d53a442eedd06b9c71ca8e4e SHA512 39db961344fac186d5dec534d11d47392f389100e7a9850133065fe0a77077333182f0c4570f3b0c19a639a9a3d41c84fc5c461326431c5d4df6cf53b56947ff WHIRLPOOL 69ca656b6d12e3a14db0d8e9fa79b36f82448e2f1987728f9d342aa10de81ac69c57035467a9b273910896df3f547fc385c748352b094fce1a04ff0f1c5aa730
EBUILD php-5.4.6-r2.ebuild 10802 SHA256 264f1af337a1eaca0c4ec19ba6bdd9ebd242b887cc66d90aef440b612d2777d0 SHA512 fcb6f852266ca8416fc1edc85a4e3cbbd09814e0f2376f5c8b314ae60bea428f164b06ddbda75e18daa867c07e057ac1ceb50e025142a4b652eeb54dc02385ce WHIRLPOOL 2abb47d16a4f5ad5ab3e121d036d136f0c58051b5fd5fc033f58d6fe5e9acb2829ea610bd870cbc0df9b55c1f96925b0787216c2f4a23ed548f46b47c5c65733
EBUILD php-5.4.6.ebuild 10448 SHA256 3a8631625465c34943352ebc6ea5311f05409c3424f86b551b72d6c557faadc1 SHA512 f4bc85ddcf5ba8316e6fd2aad20184dfa25b0597048a81681e6ec03173d1d274408cc0be4741deecb905cf11782e8bda54c9d02ab3a0c8c4dc1b6dab8a08fa1a WHIRLPOOL 922fc5e004d701c7be21a69f91377c9ac48519abeb8795a4750d01e6c97494bdb73853fce09712b9b9fbbe2e916f6eba7ab23990aab73a168b5b0520588f3a81
-MISC ChangeLog 104070 SHA256 e9b1b23a0594be3c039624070492462a8b21a28ffda6495cb6fc4f8d7e5147c7 SHA512 c65de67a583c461f822e965154e9819d35be42513967eab4a93c89a47328fea8e87b245c79ad9a107ffc6b1e127cf74965fac947e47b18d04a00076189675044 WHIRLPOOL d07c7f44779c00ea1a7bf06d7af8974c63a9a1d48d85693e3937afd3fb73d50f8d691708b2c4bb8e49da33e4c35c3a582e40ebeea4e81eaa59e200d013ed6396
-MISC metadata.xml 1497 SHA256 3d6a278c7a85c8b478ca03860b80a8ceda5f3a5ddc64e2d41ab9ca686e7162df SHA512 0f542931aa28d7322feb08ec8514c7d9ae2e8cc1033f6e19bc74d73e76b3828c093d26d7b5801c7cec6716d1f9a05d69325b84739d7d71abc315161950b2902d WHIRLPOOL eaf4534313f10ff26c02d462839259e43d354729e0e707228874614e00e34ea6ae57b4002e062b8f846e8899f8761feb86355583509dbbd6a7f01f913bc25be9
+MISC ChangeLog 104359 SHA256 28545debd68af51e2af5542431917f94e5469d10b500b46255d810f39c6f0ffa SHA512 3551aa4b3793a185d2b25fdd7b4a174611fe15dd5fa8d7bff2f199ce05c9163c1e24ed28aed73013b784e4bb0674faad1229aa468129e0529644c8a69b8b4294 WHIRLPOOL 5ecfc90e756dad091444d3801a20097e721cf36375d1b2e893ce71d049771310dcb5670539bb71b1505f276791e1428d2648ceddd9b31c720d761d25c25506b0
+MISC metadata.xml 1564 SHA256 20bd7e8d4791f77ff2b1a5b03f22aff7bc0d66a915b15fbbf06f8ffe8bc18f36 SHA512 59921e818ac0262eb20cfa10cf98ea9213a5f6d9ee75a64b407db0dd9a254af167fa3c56f44f41280fb495448c6ad31b2f4acd73d26e90bb6422a9318394abe9 WHIRLPOOL d0f123ca20379558f97a01f63069bf8238f40032141a31bfe15c65c5f92ea366bae555d662fdc2b2f19fd9727eb3048cc6caf14ce9c7057d816f57920440f8a4
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)
-iEYEAREIAAYFAlBH9aYACgkQl5yvQNBFVTWAtQCfdf6HCMHze+ldLAIMx7k9z3mF
-3I8An0RsPWoKpgbCxZGd5kuoRyTvhFex
-=xDV3
+iQEcBAEBCAAGBQJQTKRFAAoJEGurSuXEqSv1PycIALix+j9ueMjfBwPzwxPXwtqm
+RmVvQK0/mCc07D508VB74o07PVVTH/FisFwF+6bzWAcwe/wmJUSXoxQ41s1I6w85
+N2+e+rXPqf0+XeA+0EQj1hwieUCMe2H65sE+/76QA0lldiyakb9LuNq0FGzd/rHm
+5ce//BlJNe56KVHqm3tQGmVXKgdHPTuDqu4ZqCU4nIMTkpv6n4N28QLIy4KFyKK3
+2zm5yfTgh0KOcfXPQD5V9laOv4jutHUQGsoa+XjcZdxirB2YeQudP5keiTt6G495
+7fOis6tUfNDP9uz8+EcybVnb/vEBa4J5esazm0dsYLWgpUHoOzZa9LeaxGOAiLE=
+=iPLf
-----END PGP SIGNATURE-----
diff --git a/dev-lang/php/files/eblits/src_configure-v2.eblit b/dev-lang/php/files/eblits/src_configure-v2.eblit
deleted file mode 100644
index ab098329578e..000000000000
--- a/dev-lang/php/files/eblits/src_configure-v2.eblit
+++ /dev/null
@@ -1,276 +0,0 @@
-# Copyright 1999-2011 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/files/eblits/src_configure-v2.eblit,v 1.5 2011/01/05 11:23:16 mabi Exp $
-
-eblit-php-src_configure() {
- PHP_DESTDIR="/usr/$(get_libdir)/php${SLOT}"
-
- # This is a global variable and should be in caps. It isn't because the
- # phpconfutils eclass relies on exactly this name...
- # for --with-libdir see bug #327025
- my_conf="
- --prefix="${PHP_DESTDIR}"
- --mandir="${PHP_DESTDIR}"/man
- --infodir="${PHP_DESTDIR}"/info
- --libdir="${PHP_DESTDIR}"/lib
- --with-libdir=$(get_libdir)
- --without-pear
- $(use_enable threads maintainer-zts)"
-
- phpconfutils_init
-
- # extension USE flag shared
- phpconfutils_extension_enable "bcmath" "bcmath" 1
- phpconfutils_extension_with "bz2" "bzip2" 1
- phpconfutils_extension_enable "calendar" "calendar" 1
- phpconfutils_extension_disable "ctype" "ctype" 0
- phpconfutils_extension_with "curl" "curl" 1
- phpconfutils_extension_with "curlwrappers" "curlwrappers" 0
- phpconfutils_extension_disable "dom" "xml" 0
- phpconfutils_extension_with "enchant" "enchant" 1 "/usr"
- phpconfutils_extension_enable "exif" "exif" 1
- phpconfutils_extension_disable "fileinfo" "fileinfo" 1
- phpconfutils_extension_disable "filter" "filter" 0
- phpconfutils_extension_enable "ftp" "ftp" 1
- phpconfutils_extension_with "gettext" "nls" 1
- phpconfutils_extension_with "gmp" "gmp" 1
- phpconfutils_extension_disable "hash" "hash" 0
- phpconfutils_extension_with "mhash" "mhash" 0
- phpconfutils_extension_without "iconv" "iconv" 0
- phpconfutils_extension_enable "intl" "intl" 1
- phpconfutils_extension_disable "ipv6" "ipv6" 0
- phpconfutils_extension_disable "json" "json" 0
- phpconfutils_extension_with "kerberos" "kerberos" 0 "/usr"
- phpconfutils_extension_disable "libxml" "xml" 0
- phpconfutils_extension_enable "mbstring" "unicode" 1
- phpconfutils_extension_with "mcrypt" "crypt" 1
- phpconfutils_extension_with "mssql" "mssql" 1
- phpconfutils_extension_with "onig" "unicode" 0 "/usr"
- phpconfutils_extension_with "openssl" "ssl" 0
- phpconfutils_extension_with "openssl-dir" "ssl" 0 "/usr"
- phpconfutils_extension_enable "pcntl" "pcntl" 1
- phpconfutils_extension_disable "phar" "phar" 1
- phpconfutils_extension_disable "pdo" "pdo" 0
- phpconfutils_extension_with "pgsql" "postgres" 1
- phpconfutils_extension_disable "posix" "posix" 0
- phpconfutils_extension_with "pspell" "spell" 1
- phpconfutils_extension_with "recode" "recode" 1
- phpconfutils_extension_disable "simplexml" "simplexml" 0
- phpconfutils_extension_enable "shmop" "sharedmem" 0
- phpconfutils_extension_with "snmp" "snmp" 1
- phpconfutils_extension_enable "soap" "soap" 1
- phpconfutils_extension_enable "sockets" "sockets" 1
- phpconfutils_extension_without "sqlite3" "sqlite3" 1 "/usr"
- phpconfutils_extension_with "sybase-ct" "sybase-ct" 1 "/usr"
- phpconfutils_extension_enable "sysvmsg" "sysvipc" 1
- phpconfutils_extension_enable "sysvsem" "sysvipc" 1
- phpconfutils_extension_enable "sysvshm" "sysvipc" 1
- phpconfutils_extension_with "tidy" "tidy" 1
- phpconfutils_extension_disable "tokenizer" "tokenizer" 0
- phpconfutils_extension_enable "wddx" "wddx" 1
- phpconfutils_extension_disable "xml" "xml" 0
- phpconfutils_extension_disable "xmlreader" "xmlreader" 0
- phpconfutils_extension_disable "xmlwriter" "xmlwriter" 0
- phpconfutils_extension_with "xmlrpc" "xmlrpc" 1
- phpconfutils_extension_with "xsl" "xsl" 1
- phpconfutils_extension_enable "zip" "zip" 1
- phpconfutils_extension_with "zlib" "zlib" 1
- phpconfutils_extension_enable "debug" "debug" 0
-
- # DBA support
- if use cdb || use berkdb || use flatfile || use gdbm || use inifile \
- || use qdbm ; then
- my_conf="${my_conf} --enable-dba${shared}"
- fi
-
- # DBA drivers support
- phpconfutils_extension_with "cdb" "cdb" 0
- phpconfutils_extension_with "db4" "berkdb" 0
- phpconfutils_extension_enable "flatfile" "flatfile" 0
- phpconfutils_extension_with "gdbm" "gdbm" 0
- phpconfutils_extension_enable "inifile" "inifile" 0
- phpconfutils_extension_with "qdbm" "qdbm" 0
-
- # Support for the GD graphics library
- if use gd-external ; then
- phpconfutils_extension_with "freetype-dir" "truetype" 0 "/usr"
- phpconfutils_extension_with "t1lib" "truetype" 0 "/usr"
- phpconfutils_extension_enable "gd-jis-conv" "cjk" 0
- phpconfutils_extension_with "gd" "gd-external" 1 "/usr"
- else
- phpconfutils_extension_with "freetype-dir" "truetype" 0 "/usr"
- phpconfutils_extension_with "t1lib" "truetype" 0 "/usr"
- phpconfutils_extension_enable "gd-jis-conv" "cjk" 0
- phpconfutils_extension_with "jpeg-dir" "gd" 0 "/usr"
- phpconfutils_extension_with "png-dir" "gd" 0 "/usr"
- phpconfutils_extension_with "xpm-dir" "xpm" 0 "/usr"
- # enable gd last, so configure can pick up the previous settings
- phpconfutils_extension_with "gd" "gd" 0
- fi
-
- # IMAP support
- if use imap ; then
- phpconfutils_extension_with "imap" "imap" 1
- phpconfutils_extension_with "imap-ssl" "ssl" 0
- fi
-
- # Interbase/firebird support
- if use interbase ; then
- phpconfutils_extension_with "interbase" "interbase" 0 "/opt"
- fi
-
- if use firebird ; then
- phpconfutils_extension_with "interbase" "firebird" 0 "/usr"
- fi
-
- # LDAP support
- if use ldap ; then
- if use oci8 ; then
- phpconfutils_extension_with "ldap" "ldap" 1 "${ORACLE_HOME}"
- else
- phpconfutils_extension_with "ldap" "ldap" 1
- phpconfutils_extension_with "ldap-sasl" "ldap-sasl" 0
- fi
- fi
-
- # MySQL support
- if use mysql ; then
- if use mysqlnd ; then
- phpconfutils_extension_with "mysql" "mysql" 1 "mysqlnd"
- else
- phpconfutils_extension_with "mysql" "mysql" 1 "/usr"
- fi
- phpconfutils_extension_with "mysql-sock" "mysql" 0 "/var/run/mysqld/mysqld.sock"
- fi
-
- # MySQLi support
- if use mysqlnd ; then
- phpconfutils_extension_with "mysqli" "mysqli" 1 "mysqlnd"
- else
- phpconfutils_extension_with "mysqli" "mysqli" 1 "/usr/bin/mysql_config"
- fi
-
- # ODBC support
- if use odbc ; then
- phpconfutils_extension_with "unixODBC" "odbc" 1 "/usr"
- phpconfutils_extension_with "adabas" "adabas" 1
- phpconfutils_extension_with "birdstep" "birdstep" 1
- phpconfutils_extension_with "dbmaker" "dbmaker" 1
- phpconfutils_extension_with "empress" "empress" 1
- if use empress ; then
- phpconfutils_extension_with "empress-bcs" "empress-bcs" 0
- fi
- phpconfutils_extension_with "esoob" "esoob" 1
- # Needed to run conftest for IBM DB2
- [[ -n ${DB2_HOME} ]] && export LD_LIBRARY_PATH="${DB2_HOME}/`get_libdir`"
- phpconfutils_extension_with "ibm-db2" "db2" 1 "${DB2_HOME}"
- phpconfutils_extension_with "sapdb" "sapdb" 1
- phpconfutils_extension_with "solid" "solid" 1
- fi
-
- if use iodbc ; then
- phpconfutils_extension_with "iodbc" "iodbc" 1 "/usr"
- fi
-
- # Oracle support
- phpconfutils_extension_with "oci8" "oci8" 1
- if use oci8-instant-client ; then
- OCI8IC_PKG="$(best_version dev-db/oracle-instantclient-basic | \
- sed -e 's|dev-db/oracle-instantclient-basic-||g' | \
- sed -e 's|-r.*||g')"
-
- phpconfutils_extension_with "oci8" "oci8-instant-client" 1 \
- "instantclient,/usr/lib/oracle/${OCI8IC_PKG}/client/lib"
- fi
-
- # PDO support
- if use pdo ; then
- phpconfutils_extension_with "pdo-dblib" "mssql" 1
- if use mysqlnd ; then
- phpconfutils_extension_with "pdo-mysql" "mysql" 1 "mysqlnd"
- else
- phpconfutils_extension_with "pdo-mysql" "mysql" 1 "/usr"
- fi
- phpconfutils_extension_with "pdo-pgsql" "postgres" 1
- phpconfutils_extension_with "pdo-sqlite" "sqlite3" 1 "/usr"
- phpconfutils_extension_with "pdo-odbc" "odbc" 1 "unixODBC,/usr"
- if use oci8 ; then
- phpconfutils_extension_with "pdo-oci" "oci8" 1
- fi
- if use oci8-instant-client ; then
- phpconfutils_extension_with "pdo-oci" "oci8-instant-client" 1 \
- "instantclient,/usr,${OCI8IC_PKG}"
- fi
- fi
-
- # readline/libedit support
- phpconfutils_extension_with "readline" "readline" 0
- phpconfutils_extension_with "libedit" "libedit" 0
-
- # Session support
- if use session ; then
- phpconfutils_extension_with "mm" "sharedmem" 0
- else
- phpconfutils_extension_disable "session" "session" 0
- fi
-
- # SQLite support
- if use sqlite ; then
- phpconfutils_extension_with "sqlite" "sqlite" 0 "/usr"
- phpconfutils_extension_enable "sqlite-utf8" "unicode" 0
- else
- phpconfutils_extension_without "sqlite" "sqlite" 0
- fi
-
- if use pic ; then
- my_conf="${my_conf} --with-pic"
- fi
-
- # we use the system copy of pcre
- # --with-pcre-regex affects ext/pcre
- # --with-pcre-dir affects ext/filter and ext/zip
- my_conf="${my_conf} --with-pcre-regex=/usr --with-pcre-dir=/usr"
-
- # Catch CFLAGS problems
- php_check_cflags
-
- # Support user-passed configuration parameters
- my_conf="${my_conf} ${EXTRA_ECONF:-}"
-
- # Support the Apache2 extras, they must be set globally for all
- # SAPIs to work correctly, especially for external PHP extensions
-
- mkdir -p "${WORKDIR}/sapis-build"
- for one_sapi in $SAPIS ; do
- use "${one_sapi}" || continue
- php_set_ini_dir "${one_sapi}"
-
- cp -r "${S}" "${WORKDIR}/sapis-build/${one_sapi}"
- cd "${WORKDIR}/sapis-build/${one_sapi}"
-
- sapi_conf="${my_conf} --with-config-file-path=${PHP_INI_DIR}
- --with-config-file-scan-dir=${PHP_EXT_INI_DIR_ACTIVE}"
-
- for sapi in $SAPIS ; do
- case "$sapi" in
- cli|cgi|embed|fpm)
- if [[ "${one_sapi}" == "${sapi}" ]] ; then
- sapi_conf="${sapi_conf} --enable-${sapi}"
- else
- sapi_conf="${sapi_conf} --disable-${sapi}"
- fi
- ;;
-
- apache2)
- if [[ "${one_sapi}" == "${sapi}" ]] ; then
- sapi_conf="${sapi_conf} --with-apxs2=/usr/sbin/apxs"
- else
- sapi_conf="${sapi_conf} --without-apxs2"
- fi
- ;;
- esac
- done
-
- econf ${sapi_conf}
- done
-}
diff --git a/dev-lang/php/files/eblits/src_configure-v521.eblit b/dev-lang/php/files/eblits/src_configure-v521.eblit
deleted file mode 100644
index 61e63891acf3..000000000000
--- a/dev-lang/php/files/eblits/src_configure-v521.eblit
+++ /dev/null
@@ -1,273 +0,0 @@
-# Copyright 1999-2010 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/files/eblits/src_configure-v521.eblit,v 1.1 2010/10/08 18:25:10 olemarkus Exp $
-
-eblit-php-src_configure() {
- export CFLAGS="${CFLAGS} -D_GNU_SOURCE"
- PHP_DESTDIR="/usr/$(get_libdir)/php${SLOT}"
-
- # This is a global variable and should be in caps. It isn't because the
- # phpconfutils eclass relies on exactly this name...
- my_conf="
- --prefix="${PHP_DESTDIR}"
- --mandir="${PHP_DESTDIR}"/man
- --infodir="${PHP_DESTDIR}"/info
- --libdir="${PHP_DESTDIR}"/lib
- --with-libdir=$(get_libdir)
- --without-pear
- $(use_enable threads maintainer-zts)"
-
- phpconfutils_init
-
- # extension USE flag shared
- phpconfutils_extension_enable "bcmath" "bcmath" 1
- phpconfutils_extension_with "bz2" "bzip2" 1
- phpconfutils_extension_enable "calendar" "calendar" 1
- phpconfutils_extension_disable "ctype" "ctype" 0
- phpconfutils_extension_with "curl" "curl" 1
- phpconfutils_extension_with "curlwrappers" "curlwrappers" 0
- phpconfutils_extension_enable "dbase" "dbase" 1
- phpconfutils_extension_disable "dom" "xml" 0
- phpconfutils_extension_enable "exif" "exif" 1
- phpconfutils_extension_with "fbsql" "frontbase" 1
- phpconfutils_extension_with "fdftk" "fdftk" 1 "/opt/fdftk-6.0"
- phpconfutils_extension_disable "filter" "filter" 0
- phpconfutils_extension_enable "ftp" "ftp" 1
- phpconfutils_extension_with "gettext" "nls" 1
- phpconfutils_extension_with "gmp" "gmp" 1
- phpconfutils_extension_disable "hash" "hash" 0
- phpconfutils_extension_without "iconv" "iconv" 0
- phpconfutils_extension_disable "ipv6" "ipv6" 0
- phpconfutils_extension_disable "json" "json" 0
- phpconfutils_extension_with "kerberos" "kerberos" 0 "/usr"
- phpconfutils_extension_disable "libxml" "xml" 0
- phpconfutils_extension_enable "mbstring" "unicode" 1
- phpconfutils_extension_with "mcrypt" "crypt" 1
- phpconfutils_extension_with "mhash" "mhash" 1
- phpconfutils_extension_with "msql" "msql" 1
- phpconfutils_extension_with "mssql" "mssql" 1
- phpconfutils_extension_with "ncurses" "ncurses" 1
- phpconfutils_extension_with "openssl" "ssl" 0
- phpconfutils_extension_with "openssl-dir" "ssl" 0 "/usr"
- phpconfutils_extension_enable "pcntl" "pcntl" 1
- phpconfutils_extension_without "pcre-regex" "pcre" 0
- phpconfutils_extension_disable "pdo" "pdo" 0
- phpconfutils_extension_with "pgsql" "postgres" 1
- phpconfutils_extension_disable "posix" "posix" 0
- phpconfutils_extension_with "pspell" "spell" 1
- phpconfutils_extension_with "recode" "recode" 1
- phpconfutils_extension_disable "reflection" "reflection" 0
- phpconfutils_extension_disable "simplexml" "simplexml" 0
- phpconfutils_extension_enable "shmop" "sharedmem" 0
- phpconfutils_extension_with "snmp" "snmp" 1
- phpconfutils_extension_enable "soap" "soap" 1
- phpconfutils_extension_enable "sockets" "sockets" 1
- phpconfutils_extension_disable "spl" "spl" 0
- phpconfutils_extension_with "sybase-ct" "sybase-ct" 1
- phpconfutils_extension_enable "sysvmsg" "sysvipc" 1
- phpconfutils_extension_enable "sysvsem" "sysvipc" 1
- phpconfutils_extension_enable "sysvshm" "sysvipc" 1
- phpconfutils_extension_with "tidy" "tidy" 1
- phpconfutils_extension_disable "tokenizer" "tokenizer" 0
- phpconfutils_extension_enable "wddx" "wddx" 1
- phpconfutils_extension_disable "xml" "xml" 0
- phpconfutils_extension_disable "xmlreader" "xmlreader" 0
- phpconfutils_extension_disable "xmlwriter" "xmlwriter" 0
- phpconfutils_extension_with "xmlrpc" "xmlrpc" 1
- phpconfutils_extension_with "xsl" "xsl" 1
- phpconfutils_extension_enable "zip" "zip" 1
- phpconfutils_extension_with "zlib" "zlib" 1
- phpconfutils_extension_enable "debug" "debug" 0
-
- # DBA support
- if use cdb || use berkdb || use flatfile || use gdbm || use inifile \
- || use qdbm ; then
- my_conf="${my_conf} --enable-dba${shared}"
- fi
-
- # DBA drivers support
- phpconfutils_extension_with "cdb" "cdb" 0
- phpconfutils_extension_with "db4" "berkdb" 0
- phpconfutils_extension_enable "flatfile" "flatfile" 0
- phpconfutils_extension_with "gdbm" "gdbm" 0
- phpconfutils_extension_enable "inifile" "inifile" 0
- phpconfutils_extension_with "qdbm" "qdbm" 0
-
- # Support for the GD graphics library
- if use gd-external ; then
- phpconfutils_extension_with "freetype-dir" "truetype" 0 "/usr"
- phpconfutils_extension_with "t1lib" "truetype" 0 "/usr"
- phpconfutils_extension_enable "gd-jis-conv" "cjk" 0
- phpconfutils_extension_with "gd" "gd-external" 1 "/usr"
- else
- phpconfutils_extension_with "freetype-dir" "truetype" 0 "/usr"
- phpconfutils_extension_with "t1lib" "truetype" 0 "/usr"
- phpconfutils_extension_enable "gd-jis-conv" "cjk" 0
- phpconfutils_extension_with "jpeg-dir" "gd" 0 "/usr"
- phpconfutils_extension_with "png-dir" "gd" 0 "/usr"
- phpconfutils_extension_with "xpm-dir" "xpm" 0 "/usr"
- # enable gd last, so configure can pick up the previous settings
- phpconfutils_extension_with "gd" "gd" 0
- fi
-
- # IMAP support
- if use imap ; then
- phpconfutils_extension_with "imap" "imap" 1
- phpconfutils_extension_with "imap-ssl" "ssl" 0
- fi
-
- phpconfutils_extension_with "interbase" "interbase" 0 "/opt"
- phpconfutils_extension_with "interbase" "firebird" 0 "/usr"
-
- # LDAP support
- if use ldap ; then
- if use oci8 ; then
- phpconfutils_extension_with "ldap" "ldap" 1 "${ORACLE_HOME}"
- else
- phpconfutils_extension_with "ldap" "ldap" 1
- phpconfutils_extension_with "ldap-sasl" "ldap-sasl" 0
- fi
- fi
-
- # MySQL support
- if use mysql ; then
- phpconfutils_extension_with "mysql" "mysql" 1 "/usr"
- phpconfutils_extension_with "mysql-sock" "mysql" 0 "/var/run/mysqld/mysqld.sock"
- fi
-
- # MySQLi support
- phpconfutils_extension_with "mysqli" "mysqli" 1 "/usr/bin/mysql_config"
-
- # ODBC support
- if use odbc ; then
- phpconfutils_extension_with "unixODBC" "odbc" 1 "/usr"
- phpconfutils_extension_with "adabas" "adabas" 1
- phpconfutils_extension_with "birdstep" "birdstep" 1
- phpconfutils_extension_with "dbmaker" "dbmaker" 1
- phpconfutils_extension_with "empress" "empress" 1
- if use empress ; then
- phpconfutils_extension_with "empress-bcs" "empress-bcs" 0
- fi
- phpconfutils_extension_with "esoob" "esoob" 1
- # Needed to run conftest for IBM DB2
- [[ -n ${DB2_HOME} ]] && export LD_LIBRARY_PATH="${DB2_HOME}/`get_libdir`"
- phpconfutils_extension_with "ibm-db2" "db2" 1 "${DB2_HOME}"
- phpconfutils_extension_with "sapdb" "sapdb" 1
- phpconfutils_extension_with "solid" "solid" 1
- fi
-
- if use iodbc ; then
- phpconfutils_extension_with "iodbc" "iodbc" 1 "/usr"
- fi
-
- # Oracle support
- phpconfutils_extension_with "oci8" "oci8" 1
- if use oci8-instant-client ; then
- OCI8IC_PKG="$(best_version dev-db/oracle-instantclient-basic | \
- sed -e 's|dev-db/oracle-instantclient-basic-||g' | \
- sed -e 's|-r.*||g')"
-
- phpconfutils_extension_with "oci8" "oci8-instant-client" 1 \
- "instantclient,/usr/lib/oracle/${OCI8IC_PKG}/client/lib"
- fi
-
- # PDO support
- if use pdo ; then
- phpconfutils_extension_with "pdo-dblib" "mssql" 1
- phpconfutils_extension_with "pdo-mysql" "mysql" 1 "/usr"
- phpconfutils_extension_with "pdo-pgsql" "postgres" 1
- phpconfutils_extension_with "pdo-sqlite" "sqlite" 1 "/usr"
- phpconfutils_extension_with "pdo-odbc" "odbc" 1 "unixODBC,/usr"
- if use oci8 ; then
- phpconfutils_extension_with "pdo-oci" "oci8" 1
- fi
- if use oci8-instant-client ; then
- phpconfutils_extension_with "pdo-oci" "oci8-instant-client" 1 \
- "instantclient,/usr,${OCI8IC_PKG}"
- fi
- fi
-
- # readline/libedit support
- phpconfutils_extension_with "readline" "readline" 0
- phpconfutils_extension_with "libedit" "libedit" 0
-
- # Session support
- if use session ; then
- phpconfutils_extension_with "mm" "sharedmem" 0
- else
- phpconfutils_extension_disable "session" "session" 0
- fi
-
- # SQLite support
- if use sqlite ; then
- phpconfutils_extension_with "sqlite" "sqlite" 0 "/usr"
- phpconfutils_extension_enable "sqlite-utf8" "unicode" 0
- else
- phpconfutils_extension_without "sqlite" "sqlite" 0
- fi
-
- if use pic ; then
- my_conf="${my_conf} --with-pic"
- fi
-
-
- # we use the system copy of pcre
- # --with-pcre-regex affects ext/pcre
- # --with-pcre-dir affects ext/filter and ext/zip
- if use pcre ; then
- my_conf="${my_conf} --with-pcre-regex=/usr --with-pcre-dir=/usr"
- fi
-
- # Catch CFLAGS problems
- php_check_cflags
-
- # Support user-passed configuration parameters
- my_conf="${my_conf} ${EXTRA_ECONF:-}"
-
- # Support the Apache2 extras, they must be set globally for all
- # SAPIs to work correctly, especially for external PHP extensions
-
- mkdir -p "${WORKDIR}/sapis-build"
- for one_sapi in $SAPIS ; do
- use "${one_sapi}" || continue
- php_set_ini_dir "${one_sapi}"
-
- cp -r "${S}" "${WORKDIR}/sapis-build/${one_sapi}"
- cd "${WORKDIR}/sapis-build/${one_sapi}"
-
- sapi_conf="${my_conf} --with-config-file-path=${PHP_INI_DIR}
- --with-config-file-scan-dir=${PHP_EXT_INI_DIR_ACTIVE}"
-
- for sapi in $SAPIS ; do
- case "$sapi" in
- cli|embed)
- if [[ "${one_sapi}" == "${sapi}" ]] ; then
- sapi_conf="${sapi_conf} --enable-${sapi}"
- else
- sapi_conf="${sapi_conf} --disable-${sapi}"
- fi
- ;;
-
- cgi)
- if [[ "${one_sapi}" == "${sapi}" ]] ; then
- sapi_conf+=" --enable-cgi --enable-fastcgi"
- use discard-path && sapi_conf+=" --enable-discard-path"
- use force-cgi-redirect && sapi_conf+=" --enable-force-cgi-redirect"
- else
- sapi_conf+=" --disable-${sapi}"
- fi
- ;;
-
- apache2)
- if [[ "${one_sapi}" == "${sapi}" ]] ; then
- sapi_conf="${sapi_conf} --with-apxs2=/usr/sbin/apxs"
- else
- sapi_conf="${sapi_conf} --without-apxs2"
- fi
- ;;
- esac
- done
-
- econf ${sapi_conf}
- done
-}
diff --git a/dev-lang/php/files/eblits/src_configure-v53.eblit b/dev-lang/php/files/eblits/src_configure-v53.eblit
index fab12c3fb350..38bac4e4d0eb 100644
--- a/dev-lang/php/files/eblits/src_configure-v53.eblit
+++ b/dev-lang/php/files/eblits/src_configure-v53.eblit
@@ -1,6 +1,6 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/files/eblits/src_configure-v53.eblit,v 1.5 2012/08/22 15:01:54 olemarkus Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/files/eblits/src_configure-v53.eblit,v 1.6 2012/09/09 14:13:00 olemarkus Exp $
eblit-php-src_configure() {
addpredict /usr/share/snmp/mibs/.index
@@ -60,9 +60,14 @@ eblit-php-src_configure() {
$(use_enable sharedmem shmop )
$(use_with snmp snmp )
$(use_enable soap soap )
- $(use_enable sockets sockets )
- $(use_with sqlite sqlite /usr)"
- use sqlite && my_conf+=" $(use_enable unicode sqlite-utf8)"
+ $(use_enable sockets sockets )"
+ if version_is_at_least 5.3.16-r2; then
+ my_conf+=" $(use_with sqlite2 sqlite /usr) "
+ use sqlite2 && my_conf+=" $(use_enable unicode sqlite-utf8)"
+ else
+ my_conf+=" $(use_with sqlite sqlite /usr) "
+ use sqlite && my_conf+=" $(use_enable unicode sqlite-utf8)"
+ fi
my_conf+="
$(use_with sqlite3 sqlite3 /usr)
$(use_with sybase-ct sybase-ct /usr)
diff --git a/dev-lang/php/metadata.xml b/dev-lang/php/metadata.xml
index cbeb509e6545..7c581a283c00 100644
--- a/dev-lang/php/metadata.xml
+++ b/dev-lang/php/metadata.xml
@@ -19,6 +19,7 @@
<flag name='phar'>Enables the phar extension to provide phar archive support</flag>
<flag name='suhosin'>Add Suhosin support (patch and extension from http://www.suhosin.org/)</flag>
<flag restrict="&gt;=dev-lang/php-5.3.6_rc1" name='suhosin'>Add the Suhosin patch from http://www.suhosin.org/)</flag>
+ <flag name='sqlite2'>Add sqlite2 support. Will be removed</flag>
<flag name='xmlreader'>Enable XMLReader support</flag>
<flag name='xmlwriter'>Enable XMLWriter support</flag>
<flag name='zip'>Enable ZIP file support</flag>
diff --git a/dev-lang/php/php-5.3.16-r2.ebuild b/dev-lang/php/php-5.3.16-r2.ebuild
new file mode 100644
index 000000000000..38a3a7484e1c
--- /dev/null
+++ b/dev-lang/php/php-5.3.16-r2.ebuild
@@ -0,0 +1,393 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/php-5.3.16-r2.ebuild,v 1.1 2012/09/09 14:13:00 olemarkus Exp $
+
+EAPI=4
+
+PHPCONFUTILS_MISSING_DEPS="adabas birdstep db2 dbmaker empress empress-bcs esoob interbase oci8 sapdb solid"
+
+RESTRICT="mirror"
+
+inherit eutils autotools flag-o-matic versionator depend.apache apache-module db-use libtool
+
+SUHOSIN_VERSION="5.3.9-0.9.10"
+FPM_VERSION="builtin"
+EXPECTED_TEST_FAILURES=""
+
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd"
+
+function php_get_uri ()
+{
+ case "${1}" in
+ "php-pre")
+ echo "http://downloads.php.net/johannes/${2}"
+ ;;
+ "php")
+ echo "http://www.php.net/distributions/${2}"
+ ;;
+ "suhosin")
+ echo "http://download.suhosin.org/${2}"
+ ;;
+ "olemarkus")
+ echo "http://dev.gentoo.org/~olemarkus/php/${2}"
+ ;;
+ "gentoo")
+ echo "mirror://gentoo/${2}"
+ ;;
+ *)
+ die "unhandled case in php_get_uri"
+ ;;
+ esac
+}
+
+PHP_MV="$(get_major_version)"
+
+# alias, so we can handle different types of releases (finals, rcs, alphas,
+# betas, ...) w/o changing the whole ebuild
+PHP_PV="${PV/_rc/RC}"
+PHP_RELEASE="php"
+PHP_P="${PN}-${PHP_PV}"
+
+PHP_PATCHSET_LOC="olemarkus"
+
+PHP_SRC_URI="$(php_get_uri "${PHP_RELEASE}" "${PHP_P}.tar.bz2")"
+
+PHP_PATCHSET="0"
+PHP_PATCHSET_URI="
+ $(php_get_uri "${PHP_PATCHSET_LOC}" "php-patchset-${PV}-r${PHP_PATCHSET}.tar.bz2")"
+
+PHP_FPM_INIT_VER="4"
+PHP_FPM_CONF_VER="1"
+
+if [[ ${SUHOSIN_VERSION} == *-gentoo ]]; then
+ # in some cases we use our own suhosin patch (very recent version,
+ # patch conflicts, etc.)
+ SUHOSIN_TYPE="olemarkus"
+else
+ SUHOSIN_TYPE="suhosin"
+fi
+
+if [[ -n ${SUHOSIN_VERSION} ]]; then
+ SUHOSIN_PATCH="suhosin-patch-${SUHOSIN_VERSION}.patch";
+ SUHOSIN_URI="$(php_get_uri ${SUHOSIN_TYPE} ${SUHOSIN_PATCH}.gz )"
+fi
+
+SRC_URI="
+ ${PHP_SRC_URI}
+ ${PHP_PATCHSET_URI}"
+
+if [[ -n ${SUHOSIN_VERSION} ]]; then
+ SRC_URI="${SRC_URI}
+ suhosin? ( ${SUHOSIN_URI} )"
+fi
+
+DESCRIPTION="The PHP language runtime engine: CLI, CGI, FPM/FastCGI, Apache2 and embed SAPIs."
+HOMEPAGE="http://php.net/"
+LICENSE="PHP-3"
+
+SLOT="$(get_version_component_range 1-2)"
+S="${WORKDIR}/${PHP_P}"
+
+# We can build the following SAPIs in the given order
+SAPIS="embed cli cgi fpm apache2"
+
+# Gentoo-specific, common features
+IUSE="kolab"
+
+# SAPIs and SAPI-specific USE flags (cli SAPI is default on):
+IUSE="${IUSE}
+ ${SAPIS/cli/+cli}
+ threads"
+
+IUSE="${IUSE} bcmath berkdb bzip2 calendar cdb cjk
+ crypt +ctype curl curlwrappers debug doc
+ enchant exif frontbase +fileinfo +filter firebird
+ flatfile ftp gd gdbm gmp +hash +iconv imap inifile
+ intl iodbc ipv6 +json kerberos ldap ldap-sasl libedit mhash
+ mssql mysql mysqlnd mysqli nls
+ oci8-instant-client odbc pcntl pdo +phar pic +posix postgres qdbm
+ readline recode selinux +session sharedmem
+ +simplexml snmp soap sockets spell sqlite2 sqlite3 ssl
+ sybase-ct sysvipc tidy +tokenizer truetype unicode wddx
+ +xml xmlreader xmlwriter xmlrpc xpm xsl zip zlib"
+
+# Enable suhosin if available
+[[ -n $SUHOSIN_VERSION ]] && IUSE="${IUSE} suhosin"
+
+DEPEND="!dev-lang/php:5
+ >=app-admin/eselect-php-0.6.2
+ >=dev-libs/libpcre-8.12[unicode]
+ apache2? ( www-servers/apache[threads=] )
+ berkdb? ( =sys-libs/db-4* )
+ bzip2? ( app-arch/bzip2 )
+ cdb? ( || ( dev-db/cdb dev-db/tinycdb ) )
+ cjk? ( !gd? (
+ virtual/jpeg
+ media-libs/libpng
+ sys-libs/zlib
+ ) )
+ crypt? ( >=dev-libs/libmcrypt-2.4 )
+ curl? ( >=net-misc/curl-7.10.5 )
+ enchant? ( app-text/enchant )
+ exif? ( !gd? (
+ virtual/jpeg
+ media-libs/libpng
+ sys-libs/zlib
+ ) )
+ firebird? ( dev-db/firebird )
+ gd? ( virtual/jpeg media-libs/libpng sys-libs/zlib )
+ gdbm? ( >=sys-libs/gdbm-1.8.0 )
+ gmp? ( >=dev-libs/gmp-4.1.2 )
+ iconv? ( virtual/libiconv )
+ imap? ( virtual/imap-c-client[ssl=] )
+ intl? ( dev-libs/icu )
+ iodbc? ( dev-db/libiodbc )
+ kerberos? ( virtual/krb5 )
+ kolab? ( >=net-libs/c-client-2004g-r1 )
+ ldap? ( >=net-nds/openldap-1.2.11 )
+ ldap-sasl? ( dev-libs/cyrus-sasl >=net-nds/openldap-1.2.11 )
+ libedit? ( || ( sys-freebsd/freebsd-lib dev-libs/libedit ) )
+ mssql? ( dev-db/freetds[mssql] )
+ !mysqlnd? (
+ mysql? ( virtual/mysql )
+ mysqli? ( >=virtual/mysql-4.1 )
+ )
+ nls? ( sys-devel/gettext )
+ oci8-instant-client? ( dev-db/oracle-instantclient-basic )
+ odbc? ( >=dev-db/unixODBC-1.8.13 )
+ postgres? ( dev-db/postgresql-base )
+ qdbm? ( dev-db/qdbm )
+ readline? ( sys-libs/readline )
+ recode? ( app-text/recode )
+ sharedmem? ( dev-libs/mm )
+ simplexml? ( >=dev-libs/libxml2-2.6.8 )
+ snmp? ( >=net-analyzer/net-snmp-5.2 )
+ soap? ( >=dev-libs/libxml2-2.6.8 )
+ spell? ( >=app-text/aspell-0.50 )
+ sqlite2? ( =dev-db/sqlite-2* )
+ sqlite3? ( >=dev-db/sqlite-3.7.7.1 )
+ ssl? ( >=dev-libs/openssl-0.9.7 )
+ sybase-ct? ( dev-db/freetds )
+ tidy? ( app-text/htmltidy )
+ truetype? (
+ =media-libs/freetype-2*
+ >=media-libs/t1lib-5.0.0
+ !gd? (
+ virtual/jpeg media-libs/libpng sys-libs/zlib )
+ )
+ unicode? ( dev-libs/oniguruma )
+ wddx? ( >=dev-libs/libxml2-2.6.8 )
+ xml? ( >=dev-libs/libxml2-2.6.8 )
+ xmlrpc? ( >=dev-libs/libxml2-2.6.8 virtual/libiconv )
+ xmlreader? ( >=dev-libs/libxml2-2.6.8 )
+ xmlwriter? ( >=dev-libs/libxml2-2.6.8 )
+ xpm? (
+ x11-libs/libXpm
+ virtual/jpeg
+ media-libs/libpng sys-libs/zlib
+ )
+ xsl? ( dev-libs/libxslt >=dev-libs/libxml2-2.6.8 )
+ zip? ( sys-libs/zlib )
+ zlib? ( sys-libs/zlib )
+ virtual/mta
+"
+
+php="=${CATEGORY}/${PF}"
+
+REQUIRED_USE="
+ truetype? ( gd )
+ cjk? ( gd )
+ exif? ( gd )
+
+ xpm? ( gd )
+ gd? ( zlib )
+ simplexml? ( xml )
+ soap? ( xml )
+ wddx? ( xml )
+ xmlrpc? ( || ( xml iconv ) )
+ xmlreader? ( xml )
+ xsl? ( xml )
+ ldap-sasl? ( ldap )
+ kolab? ( imap )
+ mhash? ( hash )
+ phar? ( hash )
+ mysqlnd? ( || (
+ mysql
+ mysqli
+ pdo
+ ) )
+
+ qdbm? ( !gdbm )
+ readline? ( !libedit )
+ recode? ( !imap !mysql !mysqli )
+ sharedmem? ( !threads )
+
+ !cli? ( !cgi? ( !fpm? ( !apache2? ( !embed? ( cli ) ) ) ) )"
+
+DEPEND="${DEPEND}
+ enchant? ( !dev-php5/pecl-enchant )
+ fileinfo? ( !<dev-php5/pecl-fileinfo-1.0.4-r2 )
+ filter? ( !dev-php5/pecl-filter )
+ json? ( !dev-php5/pecl-json )
+ phar? ( !dev-php5/pecl-phar )
+ zip? ( !dev-php5/pecl-zip )"
+
+RDEPEND="${DEPEND}"
+
+[[ -n $SUHOSIN_VERSION ]] && RDEPEND="${RDEPEND} suhosin? ( =${CATEGORY}/${PN}-${SLOT}*[unicode] )"
+
+RDEPEND="${RDEPEND} fpm? ( selinux? ( sec-policy/selinux-phpfpm ) )"
+
+DEPEND="${DEPEND}
+ sys-devel/flex
+ >=sys-devel/m4-1.4.3
+ >=sys-devel/libtool-1.5.18"
+
+# They are in PDEPEND because we need PHP installed first!
+PDEPEND="doc? ( app-doc/php-docs )"
+
+# No longer depend on the extension. The suhosin USE flag only installs the
+# patch
+#[[ -n $SUHOSIN_VERSION ]] && PDEPEND="${PDEPEND} suhosin? ( dev-php${PHP_MV}/suhosin )"
+
+# Allow users to install production version if they want to
+
+case "${PHP_INI_VERSION}" in
+ production|development)
+ ;;
+ *)
+ PHP_INI_VERSION="development"
+ ;;
+esac
+
+PHP_INI_UPSTREAM="php.ini-${PHP_INI_VERSION}"
+PHP_INI_FILE="php.ini"
+
+want_apache
+
+# eblit-core
+# Usage: <function> [version] [eval]
+# Main eblit engine
+eblit-core() {
+ [[ -z $FILESDIR ]] && FILESDIR="$(dirname $EBUILD)/files"
+ local e v func=$1 ver=$2 eval_=$3
+ for v in ${ver:+-}${ver} -${PVR} -${PV} "" ; do
+ e="${FILESDIR}/eblits/${func}${v}.eblit"
+ if [[ -e ${e} ]] ; then
+ . "${e}"
+ [[ ${eval_} == 1 ]] && eval "${func}() { eblit-run ${func} ${ver} ; }"
+ return 0
+ fi
+ done
+ return 1
+}
+
+# eblit-include
+# Usage: [--skip] <function> [version]
+# Includes an "eblit" -- a chunk of common code among ebuilds in a given
+# package so that its functions can be sourced and utilized within the
+# ebuild.
+eblit-include() {
+ local skipable=false r=0
+ [[ $1 == "--skip" ]] && skipable=true && shift
+ [[ $1 == pkg_* ]] && skipable=true
+
+ [[ -z $1 ]] && die "Usage: eblit-include <function> [version]"
+ eblit-core $1 $2
+ r="$?"
+ ${skipable} && return 0
+ [[ "$r" -gt "0" ]] && die "Could not locate requested eblit '$1' in ${FILESDIR}/eblits/"
+}
+
+# eblit-run-maybe
+# Usage: <function>
+# Runs a function if it is defined in an eblit
+eblit-run-maybe() {
+ [[ $(type -t "$@") == "function" ]] && "$@"
+}
+
+# eblit-run
+# Usage: <function> [version]
+# Runs a function defined in an eblit
+eblit-run() {
+ eblit-include --skip common "v2"
+ eblit-include "$@"
+ eblit-run-maybe eblit-$1-pre
+ eblit-${PN}-$1
+ eblit-run-maybe eblit-$1-post
+}
+
+# eblit-pkg
+# Usage: <phase> [version]
+# Includes the given functions AND evals them so they're included in the binpkgs
+eblit-pkg() {
+ [[ -z $1 ]] && die "Usage: eblit-pkg <phase> [version]"
+ eblit-core $1 $2 1
+}
+
+eblit-pkg pkg_setup v3
+
+src_prepare() { eblit-run src_prepare v3 ; }
+src_configure() { eblit-run src_configure v53 ; }
+src_compile() { eblit-run src_compile v1 ; }
+src_install() { eblit-run src_install v3 ; }
+src_test() { eblit-run src_test v1 ; }
+
+#Do not use eblit for this because it will not get sourced when installing from
+#binary package (bug #380845)
+pkg_postinst() {
+ # Output some general info to the user
+ if use apache2 ; then
+ APACHE2_MOD_DEFINE="PHP5"
+ APACHE2_MOD_CONF="70_mod_php5"
+ apache-module_pkg_postinst
+ fi
+
+ # Create the symlinks for php
+ for m in ${SAPIS}; do
+ [[ ${m} == 'embed' ]] && continue;
+ if use $m ; then
+ local ci=$(eselect php show $m)
+ if [[ -z $ci ]]; then
+ eselect php set $m php${SLOT}
+ einfo "Switched ${m} to use php:${SLOT}"
+ einfo
+ elif [[ $ci != "php${SLOT}" ]] ; then
+ elog "To switch $m to use php:${SLOT}, run"
+ elog " eselect php set $m php${SLOT}"
+ elog
+ fi
+ fi
+ done
+
+ elog "Make sure that PHP_TARGETS in /etc/make.conf includes php${SLOT/./-} in order"
+ elog "to compile extensions for the ${SLOT} ABI"
+ elog
+ if ! use readline && use cli ; then
+ ewarn "Note that in order to use php interactivly, you need to enable"
+ ewarn "the readline USE flag or php -a will hang"
+ fi
+ elog
+ elog "This ebuild installed a version of php.ini based on php.ini-${PHP_INI_VERSION} version."
+ elog "You can chose which version of php.ini to install by default by setting PHP_INI_VERSION to either"
+ elog "'production' or 'development' in /etc/make.conf"
+ ewarn "Both versions of php.ini can be found in /usr/share/doc/${PF}"
+
+ # check for not yet migrated old style config dirs
+ ls "${ROOT}"/etc/php/*-php5 &>/dev/null
+ if [[ $? -eq 0 ]]; then
+ ewarn "Make sure to migrate your config files, starting with php-5.3.4 and php-5.2.16 config"
+ ewarn "files are now kept at ${ROOT}etc/php/{apache2,cli,cgi,fpm}-php5.x"
+ fi
+ elog
+ elog "For more details on how minor version slotting works (PHP_TARGETS) please read the upgrade guide:"
+ elog "http://www.gentoo.org/proj/en/php/php-upgrading.xml"
+ elog
+
+ if ( [[ -z SUHOSIN_VERSION ]] && use suhosin && version_is_at_least 5.3.6_rc1 ) ; then
+ ewarn "The suhosin USE flag now only installs the suhosin patch!"
+ ewarn "If you want the suhosin extension, make sure you install"
+ ewarn " dev-php5/suhosin"
+ ewarn
+ fi
+}