41 | | variant doc description "Install PDF and HTML documentation" { |
42 | | depends_build port:ghostscript bin:latex:texlive |
| 41 | if {[variant_isset doc_python27]} { set PythonVersion 27 } |
| 42 | if {[variant_isset doc_python35]} { set PythonVersion 35 } |
| 43 | if {[variant_isset doc_python36]} { set PythonVersion 36 } |
| 44 | |
| 45 | variant doc_python27 conflicts doc_python35 doc_python36 description {Install PDF and HTML documentation using Python 2.7} {} |
| 46 | variant doc_python35 conflicts doc_python27 doc_python36 description {Install PDF and HTML documentation using Python 3.5} {} |
| 47 | variant doc_python36 conflicts doc_python27 doc_python35 description {Install PDF and HTML documentation using Python 3.6} {} |
| 48 | |
| 49 | if {[variant_isset doc_python27] || [variant_isset doc_python35] || [variant_isset doc_python36]} { |
| 50 | depends_build port:ghostscript \ |
| 51 | bin:latexmk:latexmk \ |
| 52 | bin:latex:texlive \ |
| 53 | port:texlive-latex-extra \ |
| 54 | port:py${PythonVersion}-sphinx \ |
| 55 | port:py${PythonVersion}-sphinx_rtd_theme \ |
| 56 | port:py${PythonVersion}-typing \ |
| 57 | port:py${PythonVersion}-sphinxcontrib-websupport |
44 | | system -W ${worksrcpath} "make dvi" |
45 | | system -W ${worksrcpath}/doc "dvipdf gsl-ref.dvi gsl-ref.pdf" |
46 | | system -W ${worksrcpath}/doc "latex fftalgorithms" |
47 | | system -W ${worksrcpath}/doc "bibtex fftalgorithms" |
48 | | system -W ${worksrcpath}/doc "latex fftalgorithms" |
49 | | system -W ${worksrcpath}/doc "latex fftalgorithms" |
50 | | system -W ${worksrcpath}/doc "dvipdf fftalgorithms.dvi fftalgorithms.pdf" |
51 | | system -W ${worksrcpath} "make html" |
| 59 | system -W ${worksrcpath}/doc "make latexpdf" |
| 60 | system -W ${worksrcpath}/doc "make html" |