# -*- 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             4.3.2
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  b7e1a2b1e3914bad58bfb238339a64a5c42494c6 \
                    sha256  47d774587a7156a53752218c811c852e70ac44db9c502dc3f399b4cb817e3818 \
                    size    37697007

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
