/etc/portage/package.mask

is a file, or a directory of files, that can be used to prevent certain packages from being installed.

Format
One DEPEND atom per line; comment lines begin with a  (hash).

For DEPEND atom syntax, see version specifier.