Ticket #45740: reduce-algebra-Portfile.diff

File reduce-algebra-Portfile.diff, 3.2 KB (added by mbrethen, 9 years ago)
  • Portfile

    old new  
    22# $Id: Portfile 88078 2011-12-18 08:11:44Z ryandesign@macports.org $
    33
    44PortSystem          1.0
    5 
     5replaced_by         reduce
     6PortGroup           obsolete 1.0
    67name                reduce-algebra
    78svn.revision        1530
    89version             3.8.0-r${svn.revision}
    9 categories          math
    10 platforms           darwin
    11 license             BSD
    12 maintainers         gmail.com:mark.brethen
    13 
    14 description         REDUCE algebra system
    15 
    16 long_description    REDUCE is an interactive program designed for general \
    17                     algebraic computations of interest to mathematicians, \
    18                     scientists and engineers.
    19 
     10revision            1
     11license             BSD LGPL-2.1
     12maintainers         gmail.com:mark.brethen\
     13    openmaintainer
    2014homepage            http://reduce-algebra.sourceforge.net/
    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 "