Opened 11 years ago

Closed 11 years ago

#39019 closed enhancement (fixed)

create an elisp portgroup to simplify installing modules for emacs/emacs-app

Reported by: drkp (Dan Ports) Owned by: drkp (Dan Ports)
Priority: Normal Milestone:
Component: ports Version: 2.1.3
Keywords: Cc: cssdev, humem (humem), mojca (Mojca Miklavec), cooljeanius (Eric Gallager)
Port:

Description

We've long had an issue with ports that install emacs modules, because they need to have a dependency on emacs, and usually use the emacs binary to byte-compile elisp code. The problem is doing this in a way that supports emacs-app as well. (Path dependencies aren't useful, because emacs and emacs-app intentionally don't install files into the same location.)

Some ports have been dealing with this using a +emacs_app variant, which isn't an ideal solution. Several others don't have a solution at all, which is even worse.

The gnuplot port checks at installtime which version is installed, and uses that. The attached portgroup tries to factor out the common code for that test so that we can use it in other ports. The assumption here is that all of these emacsen install into the same site-lisp directory (which is true of our emacs and emacs-app ports) and that they are the same major version so that bytecode will be compatible, so it doesn't really matter which one we build with.

The portgroup just sets up some variables for use by portfiles. I didn't try to set up any of the build environment directly in the portgroup; the build systems for these modules are so different that it's not clear there's any common settings. Also attached an example of how to modify the org-mode portfile to use the portgroup.

Any comments are appreciated!

Attachments (2)

elisp-1.0.tcl (2.3 KB) - added by drkp (Dan Ports) 11 years ago.
proposed portgroup
org-mode.diff (884 bytes) - added by drkp (Dan Ports) 11 years ago.
example of usage

Download all attachments as: .zip

Change History (5)

Changed 11 years ago by drkp (Dan Ports)

Attachment: elisp-1.0.tcl added

proposed portgroup

Changed 11 years ago by drkp (Dan Ports)

Attachment: org-mode.diff added

example of usage

comment:1 Changed 11 years ago by cooljeanius (Eric Gallager)

Cc: egall@… added

Cc Me!

comment:2 Changed 11 years ago by mojca (Mojca Miklavec)

Thank you very much for starting this (I have no idea how portgroup files are created). One more thing that would be potentially nice for gnuplot is the lispdir variable used in --with-lispdir=${prefix}/share/emacs/site-lisp

I don't have much to add (I'm not competent enough to swim in the sea of zillion emacs ports), but now that elisp is there: what do you think about creating a wxwidgets portgroup? ;)

comment:3 Changed 11 years ago by drkp (Dan Ports)

Resolution: fixed
Status: newclosed

Added the portgroup in r106035. Any additional comments are still appreciated, of course.

Note: See TracTickets for help on using tickets.