Ticket #17126: Portfile.diff
File Portfile.diff, 2.2 KB (added by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez), 16 years ago) |
---|
-
Portfile
old new 1 1 # $Id: Portfile 31004 2007-11-13 18:07:09Z simon@macports.org $ 2 2 3 3 PortSystem 1.0 4 4 5 name yacas 5 version 1. 1.106 version 1.2.2 6 7 categories math 7 maintainers olt@bogosoft.com 8 platforms darwin 9 homepage http://yacas.sourceforge.net/ 10 maintainers bogosoft.com:olt 8 11 description Yet Another Computer Algebra System 9 12 long_description YACAS is an easy to use, general purpose Computer Algebra\ 10 13 System, a program for symbolic manipulation of mathematical\ … … 12 15 symbolic as well as arbitrary-precision numerical computations. The\ 13 16 system has a library of scripts that implement many of the symbolic\ 14 17 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 38e0dce2cf461ab76573b82a5d0d95b9dce290db19 18 20 patchfiles patch-Makefile.in 19 master_sites http://yacas.sourceforge.net/backups/ 21 20 22 depends_build bin:perl:perl5.8 21 checksums 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 28 depends_lib path:bin/perl:perl5 29 30 post-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 } 23 39 24 configure.args-append -- disable-shared40 configure.args-append --with-html-dir=${prefix}/share/doc/${name} 25 41 26 42 test.run yes 27 43 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 } 44 livecheck.url http://yacas.sourceforge.net/downloads.html 45 livecheck.regex "version (\\d(?:\\.\\d+)*)"