Ticket #36135: Portfile-gnuplot.diff

File Portfile-gnuplot.diff, 1.3 KB (added by jrhope, 12 years ago)
  • Portfile

    old new  
    111111    configure.args-append   --with-lisp-files --with-lispdir=${prefix}/share/emacs/site-lisp
    112112}
    113113
     114variant emacs_app description "An emacs mode for working with gnuplot,
     115for use with editors/emacs-app." {
     116    depends_build-append    path:share/emacs/site-lisp:emacs-app
     117    configure.args-delete   --without-lisp-files
     118    configure.args-append   --with-lisp-files \
     119                            --with-lispdir=${prefix}/share/emacs/site-lisp
     120    configure.env-append    \
     121        EMACS=${applications_dir}/Emacs.app/Contents/MacOS/Emacs \
     122        PATH=${applications_dir}/Emacs.app/Contents/MacOS/:$env(PATH)
     123}
     124
    114125variant luaterm description "Enable lua-based terminals" {
    115126    depends_lib-append      port:lua
    116127    configure.args-delete   --without-lua
     
    156167
    157168default_variants            +aquaterm +luaterm +pangocairo +x11
    158169
     170pre-configure {
     171    if {[variant_isset emacs_app]} {
     172        reinplace "s/if test \"\$EMACS\" = emacs/if test `echo \$EMACS \| tr \[:upper:\] \[:lower:\]` = emacs/g" lisp/configure
     173    }
     174}
     175
    159176post-destroot {
    160177    xinstall -d -m 0755 ${destroot}${prefix}/share/doc/${name}
    161178    xinstall -m 0644 ${distpath}/${name}.pdf \