The Gnome herd will not provide us with a full gnome ebuild that allows conditional installation of Evolution and Epiphany based on USE flags. Luckily, it’s easy to do it yourself.
First, enable the portage overlay in make.conf:
# PORTDIR_OVERLAY is a directory where local ebuilds may be stored without # concern that they will be deleted by rsync updates. Default is not # defined. PORTDIR_OVERLAY=/usr/local/portage
Next, copy the Gnome ebuild into our portage overlay structure while maintaining the same directory structure.
First, find out where the gnome ebuild is located:
# find /usr/portage -name gnome-*.ebuild /usr/portage/gnome-base/gnome/gnome-2.32.1.ebuild
Second, create the same directory structure in our overlay:
# mkdir -p /usr/local/portage/gnome-base/gnome
Then, copy over the original ebuild into our overlay:
# cd /usr/local/portage/gnome-base/gnome # cp /usr/portage/gnome-base/gnome/gnome-2.32.1.ebuild .
Currently, there are no patches for Gnome (there is no ‘files’ directory in /usr/portage/gnome-base/gnome/) hence we do not need to symlink that directory into our overlay.
Now, edit the ebuild in the overlay and delete all references to Evolution and/or Epiphany (bold lines):
...
>=media-gfx/eog-2.32.1:1
>=www-client/epiphany-2.30.6
>=app-arch/file-roller-2.32.1
…
>=gnome-extra/gtkhtml-3.32.1:3.14
>=mail-client/evolution-2.32.1-r1:2.0
>=gnome-extra/evolution-data-server-2.32.1-r1
>=gnome-extra/evolution-webcal-2.32.0
…
Save and exit, then create the manifest:
# ebuild gnome-2.32.1.ebuild manifest
Done. Emerging gnome now will not pull in Evolution/Epiphany.