Revision: 89373 http://trac.macports.org/changeset/89373 Author: ryandesign@macports.org Date: 2012-01-26 19:33:17 -0800 (Thu, 26 Jan 2012) Log Message: ----------- pari: add modeline, adjust whitespace and formatting Modified Paths: -------------- trunk/dports/math/pari/Portfile Modified: trunk/dports/math/pari/Portfile =================================================================== --- trunk/dports/math/pari/Portfile 2012-01-27 02:47:57 UTC (rev 89372) +++ trunk/dports/math/pari/Portfile 2012-01-27 03:33:17 UTC (rev 89373) @@ -1,26 +1,40 @@ +# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 # $Id$ -PortSystem 1.0 -PortGroup muniversal 1.0 +PortSystem 1.0 +PortGroup muniversal 1.0 name pari version 2.5.0 categories math platforms darwin maintainers nomaintainer + description PARI/GP computer algebra system + long_description PARI/GP is a widely used computer algebra system designed \ for fast computations in number theory (factorizations, \ algebraic number theory, elliptic curves...) + homepage http://pari.math.u-bordeaux.fr/ master_sites ${homepage}/pub/pari/unix/ + checksums md5 0b595a1345679ff482785a686c863e9f \ sha1 d96250cd8b3e426f548a832f2f44fdfd30fd32b6 \ rmd160 f9b5375da10bfc5672fbe8b4ab4ac1eb0772b572 -depends_lib port:gmp port:ncurses port:readline -build.target gp +depends_lib port:gmp \ + port:ncurses \ + port:readline +patchfiles patch-Makefile.SH.diff + +post-patch { + reinplace "s|-dylib_|-|g" \ + ${worksrcpath}/config/Makefile.SH \ + ${worksrcpath}/config/get_dlld +} + # PARI/GP doesn't use autoconf, and if only *FLAGS environment variables are # used, libreadline is not found. One needs *PATH environment variables. configure.env C_INCLUDE_PATH=${prefix}/include \ @@ -31,28 +45,44 @@ # There are no reasons not to use it. If a no_gmp variant is needed, # one would need --without-gmp, as by default, PARI's Configure will # choose GMP if it can find it. -configure.args --mandir=${prefix}/share/man --with-gmp --with-readline \ +configure.args --mandir=${prefix}/share/man \ + --with-gmp \ + --with-readline \ --graphic=none configure.universal_args-delete --disable-dependency-tracking -patchfiles patch-Makefile.SH.diff - -post-patch { - reinplace "s|-dylib_|-|g" \ - ${worksrcpath}/config/Makefile.SH \ - ${worksrcpath}/config/get_dlld -} - pre-configure { file rename -force ${worksrcpath}/Configure ${worksrcpath}/configure if {![variant_isset doc]} { - reinplace "s/\\(doc all:\\).*/\\1/" \ - ${worksrcpath}/config/DOC_Make.SH - reinplace "/INSTALL_DATA.*\\.\\(dvi\\|ps\\)/d" \ - ${worksrcpath}/config/Makefile.SH + reinplace "s/\\(doc all:\\).*/\\1/" \ + ${worksrcpath}/config/DOC_Make.SH + reinplace "/INSTALL_DATA.*\\.\\(dvi\\|ps\\)/d" \ + ${worksrcpath}/config/Makefile.SH } } +build.target gp + +post-destroot { + global os.arch + set docdir ${destroot}${prefix}/share/doc/${name} + file mkdir ${docdir} + xinstall -m 644 -v -W ${worksrcpath} \ + AUTHORS CHANGES COPYING ${docdir} + system "ln -s ../../${name}/doc ${docdir}/doc" + if {[variant_isset doc]} { + if {[variant_isset universal]} { + xinstall -m 644 -v -W ${worksrcpath}-${os.arch}/doc \ + develop.pdf libpari.pdf refcard.pdf tutorial.pdf users.pdf \ + ${destroot}${prefix}/share/${name}/doc + } else { + xinstall -m 644 -v -W ${worksrcpath}/doc \ + develop.pdf libpari.pdf refcard.pdf tutorial.pdf users.pdf \ + ${destroot}${prefix}/share/${name}/doc + } + } +} + variant doc description {Build DVI/PDF/PS documentation} { depends_build-append path:${prefix}/bin/tex:texlive build.target-append docpdf @@ -81,26 +111,6 @@ configure.args-append --graphic=fltk } -post-destroot { - global os.arch - set docdir ${destroot}${prefix}/share/doc/${name} - file mkdir ${docdir} - xinstall -m 644 -v -W ${worksrcpath} \ - AUTHORS CHANGES COPYING ${docdir} - system "ln -s ../../${name}/doc ${docdir}/doc" - if {[variant_isset doc]} { - if {[variant_isset universal]} { - xinstall -m 644 -v -W ${worksrcpath}-${os.arch}/doc \ - develop.pdf libpari.pdf refcard.pdf tutorial.pdf users.pdf \ - ${destroot}${prefix}/share/${name}/doc - } else { - xinstall -m 644 -v -W ${worksrcpath}/doc \ - develop.pdf libpari.pdf refcard.pdf tutorial.pdf users.pdf \ - ${destroot}${prefix}/share/${name}/doc - } - } -} - livecheck.type regex livecheck.url ${master_sites}?M=D livecheck.regex ${name}-(\\d+\\.\\d+\\.\\d+)
participants (1)
-
ryandesign@macports.org