# -*- 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

PortSystem      1.0
PortGroup       php 1.1

name            php-big_int
version         1.0.7
revision        1
categories      php devel
platforms       darwin
maintainers     ryandesign openmaintainer
license         Permissive

php.branches    5.3 5.4 5.5 5.6
php.pecl        yes

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

if {${name} ne ${subport}} {
    use_parallel_build yes
    
    post-destroot {
        set docdir ${prefix}/share/doc/${subport}
        xinstall -d ${destroot}${docdir}
        xinstall -m 644 -W ${worksrcpath} CREDITS LICENSE README ${destroot}${docdir}
        copy ${worksrcpath}/docs ${destroot}${docdir}/html
    }
}