Ticket #17126: Portfile.diff

File Portfile.diff, 2.2 KB (added by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez), 16 years ago)
  • Portfile

    old new  
    11# $Id: Portfile 31004 2007-11-13 18:07:09Z simon@macports.org $
    22
    33PortSystem 1.0
     4
    45name            yacas
    5 version         1.1.10
     6version         1.2.2
    67categories      math
    7 maintainers     olt@bogosoft.com
     8platforms       darwin
     9homepage        http://yacas.sourceforge.net/
     10maintainers     bogosoft.com:olt
    811description     Yet Another Computer Algebra System
    912long_description YACAS is an easy to use, general purpose Computer Algebra\
    1013        System, a program for symbolic manipulation of mathematical\
     
    1215        symbolic as well as arbitrary-precision numerical computations.  The\
    1316        system has a library of scripts that implement many of the symbolic\
    1417        algebra operations - new algorithms can be easily added to the library.
    15 master_sites    http://yacas.sourceforge.net/backups/
    16 checksums   md5 bc391471ea02a2e226d5b2658c1150ac \
    17             sha1 c59d138345da0ec365cfe3e018c9ebe0d81e310c \
    18             rmd160 38e0dce2cf461ab76573b82a5d0d95b9dce290db
    1918
    20 patchfiles  patch-Makefile.in
     19master_sites    http://yacas.sourceforge.net/backups/
    2120
    22 depends_build   bin:perl:perl5.8
     21checksums   md5 329f149ca3ceb976a7e596b56fc3cba5 \
     22            sha1 8e753c22c207a5aa5e9fd2a9d519605d5b73d5b9 \
     23            rmd160 6c49ca60e4f1f92e7d30e8d91b6126e55d77321b
     24
     25
     26# perl is used to build documentation
     27# ${prefix}/share/yacas/manmake/txt2yacasdoc.pl requires perl after build
     28depends_lib     path:bin/perl:perl5
     29
     30post-patch {
     31    #Ensure that the correct perl is used
     32    foreach f {ytxt2tex Makefile.in book2ys.sh book2xml.sh book2txt.sh book2TeX.sh} {
     33        reinplace -E "s|(\[^a-zA-Z_\])perl |\\1${prefix}/bin/perl |g" ${worksrcpath}/manmake/${f}
     34    }
     35    foreach f [glob -directory ${worksrcpath}/manmake *.pl] {
     36         reinplace  "s|/usr/bin/perl|${prefix}/bin/perl|g" ${f}
     37    }
     38}
    2339
    24 configure.args-append   --disable-shared
     40configure.args-append   --with-html-dir=${prefix}/share/doc/${name}
    2541
    2642test.run        yes
    2743
    28 variant gmp {
    29         # for faster arbitrary precision arithmetics
    30         depends_lib-append      lib:libgmp.4:gmp
    31         configure.args-append   --with-numlib=gmp
    32 }
     44livecheck.url    http://yacas.sourceforge.net/downloads.html
     45livecheck.regex  "version (\\d(?:\\.\\d+)*)"