Ticket #17124: Portfile.diff

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

    old new  
    11# $Id: Portfile 28510 2007-09-02 21:18:39Z mww@macports.org $
    22
    33PortSystem 1.0
     4
    45name            ntl
    5 version         5.4
     6version         5.4.2
    67categories      math
    7 maintainers     ralf@fimaluka.org
     8maintainers     fimaluka.org:ralf
    89description     NTL: A Library for doing Number Theory
    910long_description NTL is a high-performance, portable C++ library providing\
    1011                 data structures and algorithms for arbitrary length\
     
    1415
    1516homepage                http://shoup.net/ntl/
    1617master_sites    ${homepage}
    17 checksums       md5 1d2a683ecbc12cdf03bf92dbc97c0dd4
     18checksums       md5 0aac5c680eee09a19732e1601b237a0b \
     19                sha1 0250461a5e205663f7e446211c9571b6aad249e9 \
     20                rmd160 5657f4f3b18281787b85f561b184c757254f656f
    1821
    19 depends_build   bin:perl:perl5.8
     22depends_build   path:bin/perl:perl5
    2023
    2124test.run        no
    2225
    2326configure.pre_args      "PREFIX=${prefix} DOCDIR=${prefix}/share/doc"
    2427configure.args          "NTL_STD_CXX=on"
     28configure.args-append   "CC=\$CC CXX=\$CXX CFLAGS=\$CFLAGS CXXFLAGS=\$CXXFLAGS"
    2529
    2630worksrcdir      ${name}-${version}/src
    2731
    2832destroot.destdir "PREFIX=${destroot}${prefix} DOCDIR=${destroot}${prefix}/share/doc"
    2933
     34post-patch {
     35        # Ensure that the correct perl is used
     36        reinplace "s|perl DoConfig|${prefix}/bin/perl DoConfig|g" ${worksrcpath}/configure
     37}
     38
    3039variant gmp {
    3140        depends_lib-append      port:gmp
    3241        configure.args-append   "NTL_GMP_LIP=on GMP_PREFIX=${prefix}"
     
    3948        xinstall -m 0644 ${worksrcpath}/../doc/copying.txt \
    4049                         ${destroot}${prefix}/share/doc/${name}/LICENSE
    4150}
     51
     52livecheck.url    http://shoup.net/ntl/download.html
     53livecheck.regex  "Download NTL (\\d(?:\\.\\d+)*)"