PortSystem 1.0
PortGroup       github 1.0

github.setup    micans mcl 14-137
revision        1
checksums       rmd160  063e6415a0d23dcdb2fa8663fe62a95ec4f67f5d \
                sha256  b5786897a8a8ca119eb355a5630806a4da72ea84243dba85b19a86f14757b497 \
                size    3035491

description      MCL - a cluster algorithm for graphs.
long_description \
    The MCL algorithm is short for the Markov Cluster Algorithm, \
    a fast and scalable unsupervised cluster algorithm for graphs \
    based on simulation of (stochastic) flow in graphs.
maintainers     nomaintainer
categories      science math
license         GPL-3+
homepage        https://micans.org/mcl/
master_sites    ${homepage}src/

patchfiles      patch-src-impala-edge.h.diff \
                implicit.patch

configure.args  --enable-blast --mandir=${prefix}/share/man

platform darwin arm {
    depends_build-append    port:automake

    post-patch {
        # Use newer config.guess and config.sub to support Apple Silicon.
        set automake_dirs [glob -directory ${prefix}/share automake-*]
        set automake_dir [lindex [lsort -command vercmp $automake_dirs] end]
        copy -force ${automake_dir}/config.guess ${automake_dir}/config.sub \
            ${worksrcpath}
    }
}

livecheck.regex ${name}-(\[0-9\-\]+)${extract.suffix}
