# -*- 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                libctl
version             3.2.2
revision            3
categories          science
license             GPL-2+

maintainers         saabusa.com:Yogesh.Sharma openmaintainer

description         Scheme/Guile-based scripting of scientific code.
long_description    \
    Libctl is a free Guile-based library implementing flexible control files \
    for scientific simulations. It was written to support the MIT Photonic \
    Bands and Meep software, but has proven useful in other programs too.

homepage            http://ab-initio.mit.edu/wiki/index.php/Libctl
master_sites        http://ab-initio.mit.edu/libctl/

checksums           rmd160  2390548f7a30e709e22b3ee12f21ec9f7e45def7 \
                    sha256  8abd8b58bc60e84e16d25b56f71020e0cb24d75b28bc5db86d50028197c7efbc \
                    size    505796

depends_lib         port:guile-2.2

configure.env-append GUILE=${prefix}/bin/guile-2.2
configure.env-append GUILE_CONFIG=${prefix}/bin/guile-config-2.2

compilers.choose    f77
compilers.setup     require_fortran

# gcc-4.2 fails with multiple errors: https://trac.macports.org/ticket/66164
# Xcode clang of 10.6 fails on guile headers.
compiler.blacklist-append *gcc-4.* {clang < 421}

livecheck.type      regex
livecheck.url       ${homepage}
livecheck.regex     <b>${name} (\[0-9.\]+)</b> is the current version
