mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-10 23:52:59 -04:00
app-benchmarks/phoronix-test-suite: add webserver optfeature
Signed-off-by: Filip Kobierski <fkobi@pm.me>
This commit is contained in:
@@ -38,7 +38,6 @@ RDEPEND="${DEPEND}
|
|||||||
)
|
)
|
||||||
media-libs/libpng
|
media-libs/libpng
|
||||||
>=dev-lang/php-5.3[cli,curl,gd,posix,pcntl,simplexml,sockets,ssl,truetype,xml,zip,zlib]
|
>=dev-lang/php-5.3[cli,curl,gd,posix,pcntl,simplexml,sockets,ssl,truetype,xml,zip,zlib]
|
||||||
www-servers/apache
|
|
||||||
x11-base/xorg-server
|
x11-base/xorg-server
|
||||||
sdl? (
|
sdl? (
|
||||||
media-libs/libsdl
|
media-libs/libsdl
|
||||||
@@ -141,6 +140,15 @@ pkg_postinst() {
|
|||||||
|
|
||||||
get_optional_dependencies "${GENTOO_OPTIONAL_PKGS_XML}"
|
get_optional_dependencies "${GENTOO_OPTIONAL_PKGS_XML}"
|
||||||
unset -v GENTOO_OPTIONAL_PKGS_XML
|
unset -v GENTOO_OPTIONAL_PKGS_XML
|
||||||
|
|
||||||
|
if use server; then
|
||||||
|
# if nginx is present do not show apache as it has worse integration
|
||||||
|
if ! has_version www-servers/nginx; then
|
||||||
|
optfeature_header "Alternatives for the PHP webserver used by Phoromatic"
|
||||||
|
optfeature "nginx (zeroconf)" www-servers/nginx
|
||||||
|
optfeature "Apache (needs manual configuration)" www-servers/apache
|
||||||
|
fi
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
pkg_postrm() {
|
pkg_postrm() {
|
||||||
@@ -37,7 +37,6 @@ RDEPEND="${DEPEND}
|
|||||||
)
|
)
|
||||||
media-libs/libpng
|
media-libs/libpng
|
||||||
>=dev-lang/php-5.3[cli,curl,gd,posix,pcntl,simplexml,sockets,ssl,truetype,xml,zip,zlib]
|
>=dev-lang/php-5.3[cli,curl,gd,posix,pcntl,simplexml,sockets,ssl,truetype,xml,zip,zlib]
|
||||||
www-servers/apache
|
|
||||||
x11-base/xorg-server
|
x11-base/xorg-server
|
||||||
sdl? (
|
sdl? (
|
||||||
media-libs/libsdl
|
media-libs/libsdl
|
||||||
@@ -140,6 +139,15 @@ pkg_postinst() {
|
|||||||
|
|
||||||
get_optional_dependencies "${GENTOO_OPTIONAL_PKGS_XML}"
|
get_optional_dependencies "${GENTOO_OPTIONAL_PKGS_XML}"
|
||||||
unset -v GENTOO_OPTIONAL_PKGS_XML
|
unset -v GENTOO_OPTIONAL_PKGS_XML
|
||||||
|
|
||||||
|
if use server; then
|
||||||
|
# if nginx is present do not show apache as it has worse integration
|
||||||
|
if ! has_version www-servers/nginx; then
|
||||||
|
optfeature_header "Alternatives for the PHP webserver used by Phoromatic"
|
||||||
|
optfeature "nginx (zeroconf)" www-servers/nginx
|
||||||
|
optfeature "Apache (needs manual configuration)" www-servers/apache
|
||||||
|
fi
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
pkg_postrm() {
|
pkg_postrm() {
|
||||||
|
|||||||
Reference in New Issue
Block a user