commit:     9f957137544df01e20e5ae49f5bf8d7ee6a352f5
Author:     Michael Orlitzky <mjo <AT> gentoo <DOT> org>
AuthorDate: Sat Feb 29 22:10:29 2020 +0000
Commit:     Michael Orlitzky <mjo <AT> gentoo <DOT> org>
CommitDate: Sat Feb 29 22:10:29 2020 +0000
URL:        https://gitweb.gentoo.org/proj/eselect-php.git/commit/?id=9f957137

src/php.eselect.in.in: add support for the "phar" executable.

PHP supports installing a "phar" executable that can archive/extract
the phar file format without the user having to learn the API and
write a little script. This commit allows "eselect php ... cli" to
manage a symlink to the "phar" command, so that when dev-lang/php
starts installing them, we can switch between the various versions.

Bug: https://bugs.gentoo.org/707876
Signed-off-by: Michael Orlitzky <mjo <AT> gentoo.org>

 src/php.eselect.in.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/php.eselect.in.in b/src/php.eselect.in.in
index f78bf3d..2a7e5a8 100644
--- a/src/php.eselect.in.in
+++ b/src/php.eselect.in.in
@@ -25,7 +25,7 @@ sapi_active_link_names() {
 
        case "${sapi}" in
                apache2) echo "mod_php.so" ;;
-               cli)     echo "php phpize php-config" ;;
+               cli)     echo "php phpize php-config phar" ;;
                fpm)     echo "php-fpm" ;;
                cgi)     echo "php-cgi" ;;
                phpdbg)  echo "phpdbg"  ;;

Reply via email to