As far as I have understood our e-mail discussion, the intention is to keep a separate package for app-emacs/imaxima. In this case maxima shouldn't install imaxima. I'll attach a patch for the ebuild and an updated Emacs site-init file.
Created attachment 183506 [details, diff] Proposed changes for maxima ebuild This contains the following changes: - blocker against imaxima removed - don't depend on dev-tex/mh anymore (was needed only for imaxima) - PDEPEND on emacs? ( app-emacs/imaxima ) - patch Makefile to disable the interfaces/emacs/imaxima subdir - don't install imaxima documentation Furthermore, the following unrelated change: - in the XEmacs case the ebuild should depend on app-xemacs/auctex (instead of app-emacs/auctex)
Created attachment 183511 [details] files/51maxima-gentoo.el Updated site-init file.
Done (5.17.1-r1)
One little thing: I believe in the XEmacs case it should depend on app-*x*emacs/auctex not (app-emacs/auctex): --- maxima-5.17.1-r1.ebuild~ +++ maxima-5.17.1-r1.ebuild @@ -37,7 +37,7 @@ emacs? ( virtual/emacs latex? ( app-emacs/auctex ) ) xemacs? ( virtual/xemacs - latex? ( app-emacs/auctex ) )" + latex? ( app-xemacs/auctex ) )" PDEPEND="emacs? ( app-emacs/imaxima )"