dev-lang/php: move fpm-systemd specific option to that SAPI
authorBrian Evans <grknight@gentoo.org>
Fri, 2 Mar 2018 02:04:26 +0000 (21:04 -0500)
committerBrian Evans <grknight@gentoo.org>
Fri, 2 Mar 2018 02:10:23 +0000 (21:10 -0500)
Package-Manager: Portage-2.3.24, Repoman-2.3.6

dev-lang/php/php-7.0.28.ebuild

index 6757747f0ea6c9bcb3be51cfbd6733557bb852a2..45b3218e4f643bf3848eca621112846a3580fa9f 100644 (file)
@@ -301,7 +301,6 @@ src_configure() {
                $(use_enable sysvipc sysvmsg)
                $(use_enable sysvipc sysvsem)
                $(use_enable sysvipc sysvshm)
-               $(use_with systemd fpm-systemd)
                $(use_with tidy tidy "${EPREFIX}/usr")
                $(use_enable tokenizer tokenizer)
                $(use_enable wddx wddx)
@@ -457,7 +456,12 @@ src_configure() {
                                cli|cgi|embed|fpm|phpdbg)
                                        if [[ "${one_sapi}" == "${sapi}" ]] ; then
                                                sapi_conf+=( "--enable-${sapi}" )
-                                               [[ "fpm" == "${sapi}" ]] && sapi_conf+=( $(use_with acl fpm-acl) )
+                                               if [[ "fpm" == "${sapi}" ]] ; then
+                                                       sapi_conf+=(
+                                                               $(use_with acl fpm-acl)
+                                                               $(use_with systemd fpm-systemd)
+                                                       )
+                                               fi
                                        else
                                                sapi_conf+=( "--disable-${sapi}" )
                                        fi