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