Emacs PortGroup

Mojca Miklavec mojca.miklavec.lists at gmail.com
Fri May 4 10:08:46 PDT 2012


Dear Developers,

Three tickets report a missing dependency of emacs for gnuplot:
    http://trac.macports.org/ticket/18913
    http://trac.macports.org/ticket/27996
    http://trac.macports.org/ticket/33554


Fixing this is trivial, probably just:

configure.args ... --without-lisp-files \

variant emacs description "add gnuplot mode to emacs" {
    depends_lib-append    path:bin/emacs:emacs
    configure.args-delete   --without-lisp-files
    configure.args-append   --with-lisp-files
    configure.args-append   --with-lispdir=${prefix}/share/emacs/site-lisp
}

but I took a look at how other ports implement this and in imaxima I
have also found

variant emacs_app description {Use this package with Emacs.app} {
    depends_lib-delete  path:bin/emacs:emacs
    depends_lib-append
path:${applications_dir}/Emacs.app/Contents/MacOS/Emacs:emacs-app

    set dir_info    ${applications_dir}/Emacs.app/Contents/Resources/info
    configure.env   EMACS=${applications_dir}/Emacs.app/Contents/MacOS/Emacs
    configure.args
--with-lispdir=${applications_dir}/Emacs.app/Contents/Resources/site-lisp/${name}
\
                    --infodir=${dir_info}
}

I'm relatively new to MacPorts and don't know much about PortGroup(s),
but wouldn't the big number of different emacs flavours and the extra
complexity with emacs-app justify creation of a new PortGroup to
simplify treating special cases of emacs22 vs. emacs vs.
emacs-snapshot vs. emacs-app vs. emacs-app-devel?

Mojca

PS: I'm not an emacs user myself.


More information about the macports-dev mailing list