summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBertrand Jacquin <bertrand@jacquin.bzh>2021-04-25 02:25:34 +0100
committerBertrand Jacquin <bertrand@jacquin.bzh>2021-04-25 17:42:21 +0100
commit26eccf5b3617474cd63a09dfa9291c8e9ced0ff2 (patch)
tree3d78b483ecf0385ad00ffc150e72754949dd1026
parentx11-misc/entrance: add user, fix config (diff)
downloadportage-26eccf5b3617474cd63a09dfa9291c8e9ced0ff2.tar.xz
dev-lang/php: remove old
Package-Manager: Portage-3.0.17, Repoman-3.0.2 RepoMan-Options: --force
-rw-r--r--dev-lang/php/Manifest3
-rw-r--r--dev-lang/php/files/5.2.17/bug-60986-replace-deprecated-pcre_info.diff55
-rw-r--r--dev-lang/php/files/5.2.17/bug-60986-safer-pcre_fullinfo.diff33
-rw-r--r--dev-lang/php/files/5.2.17/libxml-2.9.patch65
-rw-r--r--dev-lang/php/files/eblits/common-v2.eblit9
-rw-r--r--dev-lang/php/files/eblits/src_compile-v1.eblit60
-rw-r--r--dev-lang/php/files/eblits/src_configure-v521.eblit260
-rw-r--r--dev-lang/php/files/eblits/src_install-v2.eblit159
-rw-r--r--dev-lang/php/files/eblits/src_prepare-v2.eblit65
-rw-r--r--dev-lang/php/metadata.xml18
-rw-r--r--dev-lang/php/php-5.2.17.ebuild382
-rw-r--r--profiles/use.local.desc18
12 files changed, 0 insertions, 1127 deletions
diff --git a/dev-lang/php/Manifest b/dev-lang/php/Manifest
index 2692fb71..83dc7e9e 100644
--- a/dev-lang/php/Manifest
+++ b/dev-lang/php/Manifest
@@ -1,8 +1,5 @@
-DIST php-5.2.17.tar.bz2 9092312 BLAKE2B 088c032febdcae8a5d0b7cd7fe79b76185a83b13ae3d2a4cd5c7153b21ac7f8243194d60ed175ac2d04b9abaab067e898a2819ad88f5d330fc23685a68cf6580 SHA512 baf3b5038468c9fa7c1a9e0506ed23559c21ba8df29380498a24e8d31c4c5f3633f29b1bc2faa3e59c6e5336536c09e19a5462b0a9d5916181c08f1f19abbca8
DIST php-5.4.45.tar.bz2 12703324 BLAKE2B cc33b046633bc917deaa39a29bc2a025c4f8b74b9b04a371ee548b45d6255e9afda7edf6329ba6eeeb8bb34867d83a08792884c18ab811f9e212e26da5a0b7a2 SHA512 ba22207da70e5e8ddf9a1f41bbeb54ef4917630006c3412db8f858782baaa3ff49d7e5ca59bed76c37fc11dc518c475b81f33f0f32c533c8f00be338e0b0d9c5
DIST php-5.5.38.tar.xz 11077780 BLAKE2B cd94f338c2f13c45c3973cf3c40ce182be823f5bb9d3f4257aa2cdddca2ad3024c4d610f5e7010039fcfa4cf063931932441164e41fa3b960d4d3ac84d3ca1fd SHA512 c2cdb18b2c9edaeff66591e8f58f8ff488260f537cdf9ce09820c163f20ff5209c0def89343d429932c9506ad4ef3daacf224946dac1c59622501092483f30c6
DIST php-5.6.40.tar.xz 12472236 BLAKE2B f41147eaec9b15e965540f9e871691cc88848dd619bae6af85e7bba0130b71ce91bad5cdbbadbb537c42df83369f5c731007339a9d9e21e689e913c135201afc SHA512 997b5a952a60cf9166671cc91fcc34c674dd62bfd5cb0a9cdf3fdf2d088b5d19943d94c1cf193f8ab71fc4957d9a9a4c7c2fb8826f937501c1c0a0858f10e329
DIST php-patches-7.1.33bp.tar.bz2 39945 BLAKE2B 9f7137f61b7ea07cc263b054401a319042f5a40d6cdaf3561a45778ae009e3279c72f2a6a0f9c97805bc39acef1c8c9d72d290c2ce873f44209fb2d65d620810 SHA512 8e36fb57bdadfcc4e976ecb7dc8f44290dc3b507eb27f4445aa2c8eba528e7cb53286e7fd9b1b9141f12fd6e29278282e4f0eb6445ed06046dd48a1d5d1bc789
-DIST php-patchset-5.2.17-r0.tar.bz2 8369 BLAKE2B 04eaa248729338435b7cf5fcc9d58260343127e527a8cea054e7b5bc47d8c8b0fa3091727c795f9179f6e47a8c7bee17126a57d4fa2d787755c49956e0640fc0 SHA512 8e1f4de519f926ccabf04c7358f8568506943e8d3be474c8a656cccb19381553609db05ef3bfb97adc5f2976aafe589aa53f84f888bbcb41e231298d89566b39
DIST php-patchset-5.4-r2.tar.bz2 5824 BLAKE2B 4ad2e2f296337ba9bbc9a88eb073e87c2048a13b73cb78854936af1aae10eb9ac1bb2851c629d5930c931d8660e8c31cfd965ea9c284e85dc2f9df39c4ed1da0 SHA512 3c2523458a627373da7acb93fb2cd621f50b19fe2ba1d30beb62eeaaa39045262b917cfd0b631046fec9c8027cfa99bd0426a079ab45eb172b21d25d6e085dde
-DIST suhosin-patch-5.2.16-0.9.7.patch.gz 23069 BLAKE2B c749fd0f7767902556c9362b9f7b655bb97900f638fbce6fc9aacc0c3c1cbffd55dd7a59a785c2ded14ed7f992609352fb5dda800d36f2eaf3b3d5f616f930b8 SHA512 71f204c6c04cff4914c5f3d4d8d4e016e09a92a8e92d3a78ed2df482238ae6e8b71fb16ccadaca643d0fde07966ead02bcf3bee9c46725290e0a5ed603ec0ba0
diff --git a/dev-lang/php/files/5.2.17/bug-60986-replace-deprecated-pcre_info.diff b/dev-lang/php/files/5.2.17/bug-60986-replace-deprecated-pcre_info.diff
deleted file mode 100644
index 0c28f5a7..00000000
--- a/dev-lang/php/files/5.2.17/bug-60986-replace-deprecated-pcre_info.diff
+++ /dev/null
@@ -1,55 +0,0 @@
-From 704c45ec3edeab16b46fbac3b81947577d185970 Mon Sep 17 00:00:00 2001
-From: Rasmus Lerdorf <rasmus@php.net>
-Date: Mon, 6 Feb 2012 18:11:56 +0000
-Subject: [PATCH] Fix for bug 60986
-
----
- ext/pcre/php_pcre.c | 4 ++--
- ext/pcre/php_pcre.def | 1 -
- main/php_compat.h | 1 -
- 3 files changed, 2 insertions(+), 4 deletions(-)
-
-diff --git a/ext/pcre/php_pcre.c b/ext/pcre/php_pcre.c
-index 1741843..fc96ef6 100644
---- a/ext/pcre/php_pcre.c
-+++ b/ext/pcre/php_pcre.c
-@@ -252,10 +252,10 @@ PHPAPI pcre_cache_entry* pcre_get_compiled_regex_cache(char *regex, int regex_le
- back the compiled pattern, otherwise go on and compile it. */
- if (zend_hash_find(&PCRE_G(pcre_cache), regex, regex_len+1, (void **)&pce) == SUCCESS) {
- /*
-- * We use a quick pcre_info() check to see whether cache is corrupted, and if it
-+ * We use a quick pcre_fullinfo() check to see whether cache is corrupted, and if it
- * is, we flush it and compile the pattern from scratch.
- */
-- if (pcre_info(pce->re, NULL, NULL) == PCRE_ERROR_BADMAGIC) {
-+ if (pcre_fullinfo(pce->re, NULL, NULL, NULL) == PCRE_ERROR_BADMAGIC) {
- zend_hash_clean(&PCRE_G(pcre_cache));
- } else {
- #if HAVE_SETLOCALE
-diff --git a/ext/pcre/php_pcre.def b/ext/pcre/php_pcre.def
-index 0e49897..769b064 100644
---- a/ext/pcre/php_pcre.def
-+++ b/ext/pcre/php_pcre.def
-@@ -4,7 +4,6 @@ php_pcre_copy_substring
- php_pcre_exec
- php_pcre_get_substring
- php_pcre_get_substring_list
--php_pcre_info
- php_pcre_maketables
- php_pcre_study
- php_pcre_version
-diff --git a/main/php_compat.h b/main/php_compat.h
-index 0163844..80f43d4 100644
---- a/main/php_compat.h
-+++ b/main/php_compat.h
-@@ -34,7 +34,6 @@
- #define pcre_exec php_pcre_exec
- #define pcre_get_substring php_pcre_get_substring
- #define pcre_get_substring_list php_pcre_get_substring_list
--#define pcre_info php_pcre_info
- #define pcre_maketables php_pcre_maketables
- #define pcre_study php_pcre_study
- #define pcre_version php_pcre_version
---
-1.7.8.6
-
diff --git a/dev-lang/php/files/5.2.17/bug-60986-safer-pcre_fullinfo.diff b/dev-lang/php/files/5.2.17/bug-60986-safer-pcre_fullinfo.diff
deleted file mode 100644
index 67484703..00000000
--- a/dev-lang/php/files/5.2.17/bug-60986-safer-pcre_fullinfo.diff
+++ /dev/null
@@ -1,33 +0,0 @@
-From c950030b3f07a05fd00fa894ca573f7746e82367 Mon Sep 17 00:00:00 2001
-From: Rasmus Lerdorf <rasmus@php.net>
-Date: Mon, 6 Feb 2012 18:18:53 +0000
-Subject: [PATCH] Safer way to call pcre_fullinfo - bug 60986
-
----
- ext/pcre/php_pcre.c | 3 ++-
- 1 files changed, 2 insertions(+), 1 deletions(-)
-
-diff --git a/ext/pcre/php_pcre.c b/ext/pcre/php_pcre.c
-index fc96ef6..c9d7072 100644
---- a/ext/pcre/php_pcre.c
-+++ b/ext/pcre/php_pcre.c
-@@ -241,6 +241,7 @@ PHPAPI pcre_cache_entry* pcre_get_compiled_regex_cache(char *regex, int regex_le
- char *pattern;
- int do_study = 0;
- int poptions = 0;
-+ int count = 0;
- unsigned const char *tables = NULL;
- #if HAVE_SETLOCALE
- char *locale = setlocale(LC_CTYPE, NULL);
-@@ -255,7 +256,7 @@ PHPAPI pcre_cache_entry* pcre_get_compiled_regex_cache(char *regex, int regex_le
- * We use a quick pcre_fullinfo() check to see whether cache is corrupted, and if it
- * is, we flush it and compile the pattern from scratch.
- */
-- if (pcre_fullinfo(pce->re, NULL, NULL, NULL) == PCRE_ERROR_BADMAGIC) {
-+ if (pcre_fullinfo(pce->re, NULL, PCRE_INFO_CAPTURECOUNT, &count) == PCRE_ERROR_BADMAGIC) {
- zend_hash_clean(&PCRE_G(pcre_cache));
- } else {
- #if HAVE_SETLOCALE
---
-1.7.8.6
-
diff --git a/dev-lang/php/files/5.2.17/libxml-2.9.patch b/dev-lang/php/files/5.2.17/libxml-2.9.patch
deleted file mode 100644
index 6304a8c3..00000000
--- a/dev-lang/php/files/5.2.17/libxml-2.9.patch
+++ /dev/null
@@ -1,65 +0,0 @@
-From c4b26cc1b0b0521c75e653fffec2a9e3b4bf8cbb Mon Sep 17 00:00:00 2001
-From: Daniel Veillard <veillard@redhat.com>
-Date: Thu, 9 Aug 2012 14:02:33 -0400
-Subject: [PATCH] Update to work with libxml 2.9.0
-
----
- ext/dom/documenttype.c | 4 ++++
- ext/dom/node.c | 8 ++++++++
- ext/simplexml/simplexml.c | 4 ++++
- 3 files changed, 16 insertions(+)
-
-diff --git a/ext/dom/documenttype.c b/ext/dom/documenttype.c
-index d61ba79..eee3b5f 100644
---- a/ext/dom/documenttype.c
-+++ b/ext/dom/documenttype.c
-@@ -205,7 +205,11 @@ int dom_documenttype_internal_subset_read(dom_object *obj, zval **retval TSRMLS_
- if (buff != NULL) {
- xmlNodeDumpOutput (buff, NULL, (xmlNodePtr) intsubset, 0, 0, NULL);
- xmlOutputBufferFlush(buff);
-+#ifdef LIBXML2_NEW_BUFFER
-+ ZVAL_STRINGL(*retval, xmlOutputBufferGetContent(buff), xmlOutputBufferGetSize(buff), 1);
-+#else
- ZVAL_STRINGL(*retval, buff->buffer->content, buff->buffer->use, 1);
-+#endif
- (void)xmlOutputBufferClose(buff);
- return SUCCESS;
- }
-diff --git a/ext/dom/node.c b/ext/dom/node.c
-index 5bcb234..727d1bc 100644
---- a/ext/dom/node.c
-+++ b/ext/dom/node.c
-@@ -1895,9 +1895,17 @@ static void dom_canonicalization(INTERNAL_FUNCTION_PARAMETERS, int mode) /* {{{
- RETVAL_FALSE;
- } else {
- if (mode == 0) {
-+#ifdef LIBXML2_NEW_BUFFER
-+ ret = xmlOutputBufferGetSize(buf);
-+#else
- ret = buf->buffer->use;
-+#endif
- if (ret > 0) {
-+#ifdef LIBXML2_NEW_BUFFER
-+ RETVAL_STRINGL((char *) xmlOutputBufferGetContent(buf), ret, 1);
-+#else
- RETVAL_STRINGL((char *) buf->buffer->content, ret, 1);
-+#endif
- } else {
- RETVAL_EMPTY_STRING();
- }
-diff --git a/ext/simplexml/simplexml.c b/ext/simplexml/simplexml.c
-index a379111..2368596 100644
---- a/ext/simplexml/simplexml.c
-+++ b/ext/simplexml/simplexml.c
-@@ -1387,7 +1387,11 @@ SXE_METHOD(asXML)
-
- xmlNodeDumpOutput(outbuf, (xmlDocPtr) sxe->document->ptr, node, 0, 0, ((xmlDocPtr) sxe->document->ptr)->encoding);
- xmlOutputBufferFlush(outbuf);
-+#ifdef LIBXML2_NEW_BUFFER
-+ RETVAL_STRINGL((char *)xmlOutputBufferGetContent(outbuf), xmlOutputBufferGetSize(outbuf), 1);
-+#else
- RETVAL_STRINGL((char *)outbuf->buffer->content, outbuf->buffer->use, 1);
-+#endif
- xmlOutputBufferClose(outbuf);
- }
- } else {
diff --git a/dev-lang/php/files/eblits/common-v2.eblit b/dev-lang/php/files/eblits/common-v2.eblit
deleted file mode 100644
index 394dacbe..00000000
--- a/dev-lang/php/files/eblits/common-v2.eblit
+++ /dev/null
@@ -1,9 +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/common-v2.eblit,v 1.3 2010/10/08 18:25:10 olemarkus Exp $
-
-php_set_ini_dir() {
- PHP_INI_DIR="/etc/php/${1}-php${SLOT}"
- PHP_EXT_INI_DIR="${PHP_INI_DIR}/ext"
- PHP_EXT_INI_DIR_ACTIVE="${PHP_INI_DIR}/ext-active"
-}
diff --git a/dev-lang/php/files/eblits/src_compile-v1.eblit b/dev-lang/php/files/eblits/src_compile-v1.eblit
deleted file mode 100644
index cb0d56cd..00000000
--- a/dev-lang/php/files/eblits/src_compile-v1.eblit
+++ /dev/null
@@ -1,60 +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_compile-v1.eblit,v 1.6 2010/08/14 19:37:31 mabi Exp $
-
-eblit-php-src_compile() {
- # snmp seems to run during src_compile, too (bug #324739)
- addpredict /usr/share/snmp/mibs/.index
-
- SAPI_DIR="${WORKDIR}/sapis"
-
- for sapi in ${SAPIS} ; do
- use "${sapi}" || continue
-
- php_sapi_build "${sapi}"
- php_sapi_copy "${sapi}"
- done
-}
-
-php_sapi_build() {
- mkdir -p "${SAPI_DIR}/$1"
-
- cd "${WORKDIR}/sapis-build/$1"
- emake || die "emake failed"
-}
-
-php_sapi_copy() {
- local sapi="$1"
- local source=""
-
- case "$sapi" in
- cli)
- source="sapi/cli/php"
- ;;
- cgi)
- source="sapi/cgi/php-cgi"
- ;;
- fpm)
- source="sapi/fpm/php-fpm"
- ;;
- embed)
- source="libs/libphp${PHP_MV}.so"
- ;;
-
- apache2)
- # apache2 is a special case; the necessary files
- # (yes, multiple) are copied by make install, not
- # by the ebuild; that's the reason, why apache2 has
- # to be the last sapi
- emake INSTALL_ROOT="${SAPI_DIR}/${sapi}/" install-sapi
- ;;
-
- *)
- die "unhandled sapi in php_sapi_copy"
- ;;
- esac
-
- if [[ "${source}" ]] ; then
- cp "$source" "${SAPI_DIR}/$sapi" || die "Unable to copy ${sapi} SAPI"
- fi
-}
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 b239117f..00000000
--- a/dev-lang/php/files/eblits/src_configure-v521.eblit
+++ /dev/null
@@ -1,260 +0,0 @@
-# Copyright 1999-2017 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_enable "dbase" "dbase" 1
- phpconfutils_extension_disable "dom" "xml" 0
- phpconfutils_extension_enable "exif" "exif" 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_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_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 "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-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
-
- # 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} || die "econf failed"
- done
-}
diff --git a/dev-lang/php/files/eblits/src_install-v2.eblit b/dev-lang/php/files/eblits/src_install-v2.eblit
deleted file mode 100644
index a6054785..00000000
--- a/dev-lang/php/files/eblits/src_install-v2.eblit
+++ /dev/null
@@ -1,159 +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_install-v2.eblit,v 1.14 2011/12/16 09:02:43 olemarkus Exp $
-
-eblit-php-src_install() {
- # see bug #324739 for what happens when we don't have that
- addpredict /usr/share/snmp/mibs/.index
-
- # grab the first SAPI that got built and install common files from there
- local first_sapi=""
- for sapi in $SAPIS ; do
- if use $sapi ; then
- first_sapi=$sapi
- break
- fi
- done
-
- # Makefile forgets to create this before trying to write to it...
- dodir "${PHP_DESTDIR}/bin"
-
- # Install php environment (without any sapis)
- cd "${WORKDIR}/sapis-build/$first_sapi"
- emake INSTALL_ROOT="${D}" \
- install-build install-headers install-programs \
- || die "emake install failed"
-
- local extension_dir="$("${D}/${PHP_DESTDIR}/bin/php-config" --extension-dir)"
-
- # And install the modules to it
- if use sharedext ; then
- insinto "${extension_dir}"
- doins "${WORKDIR}/sapis-build/${first_sapi}/modules/"*.so
- fi
-
- # Create the directory where we'll put version-specific php scripts
- keepdir /usr/share/php${PHP_MV}
-
- local sapi="", file=""
- local sapi_list=""
-
- for sapi in ${SAPIS}; do
- if use "${sapi}" ; then
- einfo "Installing SAPI: ${sapi}"
- cd "${WORKDIR}/sapis-build/${sapi}"
- # needed each time, php_install_ini would reset it
- into "${PHP_DESTDIR}"
- file=$(find "${SAPI_DIR}/${sapi}/" -type f | head -n 1)
-
- if [[ "${file: -3}" == ".so" ]]; then
- if [[ "${sapi}" == "apache2" ]]; then
- insinto "${PHP_DESTDIR}/apache2/"
- newins "${file}" "${file/*\/}"
- keepdir "/usr/$(get_libdir)/apache2/modules"
- else
- dolib.so "${file}" || die "Unable to install ${sapi} sapi"
- fi
- else
- dobin "${file}" || die "Unable to install ${sapi} sapi"
- fi
-
- php_install_ini "${sapi}"
-
- # construct correct SAPI string for php-config
- # thanks to ferringb for the bash voodoo
- if [[ "${sapi}" == "apache2" ]]; then
- sapi_list="${sapi_list:+${sapi_list} }apache2handler"
- else
- sapi_list="${sapi_list:+${sapi_list} }${sapi}"
- fi
- fi
- done
-
- # Install env.d files
- newenvd "${FILESDIR}/20php5-envd" \
- "20php${SLOT}"
- sed -e "s|/lib/|/$(get_libdir)/|g" -i \
- "${D}/etc/env.d/20php${SLOT}"
- sed -e "s|php5|php${SLOT}|g" -i \
- "${D}/etc/env.d/20php${SLOT}"
-
- # set php-config variable correctly (bug #278439)
- sed -e "s:^\(php_sapis=\)\".*\"$:\1\"${sapi_list}\":" -i \
- "${D}/usr/$(get_libdir)/php${SLOT}/bin/php-config"
-}
-
-php_install_ini() {
- local phpsapi="${1}"
-
- # work out where we are installing the ini file
- php_set_ini_dir "${phpsapi}"
-
- local phpinisrc="${PHP_INI_UPSTREAM}-${phpsapi}"
- cp "${PHP_INI_UPSTREAM}" "${phpinisrc}"
-
- # default to allow_url_open=Off, bug 332763
- sed -e 's|^allow_url_fopen .*|allow_url_fopen = Off|g' -i "${phpinisrc}"
-
- # default to expose_php=Off, bug 300695
- sed -e 's|^expose_php .*|expose_php = Off|g' -i "${phpinisrc}"
-
- # default to /tmp for save_path, bug #282768
- sed -e 's|^;session.save_path .*$|session.save_path = "/tmp"|g' -i "${phpinisrc}"
-
- # Set the extension dir
- sed -e "s|^extension_dir .*$|extension_dir = ${extension_dir}|g" -i "${phpinisrc}"
-
- # Set the include path to point to where we want to find PEAR packages
- sed -e 's|^;include_path = ".:/php/includes".*|include_path = ".:/usr/share/php'${PHP_MV}':/usr/share/php"|' -i "${phpinisrc}"
-
- dodir "${PHP_INI_DIR}"
- insinto "${PHP_INI_DIR}"
- newins "${phpinisrc}" "${PHP_INI_FILE}"
-
- elog "Installing php.ini for ${phpsapi} into ${PHP_INI_DIR}"
- elog
-
- dodir "${PHP_EXT_INI_DIR}"
- dodir "${PHP_EXT_INI_DIR_ACTIVE}"
-
- # Install any extensions built as shared objects
- if use sharedext ; then
- insinto "${PHP_EXT_INI_DIR}"
- for extension in "${D}/${extension_dir}/"*.so ; do
- extension="${extension##*/}"
- inifilename="${extension/.so/.ini}"
- echo "extension=${extension}" > "${WORKDIR}/sapis-build/${phpsapi}/modules/$inifilename"
- doins "${WORKDIR}/sapis-build/${phpsapi}/modules/$inifilename"
- dosym "${PHP_EXT_INI_DIR}/${inifilename}" "${PHP_EXT_INI_DIR_ACTIVE}/${inifilename}"
- done
- fi
-
- # SAPI-specific handling
- if [[ "${sapi}" == "fpm" ]] ; then
- [[ -z ${PHP_FPM_INIT_VER} ]] && PHP_FPM_INIT_VER=3
- [[ -z ${PHP_FPM_CONF_VER} ]] && PHP_FPM_CONF_VER=0
- einfo "Installing FPM CGI config file php-fpm.conf"
- insinto ${PHP_INI_DIR}
- newins "${FILESDIR}/php-fpm-r${PHP_FPM_CONF_VER}.conf" php-fpm.conf
- dodir "/etc/init.d"
- insinto "/etc/init.d"
- newinitd "${FILESDIR}/php-fpm-r${PHP_FPM_INIT_VER}.init" "php-fpm"
- #dosym "${PHP_DESTDIR}/bin/php-fpm" "/usr/bin/php-fpm"
-
- # Remove bogus /etc/php-fpm.conf.default (bug 359906)
- [[ -f "${D}/etc/php-fpm.conf.default" ]] && rm "${D}/etc/php-fpm.conf.default"
- fi
-
- # Install PHP ini files into /usr/share/php
- if [[ ${SLOT} == '5.2' ]]; then
- newdoc php.ini-dist php.ini-development
- newdoc php.ini-recommended php.ini-production
- fi
-
- if [[ ${SLOT} == '5.3' ]]; then
- dodoc php.ini-development
- dodoc php.ini-production
- fi
-
-}
diff --git a/dev-lang/php/files/eblits/src_prepare-v2.eblit b/dev-lang/php/files/eblits/src_prepare-v2.eblit
deleted file mode 100644
index 4caaf525..00000000
--- a/dev-lang/php/files/eblits/src_prepare-v2.eblit
+++ /dev/null
@@ -1,65 +0,0 @@
-# Copyright 1999-2017 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/files/eblits/src_prepare-v2.eblit,v 1.3 2011/01/05 11:23:16 mabi Exp $
-
-eblit-php-src_prepare() {
- # USE=sharedmem (session/mod_mm to be exact) tries to mmap() this path
- # ([empty session.save_path]/session_mm_[sapi][gid].sem)
- # there is no easy way to circumvent that, all php calls during
- # install use -n, so no php.ini file will be used.
- # As such, this is the easiest way to get around
- addpredict /session_mm_cli250.sem
- addpredict /session_mm_cli0.sem
-
- # Change PHP branding
- sed -re "s|^(PHP_EXTRA_VERSION=\").*(\")|\1${PHP_EXTRA_BRANDING}-pl${PR/r/}-gentoo\2|g" \
- -i configure.in || die "Unable to change PHP branding"
-
- # Apply generic PHP patches
- EPATCH_SOURCE="${WORKDIR}/${PV}/generic" EPATCH_SUFFIX="patch" \
- EPATCH_FORCE="yes" \
- EPATCH_MULTI_MSG="Applying generic patches and fixes from upstream..." epatch
-
- # Patch PHP to show Gentoo as the server platform
- sed -e 's/PHP_UNAME=`uname -a | xargs`/PHP_UNAME=`uname -s -n -r -v | xargs`/g' \
- -i configure.in || die "Failed to fix server platform name"
-
- # Prevent PHP from activating the Apache config,
- # as we will do that ourselves
- sed -i \
- -e "s,-i -a -n php${PHP_MV},-i -n php${PHP_MV},g" \
- -e "s,-i -A -n php${PHP_MV},-i -n php${PHP_MV},g" \
- configure sapi/apache2filter/config.m4 sapi/apache2handler/config.m4
-
- # Patch PHP to support heimdal instead of mit-krb5
- if has_version "app-crypt/heimdal" ; then
- sed -e 's|gssapi_krb5|gssapi|g' -i acinclude.m4 \
- || die "Failed to fix heimdal libname"
- sed -e 's|PHP_ADD_LIBRARY(k5crypto, 1, $1)||g' -i acinclude.m4 \
- || die "Failed to fix heimdal crypt library reference"
- fi
-
- # Suhosin support
- if [[ -n $SUHOSIN_VERSION ]] ; then
- if use suhosin ; then
- epatch "${WORKDIR}/${SUHOSIN_PATCH}"
- fi
- else
- ewarn "Please note that this version of PHP does not yet come with a suhosin patch"
- fi
-
-
- # rebuild the whole autotools stuff as we are heavily patching it
- # (suhosin, fastbuild, ...)
-
- # eaclocal doesn't accept --force, so we try to force re-generation
- # this way
- rm aclocal.m4
-
- # work around divert() issues with newer autoconf, bug #281697
- if has_version '>=sys-devel/autoconf-2.64' ; then
- sed -i -r \
- -e 's:^((m4_)?divert)[(]([0-9]*)[)]:\1(600\3):' \
- $(grep -l divert $(find . -name '*.m4') configure.in) || die
- fi
-}
diff --git a/dev-lang/php/metadata.xml b/dev-lang/php/metadata.xml
index b4360002..a661738e 100644
--- a/dev-lang/php/metadata.xml
+++ b/dev-lang/php/metadata.xml
@@ -6,40 +6,22 @@
<name>PHP</name>
</maintainer>
<use>
- <flag name="adabas">Adds support for the Adabas database engine</flag>
- <flag name="birdstep">Adds support for the Birdstep Database Server</flag>
<flag name="cli">Enable CLI SAPI</flag>
- <flag name="db2">Enables support for IBM DB2 database server</flag>
- <flag name="dbase">Adds support for dbase file format</flag>
- <flag name="dbmaker">Adds support for dbmaker database server</flag>
- <flag name="discard-path">Switch on common security setting for CGI SAPI</flag>
<flag name="embed">Enable embed SAPI</flag>
<flag name="enchant">Add supports Enchant spelling library.</flag>
- <flag name="esoob">Adds support for Easysoft OOD database</flag>
<flag name="fileinfo">Add fileinfo extension support</flag>
<flag name="filter">Add filter extension support</flag>
- <flag name="force-cgi-redirect">Switch on common security setting for CGI SAPI</flag>
<flag name="fpm">Enable the FastCGI Process Manager SAPI</flag>
<flag name="gd">Adds support for gd (bundled with PHP)</flag>
- <flag name="gd-external">Use the external version of gd rather than the bundled one (possibly dangerous)</flag>
<flag name="hash">Enable the hash extension</flag>
- <flag name="interbase">Adds support for Interbase database</flag>
<flag name="intl">Enables the intl extension for extended internalization support</flag>
<flag name="json">Enable JSON support</flag>
<flag name="ldap-sasl">Add SASL support for the PHP LDAP extension</flag>
<flag name="libmysqlclient">Use libmyslclient driver for mysql, mysqli, PDO_Mysql (not recommended)</flag>
- <flag name="msql">Adds support for the MSQL database server</flag>
<flag name="mysqlnd">Use native driver for mysql, mysqli, PDO_Mysql</flag>
<flag name="opcache">Enables built-in opcode cache, replacing pecl-apc et.al</flag>
<flag name="pdo">Enable the bundled PDO extensions</flag>
<flag name="phar">Enables the phar extension to provide phar archive support</flag>
- <flag name="pic">Force shared modules to build as PIC on x86 (speed tradeoff with memory usage)</flag>
- <flag name="reflection">Enable the reflection extension (Reflection API) (deprecated: always "on" in php 5.3)</flag>
- <flag name="sapdb">Adds support for SAP DB</flag>
- <flag name="sharedext">Adds support for building shared extensions in PHP</flag>
- <flag name="solid">Adds support for the Solid database engine</flag>
- <flag name="spl">Adds support for the Standard PHP Library (deprecated: always "on" in php 5.3)</flag>
- <flag name="suhosin">Add Suhosin support (patch and extension from http://www.suhosin.org/)</flag>
<flag name="vpx">Enable webp support for GD in php-5.x</flag>
<flag name="xmlreader">Enable XMLReader support</flag>
<flag name="xmlwriter">Enable XMLWriter support</flag>
diff --git a/dev-lang/php/php-5.2.17.ebuild b/dev-lang/php/php-5.2.17.ebuild
deleted file mode 100644
index b3f3f792..00000000
--- a/dev-lang/php/php-5.2.17.ebuild
+++ /dev/null
@@ -1,382 +0,0 @@
-# Copyright 1999-2020 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=2
-
-PHPCONFUTILS_MISSING_DEPS="adabas birdstep db2 dbmaker esoob
-interbase msql oci8 sapdb solid"
-
-inherit autotools eutils flag-o-matic versionator depend.apache apache-module db-use phpconfutils libtool
-
-#SUHOSIN_VERSION="$PV-0.9.7"
-SUHOSIN_VERSION="5.2.16-0.9.7"
-EXPECTED_TEST_FAILURES=""
-
-KEYWORDS="amd64"
-
-function php_get_uri ()
-{
- case "${1}" in
- "php-pre")
- echo "https://downloads.php.net/johannes/${2}"
- ;;
- "php")
- echo "https://museum.php.net/php5/${2}"
- ;;
- "suhosin")
- echo "https://download.suhosin.org/${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_SRC_URI="$(php_get_uri "${PHP_RELEASE}" "${PHP_P}.tar.bz2")"
-
-PHP_PATCHSET="0"
-PHP_PATCHSET_URI="
- $(php_get_uri gentoo "php-patchset-${PV}-r${PHP_PATCHSET}.tar.bz2")"
-
-if [[ ${SUHOSIN_VERSION} == *-gentoo ]]; then
- # in some cases we use our own suhosin patch (very recent version,
- # patch conflicts, etc.)
- SUHOSIN_TYPE="gentoo"
-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, Apache2 and embed SAPIs"
-HOMEPAGE="https://php.net/"
-LICENSE="PHP-3"
-
-# We can build the following SAPIs in the given order
-SAPIS="cli cgi embed apache2"
-
-# Gentoo-specific, common features
-IUSE=""
-
-# SAPIs and SAPI-specific USE flags (cli SAPI is default on):
-IUSE="${IUSE}
- ${SAPIS/cli/+cli}
- threads force-cgi-redirect discard-path"
-
-IUSE="${IUSE} adabas bcmath berkdb birdstep bzip2 calendar cdb cjk
- crypt +ctype curl db2 dbase dbmaker debug doc
- esoob exif +filter
- flatfile ftp gd gd-external gdbm gmp +hash +iconv imap inifile
- interbase iodbc ipv6 +json kerberos ldap ldap-sasl libedit
- mhash msql mssql mysql mysqli ncurses nls oci8
- oci8-instant-client odbc pcntl +pcre pdo pic +posix qdbm
- readline recode reflection sapdb +session sharedext sharedmem
- +simplexml snmp soap sockets solid spell spl sqlite ssl suhosin
- sybase-ct sysvipc tidy +tokenizer truetype unicode wddx
- xml xmlreader xmlwriter xmlrpc xpm zip zlib"
-
-# Enable suhosin if available
-[[ -n $SUHOSIN_VERSION ]] && IUSE="${IUSE} suhosin"
-
-DEPEND=">=app-eselect/eselect-php-0.6.2
- pcre? ( >=dev-libs/libpcre-7.9[unicode] )
- adabas? ( >=dev-db/unixODBC-1.8.13 )
- apache2? ( www-servers/apache[threads=] )
- berkdb? ( =sys-libs/db-4* )
- birdstep? ( >=dev-db/unixODBC-1.8.13 )
- bzip2? ( app-arch/bzip2 )
- cdb? ( || ( dev-db/cdb dev-db/tinycdb ) )
- cjk? ( !gd? ( !gd-external? (
- virtual/jpeg
- media-libs/libpng
- sys-libs/zlib
- ) ) )
- crypt? ( >=dev-libs/libmcrypt-2.4 )
- curl? ( >=net-misc/curl-7.10.5 )
- db2? ( >=dev-db/unixODBC-1.8.13 )
- dbmaker? ( >=dev-db/unixODBC-1.8.13 )
- esoob? ( >=dev-db/unixODBC-1.8.13 )
- exif? ( !gd? ( !gd-external? (
- virtual/jpeg
- media-libs/libpng
- sys-libs/zlib
- ) ) )
- gd? ( virtual/jpeg media-libs/libpng sys-libs/zlib )
- gd-external? ( media-libs/gd )
- gdbm? ( >=sys-libs/gdbm-1.8.0 )
- gmp? ( >=dev-libs/gmp-4.1.2 )
- iconv? ( virtual/libiconv )
- imap? ( virtual/imap-c-client[ssl=] )
- iodbc? ( dev-db/libiodbc )
- kerberos? ( virtual/krb5 )
- ldap? ( !oci8? ( >=net-nds/openldap-1.2.11 ) )
- ldap-sasl? ( !oci8? ( dev-libs/cyrus-sasl >=net-nds/openldap-1.2.11 ) )
- libedit? ( || ( dev-libs/libedit ) )
- mhash? ( app-crypt/mhash )
- mssql? ( dev-db/freetds[mssql] )
- mysql? ( virtual/mysql )
- mysqli? ( >=virtual/mysql-4.1 )
- ncurses? ( sys-libs/ncurses )
- nls? ( sys-devel/gettext )
- oci8-instant-client? ( dev-db/oracle-instantclient-basic )
- odbc? ( >=dev-db/unixODBC-1.8.13 )
- qdbm? ( dev-db/qdbm )
- readline? ( sys-libs/readline )
- recode? ( app-text/recode )
- sapdb? ( >=dev-db/unixODBC-1.8.13 )
- 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 )
- solid? ( >=dev-db/unixODBC-1.8.13 )
- spell? ( >=app-text/aspell-0.50 )
- sqlite? ( =dev-db/sqlite-3* )
- 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? ( !gd-external? (
- virtual/jpeg media-libs/libpng sys-libs/zlib ) )
- )
- 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
- )
- zip? ( sys-libs/zlib )
- zlib? ( sys-libs/zlib )
- virtual/mta
-"
-
-php="=${CATEGORY}/${PF}"
-RDEPEND="${DEPEND}
- truetype? ( || ( $php[gd] $php[gd-external] ) )
- cjk? ( || ( $php[gd] $php[gd-external] ) )
- exif? ( || ( $php[gd] $php[gd-external] ) )
-
- xpm? ( $php[gd] )
- gd? ( $php[zlib,-gd-external] )
- gd-external? ( $php[-gd] )
- simplexml? ( $php[xml] )
- soap? ( $php[xml] )
- wddx? ( $php[xml] )
- xmlrpc? ( || ( $php[xml] $php[iconv] ) )
- xmlreader? ( $php[xml] )
- ldap-sasl? ( $php[ldap,-oci8] )
- suhosin? ( $php[unicode] )
- adabas? ( $php[odbc] )
- birdstep? ( $php[odbc] )
- dbmaker? ( $php[odbc] )
- esoob? ( $php[odbc] )
- db2? ( $php[odbc] )
- sapdb? ( $php[odbc] )
- solid? ( $php[odbc] )
-
- oci8? ( $php[-oci8-instant-client,-ldap-sasl] )
- oci8-instant-client? ( $php[-oci8] )
-
- qdbm? ( $php[-gdbm] )
- readline? ( $php[-libedit] )
- recode? ( $php[-imap,-mysql,-mysqli] )
- sharedmem? ( $php[-threads] )
-
- !cli? ( !cgi? ( !apache2? ( !embed? ( $php[cli] ) ) ) )
-
- filter? ( !dev-php${PHP_MV}/pecl-filter )
- json? ( !dev-php${PHP_MV}/pecl-json )
- zip? ( !dev-php${PHP_MV}/pecl-zip )"
-
-[[ -n $SUHOSIN_VERSION ]] && RDEPEND="${RDEPEND} suhosin? ( $php[unicode] )"
-
-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 )"
-
-SLOT="$(get_version_component_range 1-2)"
-S="${WORKDIR}/${PHP_P}"
-
-# Allow users to install production version if they want to
-# PHP 5.2 has other filenames for prod and dev versions
-
-case "${PHP_INI_VERSION}" in
- production)
- PHP_INI_UPSTREAM="php.ini-recommended"
- ;;
- development)
- PHP_INI_UPSTREAM="php.ini-dist"
- ;;
- *)
- PHP_INI_VERSION="development"
- PHP_INI_UPSTREAM="php.ini-dist"
- ;;
-esac
-
-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 v2
-
-src_prepare() {
- epatch "${FILESDIR}/${PV}/bug-60986-replace-deprecated-pcre_info.diff"
- epatch "${FILESDIR}/${PV}/bug-60986-safer-pcre_fullinfo.diff"
- epatch "${FILESDIR}/${PV}/libxml-2.9.patch"
-
- eblit-run src_prepare v2
- eautoreconf --force -W no-cross
-}
-src_configure() { eblit-run src_configure v521 ; }
-src_compile() { eblit-run src_compile v1 ; }
-src_install() { eblit-run src_install v2 ; }
-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="PHP"
- 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 "https://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-php/suhosin"
- ewarn
- fi
-}
diff --git a/profiles/use.local.desc b/profiles/use.local.desc
index d0359a84..50e7655c 100644
--- a/profiles/use.local.desc
+++ b/profiles/use.local.desc
@@ -2,40 +2,22 @@
# your descriptions to your package's metadata.xml ONLY.
# * generated automatically using egencache *
-dev-lang/php:adabas - Adds support for the Adabas database engine
-dev-lang/php:birdstep - Adds support for the Birdstep Database Server
dev-lang/php:cli - Enable CLI SAPI
-dev-lang/php:db2 - Enables support for IBM DB2 database server
-dev-lang/php:dbase - Adds support for dbase file format
-dev-lang/php:dbmaker - Adds support for dbmaker database server
-dev-lang/php:discard-path - Switch on common security setting for CGI SAPI
dev-lang/php:embed - Enable embed SAPI
dev-lang/php:enchant - Add supports Enchant spelling library.
-dev-lang/php:esoob - Adds support for Easysoft OOD database
dev-lang/php:fileinfo - Add fileinfo extension support
dev-lang/php:filter - Add filter extension support
-dev-lang/php:force-cgi-redirect - Switch on common security setting for CGI SAPI
dev-lang/php:fpm - Enable the FastCGI Process Manager SAPI
dev-lang/php:gd - Adds support for gd (bundled with PHP)
-dev-lang/php:gd-external - Use the external version of gd rather than the bundled one (possibly dangerous)
dev-lang/php:hash - Enable the hash extension
-dev-lang/php:interbase - Adds support for Interbase database
dev-lang/php:intl - Enables the intl extension for extended internalization support
dev-lang/php:json - Enable JSON support
dev-lang/php:ldap-sasl - Add SASL support for the PHP LDAP extension
dev-lang/php:libmysqlclient - Use libmyslclient driver for mysql, mysqli, PDO_Mysql (not recommended)
-dev-lang/php:msql - Adds support for the MSQL database server
dev-lang/php:mysqlnd - Use native driver for mysql, mysqli, PDO_Mysql
dev-lang/php:opcache - Enables built-in opcode cache, replacing pecl-apc et.al
dev-lang/php:pdo - Enable the bundled PDO extensions
dev-lang/php:phar - Enables the phar extension to provide phar archive support
-dev-lang/php:pic - Force shared modules to build as PIC on x86 (speed tradeoff with memory usage)
-dev-lang/php:reflection - Enable the reflection extension (Reflection API) (deprecated: always "on" in php 5.3)
-dev-lang/php:sapdb - Adds support for SAP DB
-dev-lang/php:sharedext - Adds support for building shared extensions in PHP
-dev-lang/php:solid - Adds support for the Solid database engine
-dev-lang/php:spl - Adds support for the Standard PHP Library (deprecated: always "on" in php 5.3)
-dev-lang/php:suhosin - Add Suhosin support (patch and extension from http://www.suhosin.org/)
dev-lang/php:vpx - Enable webp support for GD in php-5.x
dev-lang/php:xmlreader - Enable XMLReader support
dev-lang/php:xmlwriter - Enable XMLWriter support