#36135: gnuplot enhancement to support emacs-app --------------------------+------------------------------------ Reporter: jrh@… | Owner: mojca.miklavec.lists@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: haspatch Port: gnuplot | --------------------------+------------------------------------ Comment (by jrh@…): Eh, I have the impression that emacs-app-devel is obsolete anyway. It's a CVS snapshot from 2009, and the Emacs devs don't even use that repository anymore. IIRC, originally it was ahead of the point release used by emacs- app, providing early access to new functionality that eventually made it into Emacs 23. But now I'm not really sure what purpose it serves. Regardless, since either way the binary ends up in the same place, that gave me the idea to see how "port provides $filename" works. What about something like: {{{ variant emacs description "An emacs mode for working with gnuplot" { set app_binary ${applications_dir}/Emacs.app/Contents/MacOS/Emacs set app_provider [registry_file_registered $app_binary] if {[file exists $app_binary] && $app_provider != 0} { depends_build-append port:${app_provider} configure.env-append EMACS=${app_binary} } else { depends_build-append path:bin/emacs:emacs } configure.args-delete --without-lisp-files configure.args-append --with-lisp-files --with- lispdir=${prefix}/share/emacs/site-lisp } }}} That appears to work for me with emacs-app: {{{ $ port deps gnuplot +emacs Full Name: gnuplot @4.6.0_2+aquaterm+emacs+luaterm+pangocairo+x11 Build Dependencies: emacs-app Library Dependencies: expat, fontconfig, gd2, jpeg, pdflib, libiconv, libpng, ncurses, readline, zlib, aquaterm, xpm, lua, pango }}} If I edit $app_binary to point to a nonexistent file, then the build dependency changes to emacs. -- Ticket URL: <https://trac.macports.org/ticket/36135#comment:14> MacPorts <http://www.macports.org/> Ports system for Mac OS