Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 474036 - app-emacs/d-mode - Emacs major mode for editing D code
Summary: app-emacs/d-mode - Emacs major mode for editing D code
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Default Assignee for New Packages
URL: https://github.com/Emacs-D-Mode-Maint...
Whiteboard:
Keywords: EBUILD, Inclusion
Depends on:
Blocks:
 
Reported: 2013-06-21 12:01 UTC by Martin von Gagern
Modified: 2013-07-29 21:20 UTC (History)
1 user (show)

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


Attachments
d-mode-2.0.6_pre20121224.ebuild (d-mode-2.0.6_pre20121224.ebuild,457 bytes, text/plain)
2013-06-21 12:01 UTC, Martin von Gagern
Details
50d-mode-gentoo.el (50d-mode-gentoo.el,157 bytes, text/plain)
2013-06-21 12:02 UTC, Martin von Gagern
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin von Gagern 2013-06-21 12:01:43 UTC
Created attachment 351540 [details]
d-mode-2.0.6_pre20121224.ebuild

It would be nice to have an Emacs mode for D in Gentoo. There is a project to that effect on github, mentioned in several other places so it appears to be the canonical choice.

The last commit was half a year ago, and a comment indicates the file as "Version:  2.0.6-SNAPSHOT". If we go with that version, it should probably be called d-mode-2.0.6_pre20121224 and the file be taken from https://raw.github.com/Emacs-D-Mode-Maintainers/Emacs-D-Mode/281ea8f93e92548cddde3b2c872ee216f64ebfad/d-mode.el

Otherwise, the last official release (as found in a file on launchpad, and a tag on github) would be 2.0.5. The file for that can be grabbed from https://raw.github.com/Emacs-D-Mode-Maintainers/Emacs-D-Mode/2.0.5/d-mode.el
But since the modifications to the 2.0.6-SNAPSHOT seem useful to me, I'd prefer to go with that prerelease. Particularly since we'll have to roll an archive for these in any case. At least looking at other simple elisp modes, it seems as though most of them ship a compressed el file, not an uncompressed one.

If you'd prefer this on sunrise, please let me know. But I think the ebuild is simple enough that adding it directly should be possible, and would avoid the hassle of having to create an archive on some other web server for this. D-related overlays like the ldc overlay might be places for this ebuild as well, but since dmd-bin is in main portage, I see no reason to not have d-mode there as well.
Comment 1 Martin von Gagern 2013-06-21 12:02:34 UTC
Created attachment 351542 [details]
50d-mode-gentoo.el

Content of this file was derived from a comment in d-mode.el itself.
Comment 2 Ulrich Müller gentoo-dev 2013-06-21 13:21:55 UTC
Hm, this looks straight-forward.

But could you ask upstream for a proper 2.0.6 release, please?
Comment 3 Martin von Gagern 2013-06-21 13:40:58 UTC
(In reply to Ulrich Müller from comment #2)
> But could you ask upstream for a proper 2.0.6 release, please?

https://github.com/Emacs-D-Mode-Maintainers/Emacs-D-Mode/issues/6
Comment 4 Martin von Gagern 2013-07-22 11:20:40 UTC
(In reply to Ulrich Müller from comment #2)
> But could you ask upstream for a proper 2.0.6 release, please?

Upstream released 2.0.6:
https://github.com/Emacs-D-Mode-Maintainers/Emacs-D-Mode/releases/tag/2.0.6
https://launchpad.net/emacs-d-mode/+announcement/11779

Do you need a new ebuild?
Comment 5 Ulrich Müller gentoo-dev 2013-07-22 16:07:23 UTC
(In reply to Martin von Gagern from comment #4)
> Upstream released 2.0.6:
> https://github.com/Emacs-D-Mode-Maintainers/Emacs-D-Mode/releases/tag/2.0.6
> https://launchpad.net/emacs-d-mode/+announcement/11779

Good.

> Do you need a new ebuild?

I think I can manage without. ;)
Comment 6 Ulrich Müller gentoo-dev 2013-07-29 21:20:16 UTC
Committed to CVS.
Thank you for the contribution.