First set up the necessary USE flags:
<syntaxhighlight lang=bash>
echo "media-libs/libsdl2 gles" | sudo tee --append >> /etc/portage/package.use/libsdl2 >/dev/nullecho "media-libs/nettle gmp" | sudo tee --append >> /etc/portage/package.use/nettle >/dev/null
</syntaxhighlight>
Then fetch the packages: