| 35 | variant examples { |
| 36 | post-destroot { |
| 37 | set examplesdir ${destroot}${prefix}/share/doc/${name}/examples |
| 38 | xinstall -m 755 -d ${examplesdir} |
| 39 | foreach fl [glob -tails -directory ${worksrcpath}/examples *.{c,mod,lp,mps,dat}] { |
| 40 | xinstall -m 644 -W ${worksrcpath}/examples $fl ${examplesdir} |
| 41 | } |
| 42 | xinstall -m 755 -d ${examplesdir}/sql |
| 43 | foreach fl [glob -tails -directory ${worksrcpath}/examples/sql *.{mod,sql}] { |
| 44 | xinstall -m 644 -W ${worksrcpath}/examples/sql $fl ${examplesdir}/sql |
| 45 | } |
| 46 | } |
| 47 | } |
| 48 | |
| 49 | variant doc { |
| 50 | depends_build-append path:${prefix}/bin/pdflatex:texlive \ |
| 51 | path:${prefix}/bin/texi2pdf:texinfo |
| 52 | post-destroot { |
| 53 | set docdir ${destroot}${prefix}/share/doc/${name} |
| 54 | xinstall -m 755 -d ${docdir} |
| 55 | system "cd ${worksrcpath}/doc && ${prefix}/bin/pdflatex glpk.latex && ${prefix}/bin/pdflatex glpk.latex" |
| 56 | system "cd ${worksrcpath}/doc && ${prefix}/bin/texi2pdf gmpl.texi" |
| 57 | xinstall -m 644 -W ${worksrcpath}/doc glpk.pdf gmpl.pdf ${docdir} |
| 58 | xinstall -m 644 -W ${worksrcpath} AUTHORS COPYING ChangeLog INSTALL NEWS README ${docdir} |
| 59 | } |
| 60 | } |
| 61 | |