Ticket #39094: gnuplot-elisp-portgroup.patch

File gnuplot-elisp-portgroup.patch, 1.4 KB (added by mojca (Mojca Miklavec), 12 years ago)

Patch to use the new elisp PortGroup

  • Portfile

     
    44PortSystem                  1.0
    55PortGroup                   xcodeversion 1.0
    66PortGroup                   texlive 1.0
     7PortGroup                   elisp 1.0
    78
    89name                        gnuplot
    910version                     4.6.3
     
    9495}
    9596
    9697variant emacs description "An emacs mode for working with gnuplot" {
    97     # This would be nicer with an emacs PortGroup:
    98     # Use the port that provides Emacs.app (emacs-app[-devel])
    99     # or the usual emacs binary if the former doesn't exist
    100     set app_binary ${applications_dir}/Emacs.app/Contents/MacOS/Emacs
    101     set app_provider [registry_file_registered $app_binary]
    102     if {[file exists $app_binary] && $app_provider != 0} {
    103         depends_build-append port:${app_provider}
    104         configure.env-append EMACS=${app_binary}
    105     } else {
    106         depends_build-append path:bin/emacs:emacs
    107     }
     98    depends_build-append    port:${emacs_binary_provider}
     99    configure.env-append    EMACS=${emacs_binary}
    108100    configure.args-delete   --without-lisp-files
    109     configure.args-append   --with-lisp-files --with-lispdir=${prefix}/share/emacs/site-lisp
     101    configure.args-append   --with-lisp-files --with-lispdir=${emacs_lispdir}
    110102}
    111103
    112104variant luaterm description "Enable lua-based terminals" {