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

name                cmh
version             1.1.1
revision            1
categories          math
license             GPL-3
maintainers         {@barracuda156 gmail.com:vital.had} openmaintainer
description         Compute Igusa class polynomials
long_description    {*}${description}
homepage            https://www.multiprecision.org/cmh/home.html
master_sites        https://www.multiprecision.org/downloads/
checksums           rmd160  0803d09ab2bca13cc852a7fded72aaae4a48890b \
                    sha256  214d5d51fea4af54cda85ef9aee43eff8a711b725a527574d0f3b5581dde4d59 \
                    size    511873

use_autoreconf      yes

depends_lib-append  port:fplll \
                    port:gmp \
                    port:libmpc \
                    port:mpfr \
                    port:mpfrcx \
                    port:pari

patchfiles          patch-asprintf.diff \
                    patch-test.diff

configure.args-append \
                    --enable-mpi=no

platform darwin 10 powerpc {
configure.args-append \
                    --build=powerpc-apple-darwin${os.major}
}

test.run            yes
test.dir            ${worksrcpath}/tests
test.cmd            ./test.sh
test.target

livecheck.type      regex
livecheck.url       https://www.multiprecision.org/cmh/download.html
livecheck.regex     ${name}-(\[0-9.\]+)${extract.suffix}
