# -*- 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
PortGroup           compilers 1.0

name                ftidy
version             7.2
revision            2
categories          lang
platforms           darwin
license             Noncommercial
maintainers         nomaintainer
homepage            http://web.archive.org/web/20120905025547/http://www.unb.ca/fredericton/science/chem/ajit/tidy/
master_sites        ${homepage}
distname            tidy72sc
use_zip             yes
extract.mkdir       yes
build.args          -fdiagnostics-color=auto tidy.for -o ftidy
use_configure       no
universal_variant   no
description         Fortran Tidy

long_description \
    TIDY v${version} (ftidy) is a highly configurable FORTRAN program \
    to indent and renumber statements, selectively change case \
    of keywords or non-keywords, and do various other clean-up \
    tasks on FORTRAN-77 source programs.

checksums           rmd160  c53acf52f7cb0ee26d9332d398492bf5258c4ef6 \
                    sha256  f41ba4ed96df654f1b53c6958b2a7cd5563224a4e1485fb094c5a78186098bf0 \
                    size    56464

patchfiles          tidy.for.patch

compilers.choose    f77
compilers.setup     require_fortran

build.pre_args      ${configure.fflags} ${configure.f77_archflags}
pre-build {
    build.cmd       ${configure.f77}
}

destroot {
    xinstall -m 0755 -W ${worksrcpath} ftidy      ${destroot}${prefix}/bin
    xinstall -m 0755 -W ${worksrcpath} tidy.ini   ${destroot}${prefix}/bin
    xinstall -d ${destroot}${prefix}/share/doc/ftidy
    xinstall -m 0644 -W ${worksrcpath} read1st.txt tidy.txt ${destroot}${prefix}/share/doc/ftidy/
}

livecheck.type      none
