# -*- 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                libxc4
version             4.3.4
categories          science
platforms           darwin
license             LGPL-3+
maintainers         {dstrubbe @dstrubbe}
conflicts           libxc

description         exchange-correlation functionals for DFT

long_description    Libxc is a library of exchange-correlation functionals \
                    for density-functional theory. The aim is to provide a \
                    portable, well tested and reliable set of exchange and \
                    correlation functionals that can be used by all the \
                    ETSF codes and also other codes.

homepage            http://www.tddft.org/programs/libxc/
master_sites        http://www.tddft.org/programs/octopus/download/libxc/${version}

checksums           rmd160  48b4249e4ffa513e9c9c99e64bcc14c5d8ec7cc3 \
                    sha256  a8ee37ddc5079339854bd313272856c9d41a27802472ee9ae44b58ee9a298337 \
                    size    15602575

distname            libxc-${version}

compilers.choose    fc
compilers.setup     require_fortran -g95
# g95 cannot handle F2003 here

universal_variant   no

test.run            yes
test.target         check

livecheck.type      regex
livecheck.url       http://www.tddft.org/programs/libxc/download/previous
livecheck.regex     libxc-(\[0-9.\]+).tar.gz
