I think that I figured what I need by searching through existing ebuilds, but I couldn't find any developer documentation on them.
ARCH is documented: http://devmanual.gentoo.org/general-concepts/use-flags/index.html