# $Id$

PortSystem      1.0
PortGroup       php5extension 1.0

php5extension.setup big_int 1.0.7 pecl
categories      php devel
platforms       darwin
maintainers     nomaintainer
description     big_int library

long_description \
    A big_int library provides a set of functions for calculations with \
    arbitrary length integers and bitsets. Functions from this package are \
    useful for number theory applications. For example, in two-keys \
    cryptography. The package has many bitset functions, which allow to work \
    with arbitrary length bitsets. This package is much faster than bundled \
    into PHP BCMath and consists almost all functions, which are implemented \
    in PHP GMP extension, but it needn't any external libraries.

checksums       md5     d858d5bcfd3f789cb1ae8cb8ff09d3e9 \
                sha1    3687c4b479c50118a4a4182e567242f0bf88d557 \
                rmd160  bfb06f73e73578ff7e01b6d9c56bc594f354839a

use_parallel_build yes

post-destroot {
    set docdir ${prefix}/share/doc/${name}
    xinstall -d ${destroot}${docdir}
    xinstall -m 644 -W ${worksrcpath} CREDITS LICENSE README \
        ${destroot}${docdir}
    xinstall -d ${destroot}${docdir}/html
    xinstall -m 644 ${worksrcpath}/docs/index.html ${destroot}${docdir}/html
}

livecheck.regex {(\d+(?:\.\d+)*)</a></th>}