1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 inherit git-r3 autotools
8 DESCRIPTION="PHP eselect module"
9 HOMEPAGE="https://gitweb.gentoo.org/proj/eselect-php.git/"
10 EGIT_REPO_URI="https://anongit.gentoo.org/git/proj/eselect-php.git"
17 # The "DirectoryIndex" line in 70_mod_php.conf requires mod_dir.
18 RDEPEND="app-admin/eselect
19 apache2? ( www-servers/apache[apache2_modules_dir] )"
27 # We expect localstatedir to be "var"ish, not "var/lib"ish, because
28 # that's what PHP upstream expects. See for example the FPM
29 # configuration where they put logs in @localstatedir@/log.
31 # The libdir is passed explicitly in case the /usr/lib symlink
32 # is not present (bug 624528).
33 econf --libdir="${EPREFIX}/usr/$(get_libdir)" \
34 --localstatedir="${EPREFIX}/var" \
35 --with-piddir="${EPREFIX}/run" \
36 $(use_enable apache2) \