For a USES=emacs port such as print/pdf-tools, if we want to install
byte-compiled elisp, we must have both build and run dependencies on
some flavor from editors/emacs or editors/emacs-devel. However, we
cannot easily create a flexible dependency so that any flavor of either
Emacs port could satisfy the dependency. The pdf-tools package must
depend on a specific Emacs package, so we need flavors/packages for
pdf-tools, pdf-tools-emacs_canna, pdf-tools-emacs_nox,
pdf-tools-emacs_wayland, and so on. With over 100 USES=emacs ports,
adding a new Emacs flavor means creating over 100 new packages. It
quickly becomes unmanageable, especially when considering
editors/emacs-devel and its flavors.
To work around this problem, we will no longer install any byte-compiled
elisp with any elisp port. This means we no longer need build or run
dependencies. Instead, we will hook into Emacs's native compilation
machinery to have that elisp natively compiled in the standard cache
under the user's home directory.