Depends on the situation, but for most cases package.mask (block installing) or package.provided (fake installing) in the portage profiles are more appropriate.