# -*- 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-num
github.setup        ocaml num 1.5 v
revision            0

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

description         Legacy OCaml arbitrary-precision integer library
long_description    {*}${description}

checksums           rmd160  070877307764b6b059abf50950abe81a6e2a7f41 \
                    sha256  7ae07c8f5601e2dfc5008a62dcaf2719912ae596a19365c5d7bdf2230515959a \
                    size    67633
github.tarball_from archive

platform darwin powerpc {
    # Compilation freezes due to ocamlopt not being found.
    # https://github.com/ocaml/num/issues/39
    patchfiles-append patch-no-ocamlopt.diff
}

ocaml.use_findlib   yes

use_configure       no

destroot.target     findlib-install

test.run            yes
test.cmd            make
test.target         test
