source: trunk/dports/math/pari/Portfile @ 67323

Last change on this file since 67323 was 67323, checked in by vinc17@…, 10 years ago

Added openmaintainer.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.6 KB
Line 
1# $Id: Portfile 67323 2010-05-05 15:51:10Z vinc17@macports.org $
2
3PortSystem 1.0
4PortGroup  muniversal 1.0
5
6name                pari
7version             2.3.5
8revision            1
9categories          math
10platforms           darwin
11maintainers         vinc17 openmaintainer
12description         PARI/GP computer algebra system
13long_description    PARI/GP is a widely used computer algebra system designed \
14                    for fast  computations in number theory (factorizations, \
15                    algebraic number theory,  elliptic curves...)
16homepage            http://pari.math.u-bordeaux.fr/
17master_sites        ${homepage}/pub/pari/unix/
18checksums           md5     6077c6db56fdd32e39a06a9bf320e1f7 \
19                    sha1    f211ccfe42a4b18dbcde832dfd1ece6f477f4966 \
20                    rmd160  488adf3af5398d0ab5390eb86b65cd79bd1044c5
21depends_lib         port:xorg-libX11 port:ncurses port:readline
22
23build.target        gp
24
25# PARI/GP doesn't use autoconf, and if only *FLAGS environment variables are
26# used, libreadline is not found. One needs *PATH environment variables.
27configure.env       C_INCLUDE_PATH=${prefix}/include \
28                    LIBRARY_PATH=${prefix}/lib
29
30configure.args      --mandir=${prefix}/share/man --with-readline
31configure.universal_args-delete --disable-dependency-tracking
32
33pre-configure {
34    file rename -force ${worksrcpath}/Configure ${worksrcpath}/configure
35    if {![variant_isset doc]} {
36      reinplace "s/\\(doc all:\\).*/\\1/" \
37        ${worksrcpath}/config/DOC_Make.SH
38      reinplace "/INSTALL_DATA.*\\.\\(dvi\\|ps\\)/d" \
39        ${worksrcpath}/config/Makefile.SH
40    }
41}
42
43variant doc description {Build DVI/PDF/PS documentation} {
44    depends_build-append path:${prefix}/bin/tex:texlive
45    build.target-append docpdf
46}
47
48variant gmp description {GNU MP support} {
49    depends_lib-append port:gmp
50    configure.args-append --with-gmp
51}
52
53post-destroot {
54    global os.arch
55    set docdir ${destroot}${prefix}/share/doc/${name}
56    file mkdir ${docdir}
57    xinstall -m 644 -v -W ${worksrcpath} \
58      AUTHORS CHANGES COPYING ${docdir}
59    system "ln -s ../../${name}/doc ${docdir}/doc"
60    if {[variant_isset doc]} {
61        if {[variant_isset universal]} {
62            xinstall -m 644 -v -W ${worksrcpath}-${os.arch}/doc \
63              develop.pdf libpari.pdf refcard.pdf tutorial.pdf users.pdf \
64              ${destroot}${prefix}/share/${name}/doc
65        } else {
66            xinstall -m 644 -v -W ${worksrcpath}/doc \
67              develop.pdf libpari.pdf refcard.pdf tutorial.pdf users.pdf \
68              ${destroot}${prefix}/share/${name}/doc
69        }
70    }
71}
72
73livecheck.type      regex
74livecheck.url       ${master_sites}?M=D
75livecheck.regex     ${name}-(\\d+\\.\\d+\\.\\d+)
Note: See TracBrowser for help on using the repository browser.