Changeset 89373


Ignore:
Timestamp:
Jan 27, 2012, 3:33:17 AM (9 years ago)
Author:
ryandesign@…
Message:

pari: add modeline, adjust whitespace and formatting

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/math/pari/Portfile

    r88158 r89373  
     1# -*- 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
    12# $Id$
    23
    3 PortSystem 1.0
    4 PortGroup  muniversal 1.0
     4PortSystem          1.0
     5PortGroup           muniversal 1.0
    56
    67name                pari
     
    910platforms           darwin
    1011maintainers         nomaintainer
     12
    1113description         PARI/GP computer algebra system
     14
    1215long_description    PARI/GP is a widely used computer algebra system designed \
    1316                    for fast  computations in number theory (factorizations, \
    1417                    algebraic number theory,  elliptic curves...)
     18
    1519homepage            http://pari.math.u-bordeaux.fr/
    1620master_sites        ${homepage}/pub/pari/unix/
     21
    1722checksums           md5     0b595a1345679ff482785a686c863e9f \
    1823                    sha1    d96250cd8b3e426f548a832f2f44fdfd30fd32b6 \
    1924                    rmd160  f9b5375da10bfc5672fbe8b4ab4ac1eb0772b572
    20 depends_lib         port:gmp port:ncurses port:readline
    2125
    22 build.target        gp
     26depends_lib         port:gmp \
     27                    port:ncurses \
     28                    port:readline
     29
     30patchfiles          patch-Makefile.SH.diff
     31
     32post-patch {
     33    reinplace "s|-dylib_|-|g" \
     34        ${worksrcpath}/config/Makefile.SH \
     35        ${worksrcpath}/config/get_dlld
     36}
    2337
    2438# PARI/GP doesn't use autoconf, and if only *FLAGS environment variables are
     
    3246# one would need --without-gmp, as by default, PARI's Configure will
    3347# choose GMP if it can find it.
    34 configure.args      --mandir=${prefix}/share/man --with-gmp --with-readline \
     48configure.args      --mandir=${prefix}/share/man \
     49                    --with-gmp \
     50                    --with-readline \
    3551                    --graphic=none
    3652configure.universal_args-delete --disable-dependency-tracking
    37 
    38 patchfiles patch-Makefile.SH.diff
    39 
    40 post-patch {
    41     reinplace "s|-dylib_|-|g" \
    42       ${worksrcpath}/config/Makefile.SH \
    43       ${worksrcpath}/config/get_dlld
    44 }
    4553
    4654pre-configure {
    4755    file rename -force ${worksrcpath}/Configure ${worksrcpath}/configure
    4856    if {![variant_isset doc]} {
    49       reinplace "s/\\(doc all:\\).*/\\1/" \
    50         ${worksrcpath}/config/DOC_Make.SH
    51       reinplace "/INSTALL_DATA.*\\.\\(dvi\\|ps\\)/d" \
    52         ${worksrcpath}/config/Makefile.SH
     57        reinplace "s/\\(doc all:\\).*/\\1/" \
     58            ${worksrcpath}/config/DOC_Make.SH
     59        reinplace "/INSTALL_DATA.*\\.\\(dvi\\|ps\\)/d" \
     60            ${worksrcpath}/config/Makefile.SH
     61    }
     62}
     63
     64build.target        gp
     65
     66post-destroot {
     67    global os.arch
     68    set docdir ${destroot}${prefix}/share/doc/${name}
     69    file mkdir ${docdir}
     70    xinstall -m 644 -v -W ${worksrcpath} \
     71        AUTHORS CHANGES COPYING ${docdir}
     72    system "ln -s ../../${name}/doc ${docdir}/doc"
     73    if {[variant_isset doc]} {
     74        if {[variant_isset universal]} {
     75            xinstall -m 644 -v -W ${worksrcpath}-${os.arch}/doc \
     76                develop.pdf libpari.pdf refcard.pdf tutorial.pdf users.pdf \
     77                ${destroot}${prefix}/share/${name}/doc
     78        } else {
     79            xinstall -m 644 -v -W ${worksrcpath}/doc \
     80                develop.pdf libpari.pdf refcard.pdf tutorial.pdf users.pdf \
     81                ${destroot}${prefix}/share/${name}/doc
     82        }
    5383    }
    5484}
     
    82112}
    83113
    84 post-destroot {
    85     global os.arch
    86     set docdir ${destroot}${prefix}/share/doc/${name}
    87     file mkdir ${docdir}
    88     xinstall -m 644 -v -W ${worksrcpath} \
    89       AUTHORS CHANGES COPYING ${docdir}
    90     system "ln -s ../../${name}/doc ${docdir}/doc"
    91     if {[variant_isset doc]} {
    92         if {[variant_isset universal]} {
    93             xinstall -m 644 -v -W ${worksrcpath}-${os.arch}/doc \
    94               develop.pdf libpari.pdf refcard.pdf tutorial.pdf users.pdf \
    95               ${destroot}${prefix}/share/${name}/doc
    96         } else {
    97             xinstall -m 644 -v -W ${worksrcpath}/doc \
    98               develop.pdf libpari.pdf refcard.pdf tutorial.pdf users.pdf \
    99               ${destroot}${prefix}/share/${name}/doc
    100         }
    101     }
    102 }
    103 
    104114livecheck.type      regex
    105115livecheck.url       ${master_sites}?M=D
Note: See TracChangeset for help on using the changeset viewer.