# -*- 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.6 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  b4124acb18649d6742c56192ef0220522c62466c \
                    sha256  b5cce325449aac746d5ca963d84688a627cca5b38d41e636cf71c68b60495b3e \
                    size    67748
github.tarball_from archive

patchfiles-append   patch-meta-num-conflict.diff

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
use_parallel_build  no

destroot.target     findlib-install

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