Gentoo Archives: gentoo-commits

From: Brian Evans <grknight@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lang/php/
Date: Sat, 18 Aug 2018 01:25:04
Message-Id: 1534555464.58ddaac64f92b6925e382bb0142bde3f677bf174.grknight@gentoo
1 commit: 58ddaac64f92b6925e382bb0142bde3f677bf174
2 Author: Brian Evans <grknight <AT> gentoo <DOT> org>
3 AuthorDate: Sat Aug 18 01:24:24 2018 +0000
4 Commit: Brian Evans <grknight <AT> gentoo <DOT> org>
5 CommitDate: Sat Aug 18 01:24:24 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=58ddaac6
7
8 dev-lang/php: Drop old
9
10 Package-Manager: Portage-2.3.47, Repoman-2.3.10
11
12 dev-lang/php/Manifest | 2 -
13 dev-lang/php/php-7.0.29.ebuild | 751 -----------------------------------------
14 dev-lang/php/php-7.1.16.ebuild | 733 ----------------------------------------
15 3 files changed, 1486 deletions(-)
16
17 diff --git a/dev-lang/php/Manifest b/dev-lang/php/Manifest
18 index 2b58a0767ba..386c08048df 100644
19 --- a/dev-lang/php/Manifest
20 +++ b/dev-lang/php/Manifest
21 @@ -1,9 +1,7 @@
22 DIST php-5.6.36.tar.xz 12467560 BLAKE2B 8badaabc668ff3a4b1129f03605a1570729f8196d2e2539fe85bc42a628f2b24ea76c298b194e8466d9218ae98218243430c8d36d73fbd32b042dd6453510361 SHA512 807c68ab85b6685b19707bd18cfd46f3695b2dc67f9f17f85476634e4a80a036cb413ccae05ed5ba529eafe8df57ebf758dd664ed2942ec44f90a6e8b0172e5e
23 DIST php-5.6.37.tar.xz 12467912 BLAKE2B e047a7eabf1279c2c0b1e290596aada5d4551bb23a1d8deae3f57fb613cfdd7ea1044a63f1d296737bda408626f42bef6744e1047617ae13ebfcd070a9d1c8b0 SHA512 1c2e64166b30d9a2dcccd29cf34e2b8ca851827ffda30ab690f41feef7bc7f49194bc79cdd373b4aaf1191779d78469b2a04b2e2215f06865b4f3b983cf9e062
24 -DIST php-7.0.29.tar.xz 12400192 BLAKE2B 0bd1bd9450b87437e539ec5131cb4f7e4dbf76d5fd5212bdf34c4f022dd8f2d357e9a845d83b485d89469e20675c031bcf382a8ca348161dfd082d7a389ffcb2 SHA512 ea5a2fbcfc875dd2621e3f67038c1e00f43b53bc7079ae2127fcefbf116db0f32e34d4435f8211305402a4eccdaa5dfd6b96cf9416e68700f2c1f438d74a0af8
25 DIST php-7.0.30.tar.xz 12030228 BLAKE2B cc4c50d108fca68ee98b70a3007893d912d2343dd255faf52e41c1de04f590f427d9edad7b637177ccf1d9c62212ee6060baca13931c0aa14532df548ef159aa SHA512 1f0914ebda79247aa65ace63f6c8c4fcd850b21a82704f7b6482760259239cc5fee4cfd5aa2ed590b56822b4d69330ac472f46537e7f25d59e73ba63a48827c5
26 DIST php-7.0.31.tar.xz 12029516 BLAKE2B afb3c831b11b3aa4d3660ccef5b97e8282da2ad9362477d79b3beff41ece3321e869aec8de08a999d16b03b23a654f799ba51f60ad727a1baebd373fe0b0f4aa SHA512 be09b810d63d0aa82ec193686f26cb2a76c16064f90a59ae5ade152cff196ece67a7e8bf1e640bf43913309c968c398231384b0b11be2b4429dd4672bcfce43e
27 -DIST php-7.1.16.tar.xz 12211512 BLAKE2B bf242e2438b2dc363368a9ef4478349a291f483477ccedf988abd0fbb78a6f1b31e3b86dcb39ed9a9a8151674a8373ae77d8420e77efd6a2e05d5cfc778ed40f SHA512 98e96f06a4912cfa6926be2f292ce7120ca893c9b779b2efef4120c1df3580fa427cd58f5e4977edb01a0ae3b85660d6ca79b2bd79b6cd830cd77f6c6588b5ea
28 DIST php-7.1.18.tar.xz 12213396 BLAKE2B f851c6eb261b8b532e84e73e6f173deb6ac00cd5168a02db9811843540aeadc390a4c5416eb17749cc950bbb1eda1045f538e2b80e4734ea2c0c4e264776bffb SHA512 7eacbc3b98d8b668c90d5c93030263f47ba2e0d4d7820594662590b8b68670f734a2274ae476e3aeac7e030c4ef10411a80da3523383e87a6757e87597caee90
29 DIST php-7.1.20.tar.xz 12227052 BLAKE2B c9872ffd1f8eb1a51a24d669965b0b908c3d233ad3eac86284e1edf7c6fa5e8099d5706bd1dd740cea039aeac2f66e60f96ccd15f1956eefe5635142b75857f1 SHA512 1f84ba63df45b0d32d704b74217b509807976e88ea953a330c06372491d6ca6e41891cf14bd16524b76f4b2f9007f1243845af7e652917de9325c022135ed9cf
30 DIST php-7.1.21.tar.xz 12227636 BLAKE2B a7451d0f7d8d788ee9d2950170364bdd552dd35bf962b6591618dcda163ea26677c22e26342072b17573182bfd91b7f3f55cade3432c3e9800e36264ba72150a SHA512 92266ae2a1880a497e828ec8972fef6a1c20505a1eb39c77590d9469b2ae047c86d3e84c65871475e36fa3f7e9e872e25aca241b33c3d7ed8fa5dc8d511af2cf
31
32 diff --git a/dev-lang/php/php-7.0.29.ebuild b/dev-lang/php/php-7.0.29.ebuild
33 deleted file mode 100644
34 index 94a37d5d002..00000000000
35 --- a/dev-lang/php/php-7.0.29.ebuild
36 +++ /dev/null
37 @@ -1,751 +0,0 @@
38 -# Copyright 1999-2018 Gentoo Foundation
39 -# Distributed under the terms of the GNU General Public License v2
40 -
41 -EAPI=6
42 -
43 -inherit flag-o-matic eapi7-ver systemd
44 -
45 -DESCRIPTION="The PHP language runtime engine"
46 -HOMEPAGE="https://secure.php.net/"
47 -SRC_URI="https://secure.php.net/distributions/${P}.tar.xz"
48 -
49 -LICENSE="PHP-3.01
50 - BSD
51 - Zend-2.0
52 - bcmath? ( LGPL-2.1+ )
53 - fpm? ( BSD-2 )
54 - gd? ( gd )
55 - unicode? ( BSD-2 LGPL-2.1 )"
56 -
57 -SLOT="$(ver_cut 1-2)"
58 -KEYWORDS="alpha amd64 arm ~arm64 ~hppa ia64 ~mips ppc ppc64 ~s390 ~sh sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
59 -
60 -# We can build the following SAPIs in the given order
61 -SAPIS="embed cli cgi fpm apache2 phpdbg"
62 -
63 -# SAPIs and SAPI-specific USE flags (cli SAPI is default on):
64 -IUSE="${IUSE}
65 - ${SAPIS/cli/+cli}
66 - threads"
67 -
68 -IUSE="${IUSE} acl bcmath berkdb bzip2 calendar cdb cjk
69 - coverage crypt +ctype curl debug
70 - enchant exif +fileinfo +filter firebird
71 - flatfile ftp gd gdbm gmp +hash +iconv imap inifile
72 - intl iodbc ipv6 +json kerberos ldap ldap-sasl libedit libressl
73 - mhash mssql mysql mysqli nls
74 - oci8-instant-client odbc +opcache pcntl pdo +phar +posix postgres qdbm
75 - readline recode selinux +session sharedmem
76 - +simplexml snmp soap sockets spell sqlite ssl
77 - sysvipc systemd tidy +tokenizer truetype unicode wddx webp
78 - +xml xmlreader xmlwriter xmlrpc xpm xslt zip zlib"
79 -
80 -# The supported (that is, autodetected) versions of BDB are listed in
81 -# the ./configure script. Other versions *work*, but we need to stick to
82 -# the ones that can be detected to avoid a repeat of bug #564824.
83 -COMMON_DEPEND="
84 - >=app-eselect/eselect-php-0.9.1[apache2?,fpm?]
85 - >=dev-libs/libpcre-8.32[unicode]
86 - fpm? ( acl? ( sys-apps/acl ) )
87 - apache2? ( || ( >=www-servers/apache-2.4[apache2_modules_unixd,threads=]
88 - <www-servers/apache-2.4[threads=] ) )
89 - berkdb? ( || ( sys-libs/db:5.3
90 - sys-libs/db:5.1
91 - sys-libs/db:4.8
92 - sys-libs/db:4.7
93 - sys-libs/db:4.6
94 - sys-libs/db:4.5 ) )
95 - bzip2? ( app-arch/bzip2:0= )
96 - cdb? ( || ( dev-db/cdb dev-db/tinycdb ) )
97 - cjk? ( !gd? (
98 - virtual/jpeg:0
99 - media-libs/libpng:0=
100 - sys-libs/zlib:0=
101 - ) )
102 - coverage? ( dev-util/lcov )
103 - crypt? ( >=dev-libs/libmcrypt-2.4 )
104 - curl? ( >=net-misc/curl-7.10.5 )
105 - enchant? ( app-text/enchant )
106 - exif? ( !gd? (
107 - virtual/jpeg:0
108 - media-libs/libpng:0=
109 - sys-libs/zlib:0=
110 - ) )
111 - firebird? ( dev-db/firebird )
112 - gd? ( virtual/jpeg:0 media-libs/libpng:0= sys-libs/zlib:0= )
113 - gdbm? ( >=sys-libs/gdbm-1.8.0:0= )
114 - gmp? ( dev-libs/gmp:0= )
115 - iconv? ( virtual/libiconv )
116 - imap? ( virtual/imap-c-client[kerberos=,ssl=] )
117 - intl? ( dev-libs/icu:= )
118 - iodbc? ( dev-db/libiodbc )
119 - kerberos? ( virtual/krb5 )
120 - ldap? ( >=net-nds/openldap-1.2.11 )
121 - ldap-sasl? ( dev-libs/cyrus-sasl >=net-nds/openldap-1.2.11 )
122 - libedit? ( || ( sys-freebsd/freebsd-lib dev-libs/libedit ) )
123 - mssql? ( dev-db/freetds[mssql] )
124 - nls? ( sys-devel/gettext )
125 - oci8-instant-client? ( dev-db/oracle-instantclient-basic )
126 - odbc? ( >=dev-db/unixODBC-1.8.13 )
127 - postgres? ( dev-db/postgresql:* )
128 - qdbm? ( dev-db/qdbm )
129 - readline? ( sys-libs/readline:0= )
130 - recode? ( app-text/recode )
131 - sharedmem? ( dev-libs/mm )
132 - simplexml? ( >=dev-libs/libxml2-2.6.8 )
133 - snmp? ( >=net-analyzer/net-snmp-5.2 )
134 - soap? ( >=dev-libs/libxml2-2.6.8 )
135 - spell? ( >=app-text/aspell-0.50 )
136 - sqlite? ( >=dev-db/sqlite-3.7.6.3 )
137 - ssl? (
138 - !libressl? ( dev-libs/openssl:0= )
139 - libressl? ( dev-libs/libressl:0= )
140 - )
141 - tidy? ( app-text/htmltidy )
142 - truetype? (
143 - =media-libs/freetype-2*
144 - !gd? (
145 - virtual/jpeg:0 media-libs/libpng:0= sys-libs/zlib:0= )
146 - )
147 - unicode? ( dev-libs/oniguruma:= )
148 - wddx? ( >=dev-libs/libxml2-2.6.8 )
149 - webp? ( media-libs/libwebp:0= )
150 - xml? ( >=dev-libs/libxml2-2.6.8 )
151 - xmlrpc? ( >=dev-libs/libxml2-2.6.8 virtual/libiconv )
152 - xmlreader? ( >=dev-libs/libxml2-2.6.8 )
153 - xmlwriter? ( >=dev-libs/libxml2-2.6.8 )
154 - xpm? (
155 - x11-libs/libXpm
156 - virtual/jpeg:0
157 - media-libs/libpng:0= sys-libs/zlib:0=
158 - )
159 - xslt? ( dev-libs/libxslt >=dev-libs/libxml2-2.6.8 )
160 - zip? ( sys-libs/zlib:0= )
161 - zlib? ( sys-libs/zlib:0= )
162 -"
163 -
164 -RDEPEND="${COMMON_DEPEND}
165 - virtual/mta
166 - fpm? (
167 - selinux? ( sec-policy/selinux-phpfpm )
168 - systemd? ( sys-apps/systemd ) )"
169 -
170 -DEPEND="${COMMON_DEPEND}
171 - app-arch/xz-utils
172 - >=sys-devel/bison-3.0.1
173 - sys-devel/flex
174 - >=sys-devel/m4-1.4.3
175 - >=sys-devel/libtool-1.5.18"
176 -
177 -# Without USE=readline or libedit, the interactive "php -a" CLI will hang.
178 -REQUIRED_USE="
179 - || ( cli cgi fpm apache2 embed phpdbg )
180 - cli? ( ^^ ( readline libedit ) )
181 - truetype? ( gd zlib )
182 - webp? ( gd zlib )
183 - cjk? ( gd zlib )
184 - exif? ( gd zlib )
185 - xpm? ( gd zlib )
186 - gd? ( zlib )
187 - simplexml? ( xml )
188 - soap? ( xml )
189 - wddx? ( xml )
190 - xmlrpc? ( || ( xml iconv ) )
191 - xmlreader? ( xml )
192 - xslt? ( xml )
193 - ldap-sasl? ( ldap )
194 - mhash? ( hash )
195 - phar? ( hash )
196 - qdbm? ( !gdbm )
197 - readline? ( !libedit )
198 - recode? ( !imap !mysqli !mysql )
199 - sharedmem? ( !threads )
200 - mysql? ( || ( mysqli pdo ) )
201 -"
202 -
203 -PATCHES=(
204 - "${FILESDIR}/mbstring-oniguruma-6.8.patch"
205 - # hopefully upstream will include the same version check fixes in upcoming releases
206 - # patch added 20180429
207 - "${FILESDIR}/libressl-compatibility.patch"
208 - "${FILESDIR}/php-freetype-2.9.1.patch"
209 -)
210 -
211 -PHP_MV="$(ver_cut 1)"
212 -
213 -php_install_ini() {
214 - local phpsapi="${1}"
215 -
216 - # work out where we are installing the ini file
217 - php_set_ini_dir "${phpsapi}"
218 -
219 - # Always install the production INI file, bug 611214.
220 - local phpinisrc="php.ini-production-${phpsapi}"
221 - cp php.ini-production "${phpinisrc}" || die
222 -
223 - # default to /tmp for save_path, bug #282768
224 - sed -e 's|^;session.save_path .*$|session.save_path = "'"${EPREFIX}"'/tmp"|g' -i "${phpinisrc}" || die
225 -
226 - # Set the extension dir
227 - sed -e "s|^extension_dir .*$|extension_dir = ${extension_dir}|g" \
228 - -i "${phpinisrc}" || die
229 -
230 - # Set the include path to point to where we want to find PEAR packages
231 - sed -e 's|^;include_path = ".:/php/includes".*|include_path = ".:'"${EPREFIX}"'/usr/share/php'${PHP_MV}':'"${EPREFIX}"'/usr/share/php"|' -i "${phpinisrc}" || die
232 -
233 - dodir "${PHP_INI_DIR#${EPREFIX}}"
234 - insinto "${PHP_INI_DIR#${EPREFIX}}"
235 - newins "${phpinisrc}" php.ini
236 -
237 - elog "Installing php.ini for ${phpsapi} into ${PHP_INI_DIR#${EPREFIX}}"
238 - elog
239 -
240 - dodir "${PHP_EXT_INI_DIR#${EPREFIX}}"
241 - dodir "${PHP_EXT_INI_DIR_ACTIVE#${EPREFIX}}"
242 -
243 - if use opcache; then
244 - elog "Adding opcache to $PHP_EXT_INI_DIR"
245 - echo "zend_extension=${PHP_DESTDIR}/$(get_libdir)/opcache.so" >> \
246 - "${D}/${PHP_EXT_INI_DIR}"/opcache.ini
247 - dosym "${PHP_EXT_INI_DIR#${EPREFIX}}/opcache.ini" \
248 - "${PHP_EXT_INI_DIR_ACTIVE#${EPREFIX}}/opcache.ini"
249 - fi
250 -
251 - # SAPI-specific handling
252 - if [[ "${sapi}" == "fpm" ]] ; then
253 - einfo "Installing FPM config files php-fpm.conf and www.conf"
254 - insinto "${PHP_INI_DIR#${EPREFIX}}"
255 - doins sapi/fpm/php-fpm.conf
256 - insinto "${PHP_INI_DIR#${EPREFIX}}/fpm.d"
257 - doins sapi/fpm/www.conf
258 - fi
259 -
260 - dodoc php.ini-{development,production}
261 -}
262 -
263 -php_set_ini_dir() {
264 - PHP_INI_DIR="${EPREFIX}/etc/php/${1}-php${SLOT}"
265 - PHP_EXT_INI_DIR="${PHP_INI_DIR}/ext"
266 - PHP_EXT_INI_DIR_ACTIVE="${PHP_INI_DIR}/ext-active"
267 -}
268 -
269 -src_prepare() {
270 - default
271 -
272 - # In php-7.x, the FPM pool configuration files have been split off
273 - # of the main config. By default the pool config files go in
274 - # e.g. /etc/php-fpm.d, which isn't slotted. So here we move the
275 - # include directory to a subdirectory "fpm.d" of $PHP_INI_DIR. Later
276 - # we'll install the pool configuration file "www.conf" there.
277 - php_set_ini_dir fpm
278 - sed -i "s~^include=.*$~include=${PHP_INI_DIR}/fpm.d/*.conf~" \
279 - sapi/fpm/php-fpm.conf.in \
280 - || die 'failed to move the include directory in php-fpm.conf'
281 -}
282 -
283 -src_configure() {
284 - addpredict /usr/share/snmp/mibs/.index #nowarn
285 - addpredict /var/lib/net-snmp/mib_indexes #nowarn
286 -
287 - PHP_DESTDIR="${EPREFIX}/usr/$(get_libdir)/php${SLOT}"
288 -
289 - # The php-fpm config file wants localstatedir to be ${EPREFIX}/var
290 - # and not the Gentoo default ${EPREFIX}/var/lib. See bug 572002.
291 - local our_conf=(
292 - --prefix="${PHP_DESTDIR}"
293 - --mandir="${PHP_DESTDIR}/man"
294 - --infodir="${PHP_DESTDIR}/info"
295 - --libdir="${PHP_DESTDIR}/lib"
296 - --with-libdir="$(get_libdir)"
297 - --localstatedir="${EPREFIX}/var"
298 - --without-pear
299 - $(use_enable threads maintainer-zts)
300 - )
301 -
302 - our_conf+=(
303 - $(use_enable bcmath bcmath)
304 - $(use_with bzip2 bz2 "${EPREFIX}/usr")
305 - $(use_enable calendar calendar)
306 - $(use_enable coverage gcov)
307 - $(use_enable ctype ctype)
308 - $(use_with curl curl "${EPREFIX}/usr")
309 - $(use_enable xml dom)
310 - $(use_with enchant enchant "${EPREFIX}/usr")
311 - $(use_enable exif exif)
312 - $(use_enable fileinfo fileinfo)
313 - $(use_enable filter filter)
314 - $(use_enable ftp ftp)
315 - $(use_with nls gettext "${EPREFIX}/usr")
316 - $(use_with gmp gmp "${EPREFIX}/usr")
317 - $(use_enable hash hash)
318 - $(use_with mhash mhash "${EPREFIX}/usr")
319 - $(use_with iconv iconv \
320 - $(use elibc_glibc || use elibc_musl || use elibc_FreeBSD || echo "${EPREFIX}/usr"))
321 - $(use_enable intl intl)
322 - $(use_enable ipv6 ipv6)
323 - $(use_enable json json)
324 - $(use_with kerberos kerberos "${EPREFIX}/usr")
325 - $(use_enable xml libxml)
326 - $(use_with xml libxml-dir "${EPREFIX}/usr")
327 - $(use_enable unicode mbstring)
328 - $(use_with crypt mcrypt "${EPREFIX}/usr")
329 - $(use_with unicode onig "${EPREFIX}/usr")
330 - $(use_with ssl openssl "${EPREFIX}/usr")
331 - $(use_with ssl openssl-dir "${EPREFIX}/usr")
332 - $(use_enable pcntl pcntl)
333 - $(use_enable phar phar)
334 - $(use_enable pdo pdo)
335 - $(use_enable opcache opcache)
336 - $(use_with postgres pgsql "${EPREFIX}/usr")
337 - $(use_enable posix posix)
338 - $(use_with spell pspell "${EPREFIX}/usr")
339 - $(use_with recode recode "${EPREFIX}/usr")
340 - $(use_enable simplexml simplexml)
341 - $(use_enable sharedmem shmop)
342 - $(use_with snmp snmp "${EPREFIX}/usr")
343 - $(use_enable soap soap)
344 - $(use_enable sockets sockets)
345 - $(use_with sqlite sqlite3 "${EPREFIX}/usr")
346 - $(use_enable sysvipc sysvmsg)
347 - $(use_enable sysvipc sysvsem)
348 - $(use_enable sysvipc sysvshm)
349 - $(use_with tidy tidy "${EPREFIX}/usr")
350 - $(use_enable tokenizer tokenizer)
351 - $(use_enable wddx wddx)
352 - $(use_enable xml xml)
353 - $(use_enable xmlreader xmlreader)
354 - $(use_enable xmlwriter xmlwriter)
355 - $(use_with xmlrpc xmlrpc)
356 - $(use_with xslt xsl "${EPREFIX}/usr")
357 - $(use_enable zip zip)
358 - $(use_with zlib zlib "${EPREFIX}/usr")
359 - $(use_enable debug debug)
360 - )
361 -
362 - # DBA support
363 - if use cdb || use berkdb || use flatfile || use gdbm || use inifile \
364 - || use qdbm ; then
365 - our_conf+=( "--enable-dba${shared}" )
366 - fi
367 -
368 - # DBA drivers support
369 - our_conf+=(
370 - $(use_with cdb cdb)
371 - $(use_with berkdb db4 "${EPREFIX}/usr")
372 - $(use_enable flatfile flatfile)
373 - $(use_with gdbm gdbm "${EPREFIX}/usr")
374 - $(use_enable inifile inifile)
375 - $(use_with qdbm qdbm "${EPREFIX}/usr")
376 - )
377 -
378 - # Support for the GD graphics library
379 - our_conf+=(
380 - $(use_with truetype freetype-dir "${EPREFIX}/usr")
381 - $(use_enable cjk gd-jis-conv)
382 - $(use_with gd jpeg-dir "${EPREFIX}/usr")
383 - $(use_with gd png-dir "${EPREFIX}/usr")
384 - $(use_with xpm xpm-dir "${EPREFIX}/usr")
385 - )
386 - if use webp; then
387 - our_conf+=( --with-webp-dir="${EPREFIX}/usr" )
388 - fi
389 - # enable gd last, so configure can pick up the previous settings
390 - our_conf+=( $(use_with gd gd) )
391 -
392 - # IMAP support
393 - if use imap ; then
394 - our_conf+=(
395 - $(use_with imap imap "${EPREFIX}/usr")
396 - $(use_with ssl imap-ssl "${EPREFIX}/usr")
397 - )
398 - fi
399 -
400 - # Interbase/firebird support
401 - our_conf+=( $(use_with firebird interbase "${EPREFIX}/usr") )
402 -
403 - # LDAP support
404 - if use ldap ; then
405 - our_conf+=(
406 - $(use_with ldap ldap "${EPREFIX}/usr")
407 - $(use_with ldap-sasl ldap-sasl "${EPREFIX}/usr")
408 - )
409 - fi
410 -
411 - # MySQL support
412 - local mysqllib="mysqlnd"
413 - local mysqlilib="mysqlnd"
414 -
415 - our_conf+=( $(use_with mysqli mysqli "${mysqlilib}") )
416 -
417 - local mysqlsock="${EPREFIX}/var/run/mysqld/mysqld.sock"
418 - if use mysql || use mysqli ; then
419 - our_conf+=( $(use_with mysql mysql-sock "${mysqlsock}") )
420 - fi
421 -
422 - # ODBC support
423 - our_conf+=(
424 - $(use_with odbc unixODBC "${EPREFIX}/usr")
425 - $(use_with iodbc iodbc "${EPREFIX}/usr")
426 - )
427 -
428 - # Oracle support
429 - our_conf+=( $(use_with oci8-instant-client oci8) )
430 -
431 - # PDO support
432 - if use pdo ; then
433 - our_conf+=(
434 - $(use_with mssql pdo-dblib "${EPREFIX}/usr")
435 - $(use_with mysql pdo-mysql "${mysqllib}")
436 - $(use_with postgres pdo-pgsql)
437 - $(use_with sqlite pdo-sqlite "${EPREFIX}/usr")
438 - $(use_with firebird pdo-firebird "${EPREFIX}/usr")
439 - $(use_with odbc pdo-odbc "unixODBC,${EPREFIX}/usr")
440 - $(use_with oci8-instant-client pdo-oci)
441 - )
442 - fi
443 -
444 - # readline/libedit support
445 - our_conf+=(
446 - $(use_with readline readline "${EPREFIX}/usr")
447 - $(use_with libedit libedit "${EPREFIX}/usr")
448 - )
449 -
450 - # Session support
451 - if use session ; then
452 - our_conf+=( $(use_with sharedmem mm "${EPREFIX}/usr") )
453 - else
454 - our_conf+=( $(use_enable session session) )
455 - fi
456 -
457 - # Use pic for shared modules such as apache2's mod_php
458 - our_conf+=( --with-pic )
459 -
460 - # we use the system copy of pcre
461 - # --with-pcre-regex affects ext/pcre
462 - # --with-pcre-dir affects ext/filter and ext/zip
463 - our_conf+=(
464 - --with-pcre-regex="${EPREFIX}/usr"
465 - --with-pcre-dir="${EPREFIX}/usr"
466 - )
467 -
468 - # Catch CFLAGS problems
469 - # Fixes bug #14067.
470 - # Changed order to run it in reverse for bug #32022 and #12021.
471 - replace-cpu-flags "k6*" "i586"
472 -
473 - # Cache the ./configure test results between SAPIs.
474 - our_conf+=( --cache-file="${T}/config.cache" )
475 -
476 - # Support user-passed configuration parameters
477 - our_conf+=( ${EXTRA_ECONF:-} )
478 -
479 - # Support the Apache2 extras, they must be set globally for all
480 - # SAPIs to work correctly, especially for external PHP extensions
481 -
482 - mkdir -p "${WORKDIR}/sapis-build" || die
483 - for one_sapi in $SAPIS ; do
484 - use "${one_sapi}" || continue
485 - php_set_ini_dir "${one_sapi}"
486 -
487 - # The BUILD_DIR variable is used to determine where to output
488 - # the files that autotools creates. This was all originally
489 - # based on the autotools-utils eclass.
490 - BUILD_DIR="${WORKDIR}/sapis-build/${one_sapi}"
491 - cp -a "${S}" "${BUILD_DIR}" || die
492 - cd "${BUILD_DIR}" || die
493 -
494 - local sapi_conf=(
495 - --with-config-file-path="${PHP_INI_DIR}"
496 - --with-config-file-scan-dir="${PHP_EXT_INI_DIR_ACTIVE}"
497 - )
498 -
499 - for sapi in $SAPIS ; do
500 - case "$sapi" in
501 - cli|cgi|embed|fpm|phpdbg)
502 - if [[ "${one_sapi}" == "${sapi}" ]] ; then
503 - sapi_conf+=( "--enable-${sapi}" )
504 - if [[ "fpm" == "${sapi}" ]] ; then
505 - sapi_conf+=(
506 - $(use_with acl fpm-acl)
507 - $(use_with systemd fpm-systemd)
508 - )
509 - fi
510 - else
511 - sapi_conf+=( "--disable-${sapi}" )
512 - fi
513 - ;;
514 -
515 - apache2)
516 - if [[ "${one_sapi}" == "${sapi}" ]] ; then
517 - sapi_conf+=( --with-apxs2="${EPREFIX}/usr/bin/apxs" )
518 - else
519 - sapi_conf+=( --without-apxs2 )
520 - fi
521 - ;;
522 - esac
523 - done
524 -
525 - # Construct the $myeconfargs array by concatenating $our_conf
526 - # (the common args) and $sapi_conf (the SAPI-specific args).
527 - local myeconfargs=( "${our_conf[@]}" )
528 - myeconfargs+=( "${sapi_conf[@]}" )
529 -
530 - pushd "${BUILD_DIR}" > /dev/null || die
531 - econf "${myeconfargs[@]}"
532 - popd > /dev/null || die
533 - done
534 -}
535 -
536 -src_compile() {
537 - # snmp seems to run during src_compile, too (bug #324739)
538 - addpredict /usr/share/snmp/mibs/.index #nowarn
539 - addpredict /var/lib/net-snmp/mib_indexes #nowarn
540 -
541 - for sapi in ${SAPIS} ; do
542 - if use "${sapi}"; then
543 - cd "${WORKDIR}/sapis-build/$sapi" || \
544 - die "Failed to change dir to ${WORKDIR}/sapis-build/$1"
545 - emake
546 - fi
547 - done
548 -}
549 -
550 -src_install() {
551 - # see bug #324739 for what happens when we don't have that
552 - addpredict /usr/share/snmp/mibs/.index #nowarn
553 -
554 - # grab the first SAPI that got built and install common files from there
555 - local first_sapi=""
556 - for sapi in $SAPIS ; do
557 - if use $sapi ; then
558 - first_sapi=$sapi
559 - break
560 - fi
561 - done
562 -
563 - # Makefile forgets to create this before trying to write to it...
564 - dodir "${PHP_DESTDIR#${EPREFIX}}/bin"
565 -
566 - # Install php environment (without any sapis)
567 - cd "${WORKDIR}/sapis-build/$first_sapi" || die
568 - emake INSTALL_ROOT="${D}" \
569 - install-build install-headers install-programs
570 -
571 - local extension_dir="$("${ED}/${PHP_DESTDIR#${EPREFIX}}/bin/php-config" --extension-dir)"
572 -
573 - # Create the directory where we'll put version-specific php scripts
574 - keepdir "/usr/share/php${PHP_MV}"
575 -
576 - local sapi="", file=""
577 - local sapi_list=""
578 -
579 - for sapi in ${SAPIS}; do
580 - if use "${sapi}" ; then
581 - einfo "Installing SAPI: ${sapi}"
582 - cd "${WORKDIR}/sapis-build/${sapi}" || die
583 -
584 - if [[ "${sapi}" == "apache2" ]] ; then
585 - # We're specifically not using emake install-sapi as libtool
586 - # may cause unnecessary relink failures (see bug #351266)
587 - insinto "${PHP_DESTDIR#${EPREFIX}}/apache2/"
588 - newins ".libs/libphp${PHP_MV}$(get_libname)" \
589 - "libphp${PHP_MV}$(get_libname)"
590 - keepdir "/usr/$(get_libdir)/apache2/modules"
591 - else
592 - # needed each time, php_install_ini would reset it
593 - local dest="${PHP_DESTDIR#${EPREFIX}}"
594 - into "${dest}"
595 - case "$sapi" in
596 - cli)
597 - source="sapi/cli/php"
598 - ;;
599 - cgi)
600 - source="sapi/cgi/php-cgi"
601 - ;;
602 - fpm)
603 - source="sapi/fpm/php-fpm"
604 - ;;
605 - embed)
606 - source="libs/libphp${PHP_MV}$(get_libname)"
607 - ;;
608 - phpdbg)
609 - source="sapi/phpdbg/phpdbg"
610 - ;;
611 - *)
612 - die "unhandled sapi in src_install"
613 - ;;
614 - esac
615 -
616 - if [[ "${source}" == *"$(get_libname)" ]]; then
617 - dolib.so "${source}"
618 - else
619 - dobin "${source}"
620 - local name="$(basename ${source})"
621 - dosym "${dest}/bin/${name}" "/usr/bin/${name}${SLOT}"
622 - fi
623 - fi
624 -
625 - php_install_ini "${sapi}"
626 -
627 - # construct correct SAPI string for php-config
628 - # thanks to ferringb for the bash voodoo
629 - if [[ "${sapi}" == "apache2" ]]; then
630 - sapi_list="${sapi_list:+${sapi_list} }apache2handler"
631 - else
632 - sapi_list="${sapi_list:+${sapi_list} }${sapi}"
633 - fi
634 - fi
635 - done
636 -
637 - # Installing opcache module
638 - if use opcache ; then
639 - into "${PHP_DESTDIR#${EPREFIX}}"
640 - dolib.so "modules/opcache$(get_libname)"
641 - fi
642 -
643 - # Install env.d files
644 - newenvd "${FILESDIR}/20php5-envd" "20php${SLOT}"
645 - sed -e "s|/lib/|/$(get_libdir)/|g" -i "${ED}/etc/env.d/20php${SLOT}" || die
646 - sed -e "s|php5|php${SLOT}|g" -i "${ED}/etc/env.d/20php${SLOT}" || die
647 -
648 - # set php-config variable correctly (bug #278439)
649 - sed -e "s:^\(php_sapis=\)\".*\"$:\1\"${sapi_list}\":" -i \
650 - "${ED}/usr/$(get_libdir)/php${SLOT}/bin/php-config" || die
651 -
652 - if use fpm ; then
653 - if use systemd; then
654 - systemd_newunit "${FILESDIR}/php-fpm_at.service" \
655 - "php-fpm@${SLOT}.service"
656 - else
657 - systemd_newunit "${FILESDIR}/php-fpm_at-simple.service" \
658 - "php-fpm@${SLOT}.service"
659 - fi
660 - fi
661 -}
662 -
663 -src_test() {
664 - echo ">>> Test phase [test]: ${CATEGORY}/${PF}"
665 - PHP_BIN="${WORKDIR}/sapis-build/cli/sapi/cli/php"
666 - if [[ ! -x "${PHP_BIN}" ]] ; then
667 - ewarn "Test phase requires USE=cli, skipping"
668 - return
669 - else
670 - export TEST_PHP_EXECUTABLE="${PHP_BIN}"
671 - fi
672 -
673 - if [[ -x "${WORKDIR}/sapis-build/cgi/sapi/cgi/php-cgi" ]] ; then
674 - export TEST_PHP_CGI_EXECUTABLE="${WORKDIR}/sapis-build/cgi/sapi/cgi/php-cgi"
675 - fi
676 -
677 - if [[ -x "${WORKDIR}/sapis-build/phpdbg/sapi/phpdbg/phpdbg" ]] ; then
678 - export TEST_PHPDBG_EXECUTABLE="${WORKDIR}/sapis-build/phpdbg/sapi/phpdbg/phpdbg"
679 - fi
680 -
681 - REPORT_EXIT_STATUS=1 "${TEST_PHP_EXECUTABLE}" -n -d \
682 - "session.save_path=${T}" \
683 - "${WORKDIR}/sapis-build/cli/run-tests.php" -n -q -d \
684 - "session.save_path=${T}"
685 -
686 - for name in ${EXPECTED_TEST_FAILURES}; do
687 - mv "${name}.out" "${name}.out.orig" 2>/dev/null || die
688 - done
689 -
690 - local failed="$(find -name '*.out')"
691 - if [[ ${failed} != "" ]] ; then
692 - ewarn "The following test cases failed unexpectedly:"
693 - for name in ${failed}; do
694 - ewarn " ${name/.out/}"
695 - done
696 - else
697 - einfo "No unexpected test failures, all fine"
698 - fi
699 -
700 - if [[ ${PHP_SHOW_UNEXPECTED_TEST_PASS} == "1" ]] ; then
701 - local passed=""
702 - for name in ${EXPECTED_TEST_FAILURES}; do
703 - [[ -f "${name}.diff" ]] && continue
704 - passed="${passed} ${name}"
705 - done
706 - if [[ ${passed} != "" ]] ; then
707 - einfo "The following test cases passed unexpectedly:"
708 - for name in ${passed}; do
709 - ewarn " ${passed}"
710 - done
711 - else
712 - einfo "None of the known-to-fail tests passed, all fine"
713 - fi
714 - fi
715 -}
716 -
717 -pkg_postinst() {
718 - # Output some general info to the user
719 - if use apache2 ; then
720 - elog
721 - elog "To enable PHP in apache, you will need to add \"-D PHP\" to"
722 - elog "your apache2 command. OpenRC users can append that string to"
723 - elog "APACHE2_OPTS in /etc/conf.d/apache2."
724 - elog
725 - elog "The apache module configuration file 70_mod_php.conf is"
726 - elog "provided (and maintained) by eselect-php."
727 - elog
728 - fi
729 -
730 - # Create the symlinks for php
731 - for m in ${SAPIS}; do
732 - [[ ${m} == 'embed' ]] && continue;
733 - if use $m ; then
734 - local ci=$(eselect php show $m)
735 - if [[ -z $ci ]]; then
736 - eselect php set $m php${SLOT} || die
737 - einfo "Switched ${m} to use php:${SLOT}"
738 - einfo
739 - elif [[ $ci != "php${SLOT}" ]] ; then
740 - elog "To switch $m to use php:${SLOT}, run"
741 - elog " eselect php set $m php${SLOT}"
742 - elog
743 - fi
744 - fi
745 - done
746 -
747 - # Remove dead symlinks for SAPIs that were just disabled. For
748 - # example, if the user has the cgi SAPI enabled, then he has an
749 - # eselect-php symlink for it. If he later reinstalls PHP with
750 - # USE="-cgi", that symlink will break. This call to eselect is
751 - # supposed to remove that dead link per bug 572436.
752 - eselect php cleanup || die
753 -
754 - if ! has "php${SLOT/./-}" ${PHP_TARGETS}; then
755 - elog "To build extensions for this version of PHP, you will need to"
756 - elog "add php${SLOT/./-} to your PHP_TARGETS USE_EXPAND variable."
757 - elog
758 - fi
759 -
760 - # Warn about the removal of PHP_INI_VERSION if the user has it set.
761 - if [[ -n "${PHP_INI_VERSION}" ]]; then
762 - ewarn 'The PHP_INI_VERSION variable has been phased out. You may'
763 - ewarn 'remove it from your configuration at your convenience. See'
764 - ewarn
765 - ewarn ' https://bugs.gentoo.org/611214'
766 - ewarn
767 - ewarn 'for more information.'
768 - fi
769 -
770 - elog "For details on how version slotting works, please see"
771 - elog "the wiki:"
772 - elog
773 - elog " https://wiki.gentoo.org/wiki/PHP"
774 - elog
775 -}
776 -
777 -pkg_postrm() {
778 - # This serves two purposes. First, if we have just removed the last
779 - # installed version of PHP, then this will remove any dead symlinks
780 - # belonging to eselect-php. Second, if a user upgrades slots from
781 - # (say) 5.6 to 7.0 and depcleans the old slot, then this will update
782 - # his existing symlinks to point to the new 7.0 installation. The
783 - # latter is bug 432962.
784 - #
785 - # Note: the eselect-php package may not be installed at this point,
786 - # so we can't die() if this command fails.
787 - eselect php cleanup
788 -}
789
790 diff --git a/dev-lang/php/php-7.1.16.ebuild b/dev-lang/php/php-7.1.16.ebuild
791 deleted file mode 100644
792 index 4acba555659..00000000000
793 --- a/dev-lang/php/php-7.1.16.ebuild
794 +++ /dev/null
795 @@ -1,733 +0,0 @@
796 -# Copyright 1999-2018 Gentoo Foundation
797 -# Distributed under the terms of the GNU General Public License v2
798 -
799 -EAPI=6
800 -
801 -inherit flag-o-matic eapi7-ver systemd
802 -
803 -DESCRIPTION="The PHP language runtime engine"
804 -HOMEPAGE="https://secure.php.net/"
805 -SRC_URI="https://secure.php.net/distributions/${P}.tar.xz"
806 -
807 -LICENSE="PHP-3.01
808 - BSD
809 - Zend-2.0
810 - bcmath? ( LGPL-2.1+ )
811 - fpm? ( BSD-2 )
812 - gd? ( gd )
813 - unicode? ( BSD-2 LGPL-2.1 )"
814 -
815 -SLOT="$(ver_cut 1-2)"
816 -KEYWORDS="alpha amd64 arm ~arm64 ~hppa ia64 ~mips ppc ppc64 ~s390 ~sh sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
817 -
818 -# We can build the following SAPIs in the given order
819 -SAPIS="embed cli cgi fpm apache2 phpdbg"
820 -
821 -# SAPIs and SAPI-specific USE flags (cli SAPI is default on):
822 -IUSE="${IUSE}
823 - ${SAPIS/cli/+cli}
824 - threads"
825 -
826 -IUSE="${IUSE} acl bcmath berkdb bzip2 calendar cdb cjk
827 - coverage crypt +ctype curl debug
828 - enchant exif +fileinfo +filter firebird
829 - flatfile ftp gd gdbm gmp +hash +iconv imap inifile
830 - intl iodbc ipv6 +json kerberos ldap ldap-sasl libedit libressl
831 - mhash mssql mysql mysqli nls
832 - oci8-instant-client odbc +opcache pcntl pdo +phar +posix postgres qdbm
833 - readline recode selinux +session session-mm sharedmem
834 - +simplexml snmp soap sockets spell sqlite ssl
835 - sysvipc systemd test tidy +tokenizer truetype unicode wddx webp
836 - +xml xmlreader xmlwriter xmlrpc xpm xslt zip zlib"
837 -
838 -# The supported (that is, autodetected) versions of BDB are listed in
839 -# the ./configure script. Other versions *work*, but we need to stick to
840 -# the ones that can be detected to avoid a repeat of bug #564824.
841 -COMMON_DEPEND="
842 - >=app-eselect/eselect-php-0.9.1[apache2?,fpm?]
843 - >=dev-libs/libpcre-8.32[unicode]
844 - fpm? ( acl? ( sys-apps/acl ) )
845 - apache2? ( || ( >=www-servers/apache-2.4[apache2_modules_unixd,threads=]
846 - <www-servers/apache-2.4[threads=] ) )
847 - berkdb? ( || ( sys-libs/db:5.3
848 - sys-libs/db:5.1
849 - sys-libs/db:4.8
850 - sys-libs/db:4.7
851 - sys-libs/db:4.6
852 - sys-libs/db:4.5 ) )
853 - bzip2? ( app-arch/bzip2:0= )
854 - cdb? ( || ( dev-db/cdb dev-db/tinycdb ) )
855 - coverage? ( dev-util/lcov )
856 - crypt? ( >=dev-libs/libmcrypt-2.4 )
857 - curl? ( >=net-misc/curl-7.10.5 )
858 - enchant? ( app-text/enchant )
859 - firebird? ( dev-db/firebird )
860 - gd? ( virtual/jpeg:0 media-libs/libpng:0= sys-libs/zlib )
861 - gdbm? ( >=sys-libs/gdbm-1.8.0:0= )
862 - gmp? ( dev-libs/gmp:0= )
863 - iconv? ( virtual/libiconv )
864 - imap? ( virtual/imap-c-client[kerberos=,ssl=] )
865 - intl? ( dev-libs/icu:= )
866 - iodbc? ( dev-db/libiodbc )
867 - kerberos? ( virtual/krb5 )
868 - ldap? ( >=net-nds/openldap-1.2.11 )
869 - ldap-sasl? ( dev-libs/cyrus-sasl >=net-nds/openldap-1.2.11 )
870 - libedit? ( || ( sys-freebsd/freebsd-lib dev-libs/libedit ) )
871 - mssql? ( dev-db/freetds[mssql] )
872 - nls? ( sys-devel/gettext )
873 - oci8-instant-client? ( dev-db/oracle-instantclient-basic )
874 - odbc? ( >=dev-db/unixODBC-1.8.13 )
875 - postgres? ( dev-db/postgresql:* )
876 - qdbm? ( dev-db/qdbm )
877 - readline? ( sys-libs/readline:0= )
878 - recode? ( app-text/recode )
879 - session-mm? ( dev-libs/mm )
880 - simplexml? ( >=dev-libs/libxml2-2.6.8 )
881 - snmp? ( >=net-analyzer/net-snmp-5.2 )
882 - soap? ( >=dev-libs/libxml2-2.6.8 )
883 - spell? ( >=app-text/aspell-0.50 )
884 - sqlite? ( >=dev-db/sqlite-3.7.6.3 )
885 - ssl? (
886 - !libressl? ( dev-libs/openssl:0= )
887 - libressl? ( dev-libs/libressl:0= )
888 - )
889 - tidy? ( || ( app-text/tidy-html5 app-text/htmltidy ) )
890 - truetype? ( =media-libs/freetype-2* )
891 - unicode? ( dev-libs/oniguruma:= )
892 - wddx? ( >=dev-libs/libxml2-2.6.8 )
893 - webp? ( media-libs/libwebp:0= )
894 - xml? ( >=dev-libs/libxml2-2.6.8 )
895 - xmlrpc? ( >=dev-libs/libxml2-2.6.8 virtual/libiconv )
896 - xmlreader? ( >=dev-libs/libxml2-2.6.8 )
897 - xmlwriter? ( >=dev-libs/libxml2-2.6.8 )
898 - xpm? ( x11-libs/libXpm )
899 - xslt? ( dev-libs/libxslt >=dev-libs/libxml2-2.6.8 )
900 - zip? ( sys-libs/zlib:0= )
901 - zlib? ( sys-libs/zlib:0= )
902 -"
903 -
904 -RDEPEND="${COMMON_DEPEND}
905 - virtual/mta
906 - fpm? (
907 - selinux? ( sec-policy/selinux-phpfpm )
908 - systemd? ( sys-apps/systemd ) )"
909 -
910 -# Bison isn't actually needed when building from a release tarball
911 -# However, the configure script will warn if it's absent or if you
912 -# have an incompatible version installed. See bug 593278.
913 -DEPEND="${COMMON_DEPEND}
914 - app-arch/xz-utils
915 - >=sys-devel/bison-3.0.1"
916 -
917 -# Without USE=readline or libedit, the interactive "php -a" CLI will hang.
918 -REQUIRED_USE="
919 - || ( cli cgi fpm apache2 embed phpdbg )
920 - cli? ( ^^ ( readline libedit ) )
921 - truetype? ( gd zlib )
922 - webp? ( gd zlib )
923 - cjk? ( gd zlib )
924 - exif? ( gd zlib )
925 - xpm? ( gd zlib )
926 - gd? ( zlib )
927 - simplexml? ( xml )
928 - soap? ( xml )
929 - wddx? ( xml )
930 - xmlrpc? ( || ( xml iconv ) )
931 - xmlreader? ( xml )
932 - xslt? ( xml )
933 - ldap-sasl? ( ldap )
934 - mhash? ( hash )
935 - phar? ( hash )
936 - qdbm? ( !gdbm )
937 - readline? ( !libedit )
938 - recode? ( !imap !mysqli !mysql )
939 - session-mm? ( session !threads )
940 - mysql? ( || ( mysqli pdo ) )
941 -"
942 -
943 -PATCHES=(
944 - "${FILESDIR}/mbstring-oniguruma-6.8.patch"
945 - # hopefully upstream will include the same version check fixes in upcoming releases
946 - # patch added 20180429
947 - "${FILESDIR}/libressl-compatibility.patch"
948 - "${FILESDIR}/php-freetype-2.9.1.patch"
949 -)
950 -
951 -PHP_MV="$(ver_cut 1)"
952 -
953 -php_install_ini() {
954 - local phpsapi="${1}"
955 -
956 - # work out where we are installing the ini file
957 - php_set_ini_dir "${phpsapi}"
958 -
959 - # Always install the production INI file, bug 611214.
960 - local phpinisrc="php.ini-production-${phpsapi}"
961 - cp php.ini-production "${phpinisrc}" || die
962 -
963 - # default to /tmp for save_path, bug #282768
964 - sed -e 's|^;session.save_path .*$|session.save_path = "'"${EPREFIX}"'/tmp"|g' -i "${phpinisrc}" || die
965 -
966 - # Set the extension dir
967 - sed -e "s|^extension_dir .*$|extension_dir = ${extension_dir}|g" \
968 - -i "${phpinisrc}" || die
969 -
970 - # Set the include path to point to where we want to find PEAR packages
971 - sed -e 's|^;include_path = ".:/php/includes".*|include_path = ".:'"${EPREFIX}"'/usr/share/php'${PHP_MV}':'"${EPREFIX}"'/usr/share/php"|' -i "${phpinisrc}" || die
972 -
973 - dodir "${PHP_INI_DIR#${EPREFIX}}"
974 - insinto "${PHP_INI_DIR#${EPREFIX}}"
975 - newins "${phpinisrc}" php.ini
976 -
977 - elog "Installing php.ini for ${phpsapi} into ${PHP_INI_DIR#${EPREFIX}}"
978 - elog
979 -
980 - dodir "${PHP_EXT_INI_DIR#${EPREFIX}}"
981 - dodir "${PHP_EXT_INI_DIR_ACTIVE#${EPREFIX}}"
982 -
983 - if use opcache; then
984 - elog "Adding opcache to $PHP_EXT_INI_DIR"
985 - echo "zend_extension=${PHP_DESTDIR}/$(get_libdir)/opcache.so" >> \
986 - "${D}/${PHP_EXT_INI_DIR}"/opcache.ini
987 - dosym "${PHP_EXT_INI_DIR#${EPREFIX}}/opcache.ini" \
988 - "${PHP_EXT_INI_DIR_ACTIVE#${EPREFIX}}/opcache.ini"
989 - fi
990 -
991 - # SAPI-specific handling
992 - if [[ "${sapi}" == "fpm" ]] ; then
993 - einfo "Installing FPM config files php-fpm.conf and www.conf"
994 - insinto "${PHP_INI_DIR#${EPREFIX}}"
995 - doins sapi/fpm/php-fpm.conf
996 - insinto "${PHP_INI_DIR#${EPREFIX}}/fpm.d"
997 - doins sapi/fpm/www.conf
998 - fi
999 -
1000 - dodoc php.ini-{development,production}
1001 -}
1002 -
1003 -php_set_ini_dir() {
1004 - PHP_INI_DIR="${EPREFIX}/etc/php/${1}-php${SLOT}"
1005 - PHP_EXT_INI_DIR="${PHP_INI_DIR}/ext"
1006 - PHP_EXT_INI_DIR_ACTIVE="${PHP_INI_DIR}/ext-active"
1007 -}
1008 -
1009 -src_prepare() {
1010 - default
1011 -
1012 - # In php-7.x, the FPM pool configuration files have been split off
1013 - # of the main config. By default the pool config files go in
1014 - # e.g. /etc/php-fpm.d, which isn't slotted. So here we move the
1015 - # include directory to a subdirectory "fpm.d" of $PHP_INI_DIR. Later
1016 - # we'll install the pool configuration file "www.conf" there.
1017 - php_set_ini_dir fpm
1018 - sed -i "s~^include=.*$~include=${PHP_INI_DIR}/fpm.d/*.conf~" \
1019 - sapi/fpm/php-fpm.conf.in \
1020 - || die 'failed to move the include directory in php-fpm.conf'
1021 -}
1022 -
1023 -src_configure() {
1024 - addpredict /usr/share/snmp/mibs/.index #nowarn
1025 - addpredict /var/lib/net-snmp/mib_indexes #nowarn
1026 -
1027 - PHP_DESTDIR="${EPREFIX}/usr/$(get_libdir)/php${SLOT}"
1028 -
1029 - # The php-fpm config file wants localstatedir to be ${EPREFIX}/var
1030 - # and not the Gentoo default ${EPREFIX}/var/lib. See bug 572002.
1031 - local our_conf=(
1032 - --prefix="${PHP_DESTDIR}"
1033 - --mandir="${PHP_DESTDIR}/man"
1034 - --infodir="${PHP_DESTDIR}/info"
1035 - --libdir="${PHP_DESTDIR}/lib"
1036 - --with-libdir="$(get_libdir)"
1037 - --localstatedir="${EPREFIX}/var"
1038 - --without-pear
1039 - $(use_enable threads maintainer-zts)
1040 - )
1041 -
1042 - our_conf+=(
1043 - $(use_enable bcmath bcmath)
1044 - $(use_with bzip2 bz2 "${EPREFIX}/usr")
1045 - $(use_enable calendar calendar)
1046 - $(use_enable coverage gcov)
1047 - $(use_enable ctype ctype)
1048 - $(use_with curl curl "${EPREFIX}/usr")
1049 - $(use_enable xml dom)
1050 - $(use_with enchant enchant "${EPREFIX}/usr")
1051 - $(use_enable exif exif)
1052 - $(use_enable fileinfo fileinfo)
1053 - $(use_enable filter filter)
1054 - $(use_enable ftp ftp)
1055 - $(use_with nls gettext "${EPREFIX}/usr")
1056 - $(use_with gmp gmp "${EPREFIX}/usr")
1057 - $(use_enable hash hash)
1058 - $(use_with mhash mhash "${EPREFIX}/usr")
1059 - $(use_with iconv iconv \
1060 - $(use elibc_glibc || use elibc_musl || use elibc_FreeBSD || echo "${EPREFIX}/usr"))
1061 - $(use_enable intl intl)
1062 - $(use_enable ipv6 ipv6)
1063 - $(use_enable json json)
1064 - $(use_with kerberos kerberos "${EPREFIX}/usr")
1065 - $(use_enable xml libxml)
1066 - $(use_with xml libxml-dir "${EPREFIX}/usr")
1067 - $(use_enable unicode mbstring)
1068 - $(use_with crypt mcrypt "${EPREFIX}/usr")
1069 - $(use_with unicode onig "${EPREFIX}/usr")
1070 - $(use_with ssl openssl "${EPREFIX}/usr")
1071 - $(use_with ssl openssl-dir "${EPREFIX}/usr")
1072 - $(use_enable pcntl pcntl)
1073 - $(use_enable phar phar)
1074 - $(use_enable pdo pdo)
1075 - $(use_enable opcache opcache)
1076 - $(use_with postgres pgsql "${EPREFIX}/usr")
1077 - $(use_enable posix posix)
1078 - $(use_with spell pspell "${EPREFIX}/usr")
1079 - $(use_with recode recode "${EPREFIX}/usr")
1080 - $(use_enable simplexml simplexml)
1081 - $(use_enable sharedmem shmop)
1082 - $(use_with snmp snmp "${EPREFIX}/usr")
1083 - $(use_enable soap soap)
1084 - $(use_enable sockets sockets)
1085 - $(use_with sqlite sqlite3 "${EPREFIX}/usr")
1086 - $(use_enable sysvipc sysvmsg)
1087 - $(use_enable sysvipc sysvsem)
1088 - $(use_enable sysvipc sysvshm)
1089 - $(use_with tidy tidy "${EPREFIX}/usr")
1090 - $(use_enable tokenizer tokenizer)
1091 - $(use_enable wddx wddx)
1092 - $(use_enable xml xml)
1093 - $(use_enable xmlreader xmlreader)
1094 - $(use_enable xmlwriter xmlwriter)
1095 - $(use_with xmlrpc xmlrpc)
1096 - $(use_with xslt xsl "${EPREFIX}/usr")
1097 - $(use_enable zip zip)
1098 - $(use_with zlib zlib "${EPREFIX}/usr")
1099 - $(use_enable debug debug)
1100 - )
1101 -
1102 - # DBA support
1103 - if use cdb || use berkdb || use flatfile || use gdbm || use inifile \
1104 - || use qdbm ; then
1105 - our_conf+=( "--enable-dba${shared}" )
1106 - fi
1107 -
1108 - # DBA drivers support
1109 - our_conf+=(
1110 - $(use_with cdb cdb)
1111 - $(use_with berkdb db4 "${EPREFIX}/usr")
1112 - $(use_enable flatfile flatfile)
1113 - $(use_with gdbm gdbm "${EPREFIX}/usr")
1114 - $(use_enable inifile inifile)
1115 - $(use_with qdbm qdbm "${EPREFIX}/usr")
1116 - )
1117 -
1118 - # Support for the GD graphics library
1119 - our_conf+=(
1120 - $(use_with truetype freetype-dir "${EPREFIX}/usr")
1121 - $(use_enable cjk gd-jis-conv)
1122 - $(use_with gd jpeg-dir "${EPREFIX}/usr")
1123 - $(use_with gd png-dir "${EPREFIX}/usr")
1124 - $(use_with xpm xpm-dir "${EPREFIX}/usr")
1125 - )
1126 - if use webp; then
1127 - our_conf+=( --with-webp-dir="${EPREFIX}/usr" )
1128 - fi
1129 - # enable gd last, so configure can pick up the previous settings
1130 - our_conf+=( $(use_with gd gd) )
1131 -
1132 - # IMAP support
1133 - if use imap ; then
1134 - our_conf+=(
1135 - $(use_with imap imap "${EPREFIX}/usr")
1136 - $(use_with ssl imap-ssl "${EPREFIX}/usr")
1137 - )
1138 - fi
1139 -
1140 - # Interbase/firebird support
1141 - our_conf+=( $(use_with firebird interbase "${EPREFIX}/usr") )
1142 -
1143 - # LDAP support
1144 - if use ldap ; then
1145 - our_conf+=(
1146 - $(use_with ldap ldap "${EPREFIX}/usr")
1147 - $(use_with ldap-sasl ldap-sasl "${EPREFIX}/usr")
1148 - )
1149 - fi
1150 -
1151 - # MySQL support
1152 - local mysqllib="mysqlnd"
1153 - local mysqlilib="mysqlnd"
1154 -
1155 - our_conf+=( $(use_with mysqli mysqli "${mysqlilib}") )
1156 -
1157 - local mysqlsock="${EPREFIX}/var/run/mysqld/mysqld.sock"
1158 - if use mysql || use mysqli ; then
1159 - our_conf+=( $(use_with mysql mysql-sock "${mysqlsock}") )
1160 - fi
1161 -
1162 - # ODBC support
1163 - our_conf+=(
1164 - $(use_with odbc unixODBC "${EPREFIX}/usr")
1165 - $(use_with iodbc iodbc "${EPREFIX}/usr")
1166 - )
1167 -
1168 - # Oracle support
1169 - our_conf+=( $(use_with oci8-instant-client oci8) )
1170 -
1171 - # PDO support
1172 - if use pdo ; then
1173 - our_conf+=(
1174 - $(use_with mssql pdo-dblib "${EPREFIX}/usr")
1175 - $(use_with mysql pdo-mysql "${mysqllib}")
1176 - $(use_with postgres pdo-pgsql)
1177 - $(use_with sqlite pdo-sqlite "${EPREFIX}/usr")
1178 - $(use_with firebird pdo-firebird "${EPREFIX}/usr")
1179 - $(use_with odbc pdo-odbc "unixODBC,${EPREFIX}/usr")
1180 - $(use_with oci8-instant-client pdo-oci)
1181 - )
1182 - fi
1183 -
1184 - # readline/libedit support
1185 - our_conf+=(
1186 - $(use_with readline readline "${EPREFIX}/usr")
1187 - $(use_with libedit libedit "${EPREFIX}/usr")
1188 - )
1189 -
1190 - # Session support
1191 - if use session ; then
1192 - our_conf+=( $(use_with session-mm mm "${EPREFIX}/usr") )
1193 - else
1194 - our_conf+=( $(use_enable session session) )
1195 - fi
1196 -
1197 - # Use pic for shared modules such as apache2's mod_php
1198 - our_conf+=( --with-pic )
1199 -
1200 - # we use the system copy of pcre
1201 - # --with-pcre-regex affects ext/pcre
1202 - # --with-pcre-dir affects ext/filter and ext/zip
1203 - our_conf+=(
1204 - --with-pcre-regex="${EPREFIX}/usr"
1205 - --with-pcre-dir="${EPREFIX}/usr"
1206 - )
1207 -
1208 - # Catch CFLAGS problems
1209 - # Fixes bug #14067.
1210 - # Changed order to run it in reverse for bug #32022 and #12021.
1211 - replace-cpu-flags "k6*" "i586"
1212 -
1213 - # Cache the ./configure test results between SAPIs.
1214 - our_conf+=( --cache-file="${T}/config.cache" )
1215 -
1216 - # Support user-passed configuration parameters
1217 - our_conf+=( ${EXTRA_ECONF:-} )
1218 -
1219 - # Support the Apache2 extras, they must be set globally for all
1220 - # SAPIs to work correctly, especially for external PHP extensions
1221 -
1222 - mkdir -p "${WORKDIR}/sapis-build" || die
1223 - for one_sapi in $SAPIS ; do
1224 - use "${one_sapi}" || continue
1225 - php_set_ini_dir "${one_sapi}"
1226 -
1227 - # The BUILD_DIR variable is used to determine where to output
1228 - # the files that autotools creates. This was all originally
1229 - # based on the autotools-utils eclass.
1230 - BUILD_DIR="${WORKDIR}/sapis-build/${one_sapi}"
1231 - cp -a "${S}" "${BUILD_DIR}" || die
1232 - cd "${BUILD_DIR}" || die
1233 -
1234 - local sapi_conf=(
1235 - --with-config-file-path="${PHP_INI_DIR}"
1236 - --with-config-file-scan-dir="${PHP_EXT_INI_DIR_ACTIVE}"
1237 - )
1238 -
1239 - for sapi in $SAPIS ; do
1240 - case "$sapi" in
1241 - cli|cgi|embed|fpm|phpdbg)
1242 - if [[ "${one_sapi}" == "${sapi}" ]] ; then
1243 - sapi_conf+=( "--enable-${sapi}" )
1244 - if [[ "fpm" == "${sapi}" ]] ; then
1245 - sapi_conf+=(
1246 - $(use_with acl fpm-acl)
1247 - $(use_with systemd fpm-systemd)
1248 - )
1249 - fi
1250 - else
1251 - sapi_conf+=( "--disable-${sapi}" )
1252 - fi
1253 - ;;
1254 -
1255 - apache2)
1256 - if [[ "${one_sapi}" == "${sapi}" ]] ; then
1257 - sapi_conf+=( --with-apxs2="${EPREFIX}/usr/bin/apxs" )
1258 - else
1259 - sapi_conf+=( --without-apxs2 )
1260 - fi
1261 - ;;
1262 - esac
1263 - done
1264 -
1265 - # Construct the $myeconfargs array by concatenating $our_conf
1266 - # (the common args) and $sapi_conf (the SAPI-specific args).
1267 - local myeconfargs=( "${our_conf[@]}" )
1268 - myeconfargs+=( "${sapi_conf[@]}" )
1269 -
1270 - pushd "${BUILD_DIR}" > /dev/null || die
1271 - econf "${myeconfargs[@]}"
1272 - popd > /dev/null || die
1273 - done
1274 -}
1275 -
1276 -src_compile() {
1277 - # snmp seems to run during src_compile, too (bug #324739)
1278 - addpredict /usr/share/snmp/mibs/.index #nowarn
1279 - addpredict /var/lib/net-snmp/mib_indexes #nowarn
1280 -
1281 - for sapi in ${SAPIS} ; do
1282 - if use "${sapi}"; then
1283 - cd "${WORKDIR}/sapis-build/$sapi" || \
1284 - die "Failed to change dir to ${WORKDIR}/sapis-build/$1"
1285 - emake
1286 - fi
1287 - done
1288 -}
1289 -
1290 -src_install() {
1291 - # see bug #324739 for what happens when we don't have that
1292 - addpredict /usr/share/snmp/mibs/.index #nowarn
1293 -
1294 - # grab the first SAPI that got built and install common files from there
1295 - local first_sapi=""
1296 - for sapi in $SAPIS ; do
1297 - if use $sapi ; then
1298 - first_sapi=$sapi
1299 - break
1300 - fi
1301 - done
1302 -
1303 - # Makefile forgets to create this before trying to write to it...
1304 - dodir "${PHP_DESTDIR#${EPREFIX}}/bin"
1305 -
1306 - # Install php environment (without any sapis)
1307 - cd "${WORKDIR}/sapis-build/$first_sapi" || die
1308 - emake INSTALL_ROOT="${D}" \
1309 - install-build install-headers install-programs
1310 -
1311 - local extension_dir="$("${ED}/${PHP_DESTDIR#${EPREFIX}}/bin/php-config" --extension-dir)"
1312 -
1313 - # Create the directory where we'll put version-specific php scripts
1314 - keepdir "/usr/share/php${PHP_MV}"
1315 -
1316 - local sapi="", file=""
1317 - local sapi_list=""
1318 -
1319 - for sapi in ${SAPIS}; do
1320 - if use "${sapi}" ; then
1321 - einfo "Installing SAPI: ${sapi}"
1322 - cd "${WORKDIR}/sapis-build/${sapi}" || die
1323 -
1324 - if [[ "${sapi}" == "apache2" ]] ; then
1325 - # We're specifically not using emake install-sapi as libtool
1326 - # may cause unnecessary relink failures (see bug #351266)
1327 - insinto "${PHP_DESTDIR#${EPREFIX}}/apache2/"
1328 - newins ".libs/libphp${PHP_MV}$(get_libname)" \
1329 - "libphp${PHP_MV}$(get_libname)"
1330 - keepdir "/usr/$(get_libdir)/apache2/modules"
1331 - else
1332 - # needed each time, php_install_ini would reset it
1333 - local dest="${PHP_DESTDIR#${EPREFIX}}"
1334 - into "${dest}"
1335 - case "$sapi" in
1336 - cli)
1337 - source="sapi/cli/php"
1338 - ;;
1339 - cgi)
1340 - source="sapi/cgi/php-cgi"
1341 - ;;
1342 - fpm)
1343 - source="sapi/fpm/php-fpm"
1344 - ;;
1345 - embed)
1346 - source="libs/libphp${PHP_MV}$(get_libname)"
1347 - ;;
1348 - phpdbg)
1349 - source="sapi/phpdbg/phpdbg"
1350 - ;;
1351 - *)
1352 - die "unhandled sapi in src_install"
1353 - ;;
1354 - esac
1355 -
1356 - if [[ "${source}" == *"$(get_libname)" ]]; then
1357 - dolib.so "${source}"
1358 - else
1359 - dobin "${source}"
1360 - local name="$(basename ${source})"
1361 - dosym "${dest}/bin/${name}" "/usr/bin/${name}${SLOT}"
1362 - fi
1363 - fi
1364 -
1365 - php_install_ini "${sapi}"
1366 -
1367 - # construct correct SAPI string for php-config
1368 - # thanks to ferringb for the bash voodoo
1369 - if [[ "${sapi}" == "apache2" ]]; then
1370 - sapi_list="${sapi_list:+${sapi_list} }apache2handler"
1371 - else
1372 - sapi_list="${sapi_list:+${sapi_list} }${sapi}"
1373 - fi
1374 - fi
1375 - done
1376 -
1377 - # Installing opcache module
1378 - if use opcache ; then
1379 - into "${PHP_DESTDIR#${EPREFIX}}"
1380 - dolib.so "modules/opcache$(get_libname)"
1381 - fi
1382 -
1383 - # Install env.d files
1384 - newenvd "${FILESDIR}/20php5-envd" "20php${SLOT}"
1385 - sed -e "s|/lib/|/$(get_libdir)/|g" -i "${ED}/etc/env.d/20php${SLOT}" || die
1386 - sed -e "s|php5|php${SLOT}|g" -i "${ED}/etc/env.d/20php${SLOT}" || die
1387 -
1388 - # set php-config variable correctly (bug #278439)
1389 - sed -e "s:^\(php_sapis=\)\".*\"$:\1\"${sapi_list}\":" -i \
1390 - "${ED}/usr/$(get_libdir)/php${SLOT}/bin/php-config" || die
1391 -
1392 - if use fpm ; then
1393 - if use systemd; then
1394 - systemd_newunit "${FILESDIR}/php-fpm_at.service" \
1395 - "php-fpm@${SLOT}.service"
1396 - else
1397 - systemd_newunit "${FILESDIR}/php-fpm_at-simple.service" \
1398 - "php-fpm@${SLOT}.service"
1399 - fi
1400 - fi
1401 -}
1402 -
1403 -src_test() {
1404 - echo ">>> Test phase [test]: ${CATEGORY}/${PF}"
1405 - PHP_BIN="${WORKDIR}/sapis-build/cli/sapi/cli/php"
1406 - if [[ ! -x "${PHP_BIN}" ]] ; then
1407 - ewarn "Test phase requires USE=cli, skipping"
1408 - return
1409 - else
1410 - export TEST_PHP_EXECUTABLE="${PHP_BIN}"
1411 - fi
1412 -
1413 - if [[ -x "${WORKDIR}/sapis-build/cgi/sapi/cgi/php-cgi" ]] ; then
1414 - export TEST_PHP_CGI_EXECUTABLE="${WORKDIR}/sapis-build/cgi/sapi/cgi/php-cgi"
1415 - fi
1416 -
1417 - if [[ -x "${WORKDIR}/sapis-build/phpdbg/sapi/phpdbg/phpdbg" ]] ; then
1418 - export TEST_PHPDBG_EXECUTABLE="${WORKDIR}/sapis-build/phpdbg/sapi/phpdbg/phpdbg"
1419 - fi
1420 -
1421 - REPORT_EXIT_STATUS=1 "${TEST_PHP_EXECUTABLE}" -n -d \
1422 - "session.save_path=${T}" \
1423 - "${WORKDIR}/sapis-build/cli/run-tests.php" -n -q -d \
1424 - "session.save_path=${T}"
1425 -
1426 - for name in ${EXPECTED_TEST_FAILURES}; do
1427 - mv "${name}.out" "${name}.out.orig" 2>/dev/null || die
1428 - done
1429 -
1430 - local failed="$(find -name '*.out')"
1431 - if [[ ${failed} != "" ]] ; then
1432 - ewarn "The following test cases failed unexpectedly:"
1433 - for name in ${failed}; do
1434 - ewarn " ${name/.out/}"
1435 - done
1436 - else
1437 - einfo "No unexpected test failures, all fine"
1438 - fi
1439 -
1440 - if [[ ${PHP_SHOW_UNEXPECTED_TEST_PASS} == "1" ]] ; then
1441 - local passed=""
1442 - for name in ${EXPECTED_TEST_FAILURES}; do
1443 - [[ -f "${name}.diff" ]] && continue
1444 - passed="${passed} ${name}"
1445 - done
1446 - if [[ ${passed} != "" ]] ; then
1447 - einfo "The following test cases passed unexpectedly:"
1448 - for name in ${passed}; do
1449 - ewarn " ${passed}"
1450 - done
1451 - else
1452 - einfo "None of the known-to-fail tests passed, all fine"
1453 - fi
1454 - fi
1455 -}
1456 -
1457 -pkg_postinst() {
1458 - # Output some general info to the user
1459 - if use apache2 ; then
1460 - elog
1461 - elog "To enable PHP in apache, you will need to add \"-D PHP\" to"
1462 - elog "your apache2 command. OpenRC users can append that string to"
1463 - elog "APACHE2_OPTS in /etc/conf.d/apache2."
1464 - elog
1465 - elog "The apache module configuration file 70_mod_php.conf is"
1466 - elog "provided (and maintained) by eselect-php."
1467 - elog
1468 - fi
1469 -
1470 - # Create the symlinks for php
1471 - for m in ${SAPIS}; do
1472 - [[ ${m} == 'embed' ]] && continue;
1473 - if use $m ; then
1474 - local ci=$(eselect php show $m)
1475 - if [[ -z $ci ]]; then
1476 - eselect php set $m php${SLOT} || die
1477 - einfo "Switched ${m} to use php:${SLOT}"
1478 - einfo
1479 - elif [[ $ci != "php${SLOT}" ]] ; then
1480 - elog "To switch $m to use php:${SLOT}, run"
1481 - elog " eselect php set $m php${SLOT}"
1482 - elog
1483 - fi
1484 - fi
1485 - done
1486 -
1487 - # Remove dead symlinks for SAPIs that were just disabled. For
1488 - # example, if the user has the cgi SAPI enabled, then he has an
1489 - # eselect-php symlink for it. If he later reinstalls PHP with
1490 - # USE="-cgi", that symlink will break. This call to eselect is
1491 - # supposed to remove that dead link per bug 572436.
1492 - eselect php cleanup || die
1493 -
1494 - if ! has "php${SLOT/./-}" ${PHP_TARGETS}; then
1495 - elog "To build extensions for this version of PHP, you will need to"
1496 - elog "add php${SLOT/./-} to your PHP_TARGETS USE_EXPAND variable."
1497 - elog
1498 - fi
1499 -
1500 - # Warn about the removal of PHP_INI_VERSION if the user has it set.
1501 - if [[ -n "${PHP_INI_VERSION}" ]]; then
1502 - ewarn 'The PHP_INI_VERSION variable has been phased out. You may'
1503 - ewarn 'remove it from your configuration at your convenience. See'
1504 - ewarn
1505 - ewarn ' https://bugs.gentoo.org/611214'
1506 - ewarn
1507 - ewarn 'for more information.'
1508 - fi
1509 -
1510 - elog "For details on how version slotting works, please see"
1511 - elog "the wiki:"
1512 - elog
1513 - elog " https://wiki.gentoo.org/wiki/PHP"
1514 - elog
1515 -}
1516 -
1517 -pkg_postrm() {
1518 - # This serves two purposes. First, if we have just removed the last
1519 - # installed version of PHP, then this will remove any dead symlinks
1520 - # belonging to eselect-php. Second, if a user upgrades slots from
1521 - # (say) 5.6 to 7.0 and depcleans the old slot, then this will update
1522 - # his existing symlinks to point to the new 7.0 installation. The
1523 - # latter is bug 432962.
1524 - #
1525 - # Note: the eselect-php package may not be installed at this point,
1526 - # so we can't die() if this command fails.
1527 - eselect php cleanup
1528 -}