you can use something like many other gentoo ebuilds:
docinto /usr/share/doc/${PF}/examples
dodoc -r example/*
docompress -x /usr/share/doc/${PF}/examples