This eclass handles depending on apache in a sane way and provides information about where certain binaries and configuration files are located.
To make use of this eclass simply call one of the need/want_apache functions described below. Make sure you use the need/want_apache call after you have defined DEPEND and RDEPEND. Also note that you can not rely on the automatic RDEPEND=DEPEND that portage does if you use this eclass.
See Bug 107127 for more information.
Here is an example of an ebuild depending on apache:
DEPEND="virtual/Perl-CGI"
RDEPEND="${DEPEND}"
need_apache2
Another example which demonstrates non-standard IUSE options for optional apache support:
DEPEND="server? ( virtual/Perl-CGI )"
RDEPEND="${DEPEND}"
want_apache2 server
apache-devs@gentoo.org
Please report bugs via