autoconf-2.61 detects in its src_compile if an emacs executable exists in the system. If not, the package doesn't install Emacs support files, regardless of the emacs USE flag being set. I see two alternative ways to fix this: 1.) Emacs support could be split off into a separate package (say, app-emacs/autoconf-mode) which would be included in PDEPEND if the emacs USE flag is set. 2.) One could disable Emacs in the build system, and install the elisp files "manually" in src_install. No dependency on Emacs will be needed. A small drawback of this solution would be that the autoconf-mode.el and autotest-mode.el will not be byte-compiled, but I think this is justifiable since both are very short files.
Created attachment 123879 [details, diff] Diff for autoconf-2.61.ebuild for solution 2.)
Created attachment 123880 [details] files/50autoconf-gentoo.el site-file for solution 2.)
Created attachment 123882 [details, diff] Diff for autoconf-2.61.ebuild for solution 1.)
you can go ahead and split it off and commit the new ebuilds for me if you like
(In reply to comment #4) > you can go ahead and split it off and commit the new ebuilds for me if you like Ebuilds for sys-devel/autoconf-2.61-r1 and app-emacs/autoconf-mode-2.61 committed. See bug #184219 for keywording.