#36135: gnuplot enhancement to support emacs-app -------------------------+-------------------------------- Reporter: jrh@… | Owner: macports-tickets@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Keywords: | Port: gnuplot -------------------------+-------------------------------- The attached Portfile patch adds a new '''emacs_app''' variant which is like the '''emacs''' variant but uses Emacs.app. It ''almost'' suffices to just modify the existing "emacs" variant replacing {{{ depends_build-append path:bin/emacs:emacs }}} with {{{ depends_build-append path:share/emacs/site-lisp:emacs }}} but then it ends up using the (older) system /usr/bin/emacs for compilation (which works, but is Wrong). The "configure.env-append" part sets $EMACS to the Emacs.app executable. We also have to update $PATH because of the gnuplot ./lisp/configure script which does this {{{ EMACS=`basename $EMACS` }}} and then proceeds to call {{{ $EMACS --version }}} which, depending upon file system case sensitivity, either erroneously finds /usr/bin/emacs (as /usr/bin/Emacs) or fails outright. The "pre-configure" block edits ./lisp/configure to recognize "Emacs" as well as "emacs" as a valid executable name for GNU Emacs. -- Ticket URL: <https://trac.macports.org/ticket/36135> MacPorts <http://www.macports.org/> Ports system for Mac OS