# -*- 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.0
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  bbe67d97908feca27392f118b554f1993d8765f8 \
                    sha256  5e04132984ad83cab9cc53f76072d2b5ef5a6d24b0a9ff9047a8ff96121bcc63 \
                    size    37472513

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
