> +EXPORT_FUNCTIONS pkg_setup src_unpack src_prepare src_configure src_compile > src_test src_install
EXPORT_FUNCTIONS should go outside the inherit guard (see https://devmanual.gentoo.org/eclass-writing/index.html#export-functions) - unless I'm missing something and there's a specific reason to put it inside. > + > +fi