Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 194604 - Please fix Emacs support for dev-lang/mozart
Summary: Please fix Emacs support for dev-lang/mozart
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Keri Harris
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 184166
  Show dependency tree
 
Reported: 2007-10-03 13:00 UTC by Ulrich Müller
Modified: 2021-06-27 14:51 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Proposed changes for mozart-1.3.2.ebuild (mozart-1.3.2.ebuild.diff,1.47 KB, patch)
2007-10-03 13:04 UTC, Ulrich Müller
Details | Diff
files/50mozart-gentoo.el (50mozart-gentoo.el,482 bytes, text/plain)
2007-10-03 13:05 UTC, Ulrich Müller
Details
Proposed changes for mozart-1.3.2.ebuild (take 2) (mozart-1.3.2.ebuild.diff,1.60 KB, patch)
2007-10-03 15:13 UTC, Ulrich Müller
Details | Diff
Proposed changes for mozart-1.3.2.ebuild (take 3) (mozart-1.3.2.ebuild.diff,1.62 KB, patch)
2007-10-03 22:53 UTC, Ulrich Müller
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ulrich Müller gentoo-dev 2007-10-03 13:00:36 UTC
Currently the package has an "emacs" USE flag, but not much more besides that. Patches for improved Emacs support will follow.
Comment 1 Ulrich Müller gentoo-dev 2007-10-03 13:04:21 UTC
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
Comment 2 Ulrich Müller gentoo-dev 2007-10-03 13:05:21 UTC
Created attachment 132458 [details]
files/50mozart-gentoo.el

The Emacs site-init file itself, should go to ${FILESDIR}.
Comment 3 Ulrich Müller gentoo-dev 2007-10-03 15:13:26 UTC
Created attachment 132461 [details, diff]
Proposed changes for mozart-1.3.2.ebuild (take 2)

We also need a pkg_post{inst,rm}.
Comment 4 Ulrich Müller gentoo-dev 2007-10-03 22:53:23 UTC
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.)
Comment 5 Keri Harris gentoo-dev 2007-10-04 06:25:25 UTC
Wow, thanks for the patches! I've applied your changes to CVS.

Many thanks,

Keri
Comment 6 Ulrich Müller gentoo-dev 2021-04-17 17:45:40 UTC
Reopening. Why does the ebuild no longer install an Emacs site-init file (while it still has an emacs USE flag)?
Comment 7 Keri Harris gentoo-dev 2021-05-08 18:25:46 UTC
(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.
Comment 8 Larry the Git Cow gentoo-dev 2021-06-27 14:51:01 UTC
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(-)