# -*- 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.2.3
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  2863f87760058f23e7598ad851af177a666b987c \
    sha256  7a019180c51d1738ad9c5d8d452314de65e828ee240bcb2d1f80de9a65be88a8 \
    size    40268629

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