Ticket #38798: gnuplot-demo.patch

File gnuplot-demo.patch, 780 bytes (added by mojca (Mojca Miklavec), 11 years ago)

a patch to install demo files for gnuplot

  • Portfile

    old new  
    179179        xinstall -m 0644 ${luadir}/gnuplot-lua-tikz.tex        ${texmf}/tex/plain/gnuplot-lua-tikz
    180180    }
    181181
    182     xinstall -d -m 0755 ${destroot}${prefix}/share/doc/${name}
    183     xinstall -m 0644 ${distpath}/${name}.pdf \
    184         ${destroot}${prefix}/share/doc/${name}
     182    set destdocdir ${destroot}${prefix}/share/doc/${name}
     183    xinstall -d -m 0755 ${destdocdir}
     184    xinstall -m 0644 ${distpath}/${name}.pdf ${destdocdir}
     185
     186    # copy demo files
     187    file copy ${workpath}/${distname}/demo ${destdocdir}
     188    foreach {makefile} {Makefile Makefile.in Makefile.am Makefile.am.in} {
     189        delete ${destdocdir}/demo/${makefile}
     190    }
    185191}
    186192
    187193# this temporary workaround removes files that accidentally circumvented destroot