# -*- 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
# $Id: Portfile 119604 2014-05-02 09:12:57Z ryandesign@macports.org $

PortSystem          1.0

universal_variant    no

# make sure to keep in sync with mpich
name                mpi-doc
version             3.1

license             BSD
categories          science parallel net
platforms           darwin
maintainers         sean \
                    openmaintainer
homepage            http://www.mpich.org/

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

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

checksums \
    rmd160  8d682dd615f38b927197c94d8255625be3a24a54 \
    sha256  fcf96dbddb504a64d33833dc455be3dda1e71c7b3df411dfcf9df066d7c32c39

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
