/usr/portage/eclass/webapp.eclass is cut off... take a look at the end of the file. it ends: function webapp_pkg_setup () { use vhosts || webapp-config -u root -d /var/www/localhost/htdocs/${PN}/ ${PN} where is the rest of it?
Hrm ... did this really need a new bug? This eclass isn't complete, and you already know about 30607. Please - post bugs & comments about this eclass there until the eclass is no longer in beta. I've committed a new version of the ebuild with the missing closing brace. Stu