Opened 13 years ago

Closed 12 years ago

#32137 closed defect (fixed)

auctex: emacs_app variant leaves --with-auto-dir set

Reported by: vishketan@… Owned by: reilles@…
Priority: Normal Milestone:
Component: ports Version: 2.0.3
Keywords: Cc: drkp (Dan Ports)
Port: auctex

Description (last modified by ryandesign (Ryan Carsten Schmidt))

In the auctex port we have

configure.args  --with-lispdir=${prefix}/share/emacs/site-lisp \
	                --with-auto-dir=${prefix}/share/emacs/site-lisp/auctex/auto

but when variant emacs_app is selected the --with-lispdir is overwritten with

  configure.args-append   --with-lispdir=/Applications/MacPorts/Emacs.app/Contents/Resources/lisp

but the --with-auto-dir is left intact and therefore the installation creates a spurious

${prefix}/share/emacs/site-lisp/auctex/auto

directory. For sake of consistency we need a

  configure.args-append   --with-autodir=/Applications/MacPorts/Emacs.app/Contents/Resources/lisp/auctex/auto

Attachments (2)

Portfile (2.5 KB) - added by vishketan@… 13 years ago.
Updated portfile
auctex.diff (2.8 KB) - added by vishketan@… 13 years ago.
Unified diff of the changes

Download all attachments as: .zip

Change History (6)

comment:1 Changed 13 years ago by drkp (Dan Ports)

Cc: dports@… added
Owner: changed from macports-tickets@… to reilles@…
Port: auctex added
Summary: auctex emacs_app variant auto-dirauctex: emacs_app variant leaves --with-auto-dir set

Why do we even need to change the location of the lispdir in the first place? emacs-app includes ${prefix}/share/emacs/site-lisp in its load path.

comment:2 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)

Please remember to use WikiFormatting so your posts are legible.

/Applications/MacPorts should not be hardcoded in the Portfile; it should use ${applications_dir} instead.

comment:3 Changed 13 years ago by vishketan@…

How about the attached Portfile which installs the lisp files into ${prefix}/share/emacs/site-lisp and also cleans up a few things.

I am using a post_activate script to update the dir file in ${prefix}/share/info. Is there a more elegant way of doing the same thing?

Is there a way to specify one of two ports as a dependency e.g. depends_lib port:emacs or port:emacs-app?

Changed 13 years ago by vishketan@…

Attachment: Portfile added

Updated portfile

Changed 13 years ago by vishketan@…

Attachment: auctex.diff added

Unified diff of the changes

comment:4 Changed 12 years ago by jmroot (Joshua Root)

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.