Ticket #30608: Portfile-ryan

File Portfile-ryan, 2.8 KB (added by ryandesign (Ryan Carsten Schmidt), 13 years ago)

my revised Portfile based on Mark's

Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id$
3
4PortSystem          1.0
5
6name                reduce-algebra
7svn.revision        1530
8version             3.8.0-r${svn.revision}
9categories          math
10platforms           darwin
11license             BSD
12maintainers         gmail.com:mark.brethen
13
14description         REDUCE algebra system
15
16long_description    REDUCE is an interactive program designed for general \
17                    algebraic computations of interest to mathematicians, \
18                    scientists and engineers.
19
20homepage            http://reduce-algebra.sourceforge.net/
21
22fetch.type          svn
23svn.url             https://reduce-algebra.svn.sourceforge.net/svnroot/reduce-algebra/trunk
24svn.method          checkout
25worksrcdir          trunk
26
27depends_build       port:pkgconfig
28
29depends_lib         port:ncurses \
30                    port:Xft2 \
31                    port:xorg-libX11 \
32                    port:xorg-libXext
33
34configure.args      --with-psl
35
36use_parallel_build  no
37universal_variant   no
38
39set dest_dir        ${prefix}/libexec/${name}
40
41destroot {
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
60variant 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
74variant 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
88livecheck.type      none
89
90notes "
91To use the PSL version of Reduce, add this directory to your PATH environment variable:
92    ${prefix}/libexec/reduce-algebra/bin/
93"