see https://devmanual.gentoo.org/eclass-reference/wxwidgets.eclass/
Seems like most of the src_prepare function is actually build configuration and should probably be moved to src_configure anyway.