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

# Make sure to keep in sync with mpich
name                mpi-doc
version             5.0.1
revision            0

license             BSD
categories          science parallel net
platforms           any
maintainers         {mascguy @mascguy} \
                    openmaintainer
homepage            https://www.mpich.org
supported_archs     noarch

description         Message Passing Interface (MPI) Library Man Pages
long_description    {*}${description}

master_sites        ${homepage}static/downloads/${version}/
distname            mpich-${version}

checksums           rmd160  5ce91d362a6c07bbcd9e55d2451c6bd79e6fa94c \
                    sha256  8c1832a13ddacf071685069f5fadfd1f2877a29e1a628652892c65211b1f3327 \
                    size    37688810

dist_subdir         mpich

use_configure       no

build               { }

destroot {
    delete ${destroot}${prefix}/share/man/man1
    delete ${destroot}${prefix}/share/man/man3
    move ${worksrcpath}/man/man1 ${destroot}${prefix}/share/man/
    move ${worksrcpath}/man/man3 ${destroot}${prefix}/share/man/
}

livecheck.type      regex
livecheck.regex     mpich-(\[0-9.p\]+)${extract.suffix}
livecheck.url       ${homepage}downloads/index.php?s=downloads
