1/ Code Listing 2.8 - make the ebuild die just once at most, not over and over again. E.g., like this: <snip> webapp_pkg_setup local flags use mysql && flags="${flags} mysql" use postgres && flags="${flags} postgres" require_php_with_use ${flags} </snip> 2/ Emphasize that webapp ebuilds should NOT depend on dev-db/ and/or dev-db/postgresql when USE="mysql postgresql" is set; the server can be remote, forcing such stuff on users doesn't make sense. The needed features are either to be checked for as shown in Code Listing 2.8, above, or the ebuild can depend on appropriate language bindings, such as dev-perl/DBD-mysql, dev-perl/DBD-Pg or whatever, but not on the DBs themselves. 3/ Code Listing 2.7 Note: net-www/apache -> www-servers/apache
all set