Changeset 143476 for trunk/dports/math


Ignore:
Timestamp:
Dec 13, 2015, 12:12:02 PM (4 years ago)
Author:
mcalhoun@…
Message:

gsl: build documentation in post-build instead of post-destroot

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/math/gsl/Portfile

    r142135 r143476  
    4242variant doc description "Install PDF and HTML documentation" {
    4343    depends_build   port:ghostscript bin:latex:texlive
     44    post-build      {
     45        system -W ${worksrcpath}     "make dvi"
     46        system -W ${worksrcpath}/doc "dvipdf gsl-ref.dvi gsl-ref.pdf"
     47        system -W ${worksrcpath}/doc "latex fftalgorithms"
     48        system -W ${worksrcpath}/doc "bibtex fftalgorithms"
     49        system -W ${worksrcpath}/doc "latex fftalgorithms"
     50        system -W ${worksrcpath}/doc "latex fftalgorithms"
     51        system -W ${worksrcpath}/doc "dvipdf fftalgorithms.dvi fftalgorithms.pdf"
     52        system -W ${worksrcpath}     "make html"
     53    }
    4454    post-destroot   {
    45         system "cd ${worksrcpath} && make dvi"
    46         system "cd ${worksrcpath}/doc && dvipdf gsl-ref.dvi gsl-ref.pdf"
    4755        xinstall -d -m 755 ${destroot}${prefix}/share/doc/${name}
    4856        xinstall -c -m 644 ${worksrcpath}/doc/gsl-ref.pdf ${destroot}${prefix}/share/doc/${name}
    49         system "cd ${worksrcpath}/doc && latex fftalgorithms"
    50         system "cd ${worksrcpath}/doc && bibtex fftalgorithms"
    51         system "cd ${worksrcpath}/doc && latex fftalgorithms"
    52         system "cd ${worksrcpath}/doc && latex fftalgorithms"
    53         system "cd ${worksrcpath}/doc && dvipdf fftalgorithms.dvi fftalgorithms.pdf"
    5457        xinstall -c -m 644 ${worksrcpath}/doc/fftalgorithms.pdf ${destroot}${prefix}/share/doc/${name}
    55         system "cd ${worksrcpath} && make html"
    5658        xinstall -d -m 755 ${destroot}${prefix}/share/doc/${name}/html
    5759        eval xinstall -c -m 644 [glob ${worksrcpath}/doc/gsl-ref.html/*] ${destroot}${prefix}/share/doc/${name}/html
Note: See TracChangeset for help on using the changeset viewer.