app-eselect/eselect-php: update the live ebuild for recent repo changes.
authorMichael Orlitzky <mjo@gentoo.org>
Wed, 26 Jul 2017 15:28:18 +0000 (11:28 -0400)
committerMichael Orlitzky <mjo@gentoo.org>
Wed, 26 Jul 2017 15:57:35 +0000 (11:57 -0400)
Package-Manager: Portage-2.3.6, Repoman-2.3.1

app-eselect/eselect-php/eselect-php-9999.ebuild

index f32c4a68a2f6db095d8d8f474b886d00bdf6c495..7a707fb148095c4272d3e1203dd241b7a0d4206d 100644 (file)
@@ -16,8 +16,8 @@ IUSE="fpm apache2"
 
 # The "DirectoryIndex" line in 70_mod_php.conf requires mod_dir.
 RDEPEND="app-admin/eselect
-       sys-apps/gentoo-functions
-       apache2? ( www-servers/apache[apache2_modules_dir] )"
+       apache2? ( www-servers/apache[apache2_modules_dir] )
+       fpm? ( sys-apps/gentoo-functions )"
 
 src_prepare() {
        eapply_user
@@ -28,7 +28,14 @@ src_configure(){
        # We expect localstatedir to be "var"ish, not "var/lib"ish, because
        # that's what PHP upstream expects. See for example the FPM
        # configuration where they put logs in @localstatedir@/log.
-       econf --localstatedir="${EPREFIX}"/var $(use_enable apache2) $(use_enable fpm)
+       #
+       # The libdir is passed explicitly in case the /usr/lib symlink
+       # is not present (bug 624528).
+       econf --libdir="${EPREFIX}/usr/$(get_libdir)" \
+                 --localstatedir="${EPREFIX}/var" \
+                 --with-piddir="${EPREFIX}/run" \
+                 $(use_enable apache2) \
+                 $(use_enable fpm)
 }
 
 src_install() {