1 | 20,21c20 |
---|
2 | < depends_build path:${prefix}/bin/tex:texlive |
---|
3 | < depends_lib port:xorg-libX11 port:ncurses port:readline |
---|
4 | --- |
---|
5 | > depends_lib port:ncurses port:readline |
---|
6 | 23c22 |
---|
7 | < build.target gp docpdf |
---|
8 | --- |
---|
9 | > build.target gp |
---|
10 | 36a36,40 |
---|
11 | > variant docpdf description {Build pdf documentation} { |
---|
12 | > depends_build-append path:${prefix}/bin/tex:texlive |
---|
13 | > build.target-append docpdf |
---|
14 | > } |
---|
15 | > |
---|
16 | 42,56c46,62 |
---|
17 | < post-destroot { |
---|
18 | < global os.arch |
---|
19 | < set docdir ${destroot}${prefix}/share/doc/${name} |
---|
20 | < file mkdir ${docdir} |
---|
21 | < xinstall -m 644 -v -W ${worksrcpath} \ |
---|
22 | < AUTHORS CHANGES COPYING ${docdir} |
---|
23 | < system "ln -s ../../${name}/doc ${docdir}/doc" |
---|
24 | < if {[variant_isset universal]} { |
---|
25 | < xinstall -m 644 -v -W ${worksrcpath}-${os.arch}/doc \ |
---|
26 | < develop.pdf libpari.pdf refcard.pdf tutorial.pdf users.pdf \ |
---|
27 | < ${destroot}${prefix}/share/${name}/doc |
---|
28 | < } else { |
---|
29 | < xinstall -m 644 -v -W ${worksrcpath}/doc \ |
---|
30 | < develop.pdf libpari.pdf refcard.pdf tutorial.pdf users.pdf \ |
---|
31 | < ${destroot}${prefix}/share/${name}/doc |
---|
32 | --- |
---|
33 | > if {[variant_isset docpdf]} { |
---|
34 | > post-destroot { |
---|
35 | > global os.arch |
---|
36 | > set docdir ${destroot}${prefix}/share/doc/${name} |
---|
37 | > file mkdir ${docdir} |
---|
38 | > xinstall -m 644 -v -W ${worksrcpath} \ |
---|
39 | > AUTHORS CHANGES COPYING ${docdir} |
---|
40 | > system "ln -s ../../${name}/doc ${docdir}/doc" |
---|
41 | > if {[variant_isset universal]} { |
---|
42 | > xinstall -m 644 -v -W ${worksrcpath}-${os.arch}/doc \ |
---|
43 | > develop.pdf libpari.pdf refcard.pdf tutorial.pdf users.pdf \ |
---|
44 | > ${destroot}${prefix}/share/${name}/doc |
---|
45 | > } else { |
---|
46 | > xinstall -m 644 -v -W ${worksrcpath}/doc \ |
---|
47 | > develop.pdf libpari.pdf refcard.pdf tutorial.pdf users.pdf \ |
---|
48 | > ${destroot}${prefix}/share/${name}/doc |
---|
49 | > } |
---|