Ticket #18913: patch-gnuplot-emacs.diff

File patch-gnuplot-emacs.diff, 1.3 KB (added by mojca (Mojca Miklavec), 12 years ago)

Patch to add +emacs and specify an explicit lispdir

  • Portfile

    PortGroup xcodeversion 1.0 
    66
    77name                        gnuplot
    88version                     4.6.0
     9revision                    1
    910categories                  math science
    1011# the license has some inconvenient requirements that we're not meeting
    1112# to be allowed to distribute binaries
    configure.args --with-readline=${prefix} \ 
    7980                            --enable-histograms \
    8081                            --infodir='\${prefix}/share/info' \
    8182                            --mandir='\${prefix}/share/man' \
     83                            --without-lisp-files \
    8284                            --disable-wxwidgets \
    8385                            --without-latex \
    8486                            --without-tutorial \
    variant tutorial description "Build the tutorial (requires a tex install)" { 
    142144    configure.args-append   --with-tutorial
    143145}
    144146
     147variant emacs description "An emacs mode for working with gnuplot" {
     148    depends_build-append    path:bin/emacs:emacs
     149    configure.args-delete   --without-lisp-files
     150    configure.args-append   --with-lisp-files --with-lispdir=${prefix}/share/emacs/site-lisp
     151}
     152
    145153default_variants            +luaterm +pangocairo
    146154
    147155destroot.destdir            prefix=${destroot}${prefix}