depend.apache.eclass contains calls to use() in functions which are called in "depend" phase (global scope). use() should be called in other phases (e.g. "setup" phase). Calling use() in global scope will cause die() in EAPI >=3. I suggest to move calls to use() to a new function apache2_optional_init() which should be called in pkg_setup(). All ebuilds which call want_apache(), want_apache2() or want_apache2_2() will have to be updated to call apache2_optional_init() in pkg_setup().
Created attachment 190193 [details, diff] depend.apache.eclass.patch
The following packages call want_apache(), want_apache2() or want_apache2_2(): dev-lang/php dev-perl/HTML-Mason dev-php5/eaccelerator dev-ruby/nitro dev-util/subversion net-analyzer/aimsniff net-analyzer/base net-analyzer/cacti net-analyzer/nagios-core sci-geosciences/mapserver www-apps/bugzilla www-apps/otrs www-misc/awstats
Created attachment 190895 [details, diff] depend.apache.eclass.patch
Created attachment 191501 [details, diff] depend.apache.eclass.patch
Created attachment 192368 [details, diff] depend.apache.eclass.diff i'd prefer doing this in pkg_setup, since ebuilds can automatically pick this up, if they don't have other pkg_setup stuff. if you have the time to fix this in the ebuilds, please do so, my time is currently very limited due to work and this needs fixing rather soon
Everything should be fixed.