Currently the package has an "emacs" USE flag, but not much more besides that. Patches for improved Emacs support will follow.
Created attachment 132457 [details, diff] Proposed changes for mozart-1.3.2.ebuild - Depend on virtual/emacs (otherwise compile will fail) - Install elisp files in canonical location - Add an Emacs site-init file
Created attachment 132458 [details] files/50mozart-gentoo.el The Emacs site-init file itself, should go to ${FILESDIR}.
Created attachment 132461 [details, diff] Proposed changes for mozart-1.3.2.ebuild (take 2) We also need a pkg_post{inst,rm}.
Created attachment 132504 [details, diff] Proposed changes for mozart-1.3.2.ebuild (take 3) We also need a "use emacs" conditional around elisp-site-file-install, thanks to opfer for pointing this out. My apologies for the bug spam. (Today is definitely not my day.)
Wow, thanks for the patches! I've applied your changes to CVS. Many thanks, Keri
Reopening. Why does the ebuild no longer install an Emacs site-init file (while it still has an emacs USE flag)?
(In reply to Ulrich Müller from comment #6) > Reopening. Why does the ebuild no longer install an Emacs site-init file > (while it still has an emacs USE flag)? Mozart changed it's relationship with emacs in version 2.x. In earlier (1.4.x) versions you could install mozart .el files into /usr/share/emacs/site-lisp as part of a normal mozart install; you would then run emacs and have the mozart .el files load in the normal way. Mozart 2.x now expects the OZ runtime to invoke emacs directly. It might still be possible to modify the mozart ebuild so that something is installed into /usr/share/emacs/site-lisp - even if just to get Oz major modes.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d48eb5d10b1d301240521d5369b9ddcf8c93cb52 commit d48eb5d10b1d301240521d5369b9ddcf8c93cb52 Author: Keri Harris <keri@gentoo.org> AuthorDate: 2021-06-27 14:50:06 +0000 Commit: Keri Harris <keri@gentoo.org> CommitDate: 2021-06-27 14:50:41 +0000 dev-lang/mozart: include site-lisp file to get Oz major modes. Closes: https://bugs.gentoo.org/194604 Package-Manager: Portage-3.0.18, Repoman-3.0.2 Signed-off-by: Keri Harris <keri@gentoo.org> dev-lang/mozart/files/50mozart-gentoo.el | 13 +++++++++++++ dev-lang/mozart/mozart-2.0.1.ebuild | 12 +++++++++++- 2 files changed, 24 insertions(+), 1 deletion(-)