As always, commands written in square brackets are optional, the most common usecase for this is [sudo] which means you need super user (if you are root you obviously don't need sudo)
Layman is a nice and easy manager for other "repositories" (gentoo overlays) on your gentoo system, we will be needing this because ungoogled-chromium
is not in the official repositories
[sudo] emerge app-portage/layman
If you haven't used layman before update it with the following command:
[sudo] layman-updater -R
Now list the available repositories (overlays):
[sudo] layman -L
Now add the pf4public overlay to your system
[sudo] layman -a pf4public
[sudo] emaint --auto sync
[sudo] emerge media-libs/lcms
[sudo] emerge media-libs/opus
[sudo] emerge ungoogled-chromium