21 | | |
22 | | fetch.type svn |
23 | | svn.url https://reduce-algebra.svn.sourceforge.net/svnroot/reduce-algebra/trunk |
24 | | svn.method checkout |
25 | | worksrcdir trunk |
26 | | |
27 | | depends_build port:pkgconfig |
28 | | |
29 | | depends_lib port:ncurses \ |
30 | | port:Xft2 \ |
31 | | port:xorg-libX11 \ |
32 | | port:xorg-libXext |
33 | | |
34 | | configure.args --with-psl |
35 | | |
36 | | use_parallel_build no |
37 | | universal_variant no |
38 | | |
39 | | set dest_dir ${prefix}/libexec/${name} |
40 | | |
41 | | destroot { |
42 | | # At present 'make install' is deeply broken, so manually install required files |
43 | | xinstall -d ${destroot}${dest_dir}/doc |
44 | | |
45 | | xinstall -m 0644 -W ${worksrcpath} BUGS BUILDING Contributor-Release.txt \ |
46 | | DEPENDENCY_TRACKING INSTALL README ${destroot}${dest_dir}/doc |
47 | | |
48 | | xinstall -d ${destroot}${dest_dir}/bin |
49 | | xinstall ${worksrcpath}/bin/redpsl ${destroot}${dest_dir}/bin |
50 | | |
51 | | xinstall -d ${destroot}${dest_dir}/pslbuild |
52 | | eval copy [glob ${worksrcpath}/pslbuild/*] ${destroot}${dest_dir}/pslbuild |
53 | | |
54 | | xinstall -d ${destroot}${dest_dir}/scripts |
55 | | eval copy [glob ${worksrcpath}/scripts/*] ${destroot}${dest_dir}/scripts |
56 | | |
57 | | xinstall ${worksrcpath}/config.guess ${destroot}${dest_dir} |
58 | | } |
59 | | |
60 | | variant html description {Install documentation in HTML format} { |
61 | | depends_build-append bin:makeindex:texlive-basic |
62 | | depends_build-append bin:mk4ht:texlive-htmlxml |
63 | | |
64 | | post-build { |
65 | | system -W ${worksrcpath}/doc/manual "./mkhtml.sh" |
66 | | } |
67 | | |
68 | | post-destroot { |
69 | | xinstall -d ${destroot}${dest_dir}/doc/html |
70 | | eval xinstall -m 0644 [glob ${worksrcpath}/doc/manual/*.html] ${destroot}${dest_dir}/doc/html |
71 | | } |
72 | | } |
73 | | |
74 | | variant pdf description {Install documentation in PDF format} { |
75 | | depends_build-append bin:makeindex:texlive-basic |
76 | | depends_build-append bin:pdflatex:texlive-basic |
77 | | |
78 | | post-build { |
79 | | system -W ${worksrcpath}/doc/manual "./mkpdf.sh" |
80 | | } |
81 | | |
82 | | post-destroot { |
83 | | xinstall -d ${destroot}${dest_dir}/doc/pdf |
84 | | xinstall -m 0644 ${worksrcpath}/doc/manual/manual-pdf.pdf ${destroot}${dest_dir}/doc/pdf |
85 | | } |
86 | | } |
87 | | |
88 | | livecheck.type none |
89 | | |
90 | | notes " |
91 | | To use the PSL version of Reduce, add this directory to your PATH environment variable: |
92 | | ${prefix}/libexec/reduce-algebra/bin/ |
93 | | " |