Ticket #17124: Portfile.diff
File Portfile.diff, 1.8 KB (added by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez), 16 years ago) |
---|
-
Portfile
old new 1 1 # $Id: Portfile 28510 2007-09-02 21:18:39Z mww@macports.org $ 2 2 3 3 PortSystem 1.0 4 4 5 name ntl 5 version 5.4 6 version 5.4.2 6 7 categories math 7 maintainers ralf@fimaluka.org8 maintainers fimaluka.org:ralf 8 9 description NTL: A Library for doing Number Theory 9 10 long_description NTL is a high-performance, portable C++ library providing\ 10 11 data structures and algorithms for arbitrary length\ … … 14 15 15 16 homepage http://shoup.net/ntl/ 16 17 master_sites ${homepage} 17 checksums md5 1d2a683ecbc12cdf03bf92dbc97c0dd4 18 checksums md5 0aac5c680eee09a19732e1601b237a0b \ 19 sha1 0250461a5e205663f7e446211c9571b6aad249e9 \ 20 rmd160 5657f4f3b18281787b85f561b184c757254f656f 18 21 19 depends_build bin:perl:perl5.822 depends_build path:bin/perl:perl5 20 23 21 24 test.run no 22 25 23 26 configure.pre_args "PREFIX=${prefix} DOCDIR=${prefix}/share/doc" 24 27 configure.args "NTL_STD_CXX=on" 28 configure.args-append "CC=\$CC CXX=\$CXX CFLAGS=\$CFLAGS CXXFLAGS=\$CXXFLAGS" 25 29 26 30 worksrcdir ${name}-${version}/src 27 31 28 32 destroot.destdir "PREFIX=${destroot}${prefix} DOCDIR=${destroot}${prefix}/share/doc" 29 33 34 post-patch { 35 # Ensure that the correct perl is used 36 reinplace "s|perl DoConfig|${prefix}/bin/perl DoConfig|g" ${worksrcpath}/configure 37 } 38 30 39 variant gmp { 31 40 depends_lib-append port:gmp 32 41 configure.args-append "NTL_GMP_LIP=on GMP_PREFIX=${prefix}" … … 39 48 xinstall -m 0644 ${worksrcpath}/../doc/copying.txt \ 40 49 ${destroot}${prefix}/share/doc/${name}/LICENSE 41 50 } 51 52 livecheck.url http://shoup.net/ntl/download.html 53 livecheck.regex "Download NTL (\\d(?:\\.\\d+)*)"