# -*- 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           github 1.0
PortGroup           ocaml 1.1

name                ocaml-zarith
github.setup        ocaml Zarith 1.14 release-
revision            0

categories          ocaml devel
maintainers         {landonf @landonf} openmaintainer
license             LGPL-2

description         Arbitrary-precision integers for OCaml
long_description    \
        The Zarith library implements arithmetic and logical operations \
        over arbitrary-precision integers. It uses GMP to efficiently \
        implement arithmetic over big integers. Small integers are \
        represented as Caml unboxed integers, for speed and space economy.

checksums           rmd160  1e7b6876f3533e8e8dfd9980a1dc0c216f5e9e7d \
                    sha256  5db9dcbd939153942a08581fabd846d0f3f2b8c67fe68b855127e0472d4d1859 \
                    size    91788
github.tarball_from archive

depends_build-append \
                    path:bin/perl:perl5
depends_lib-append  port:gmp \
                    port:ocaml \
                    port:ocaml-findlib

configure.pre_args
configure.args      -installdir ${destroot}${ocaml.package_dir} \
                    -ocamllibdir ${prefix}/lib/ocaml
configure.cc_archflags
configure.ld_archflags

use_parallel_build  no

post-destroot {
    xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
    xinstall -m 644 -W ${worksrcpath} Changes LICENSE README.md \
        ${destroot}${prefix}/share/doc/${name}
}

test.run            yes
test.dir            ${worksrcpath}/tests
