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

name            fcat
version         1.0
revision        2
categories      devel
platforms       any
license         restrictive nomirror
maintainers     {@kamischi web.de:karl-michael.schindler} openmaintainer
homepage        http://yifanhu.net/SOFTWARE/FCAT/
master_sites    ${homepage}
distname        ${name}
worksrcdir      FCAT
checksums       rmd160  8632806c49472bfaa47d950a43931ef89be2e660 \
                sha256  2218a9daf99bc2f1e877e1fe75196b2d6be288413f098a79910cc6ec51ff01ab \
                size    9601

description     Fortran Coverage Analysis Tool

long_description \
    The FCAT tool is used for the Coverage Analysis of FORTRAN codes. \
    It finds out cold and hot spots mainly in F90/F95 code, but also \
    in fixed formatted F77 FORTRAN.

patchfiles      patch-fcat.diff
post-patch {
    reinplace "s|__MACPORTS_PERL5__|${prefix}/bin/perl5|g" ${worksrcpath}/bin/fcat
}

supported_archs noarch
installs_libs   no
depends_lib     port:perl5
use_configure   no
build           {}

destroot {
    xinstall -m 0755 -W ${worksrcpath}/bin fcat \
        ${destroot}${prefix}/bin
    xinstall -d -m 0755 ${destroot}${prefix}/share/doc/${name}/examples
    xinstall -m 0644 -W ${worksrcpath} README \
        ${destroot}${prefix}/share/doc/${name}
    xinstall -m 0644 -W ${worksrcpath}/example a.f90 b.f90 c.f90 Makefile \
        ${destroot}${prefix}/share/doc/${name}/examples
}

livecheck.type   none
