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

PortSystem          1.0
PortGroup           compilers 1.0

name                libxc
version             2.1.2
# We cannot use the 2.2.x series until the dependents octopus, ape, and abinit are able to use it.
categories          science
platforms           darwin
license             LGPL-3+
maintainers         dstrubbe

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/octopus/wiki/index.php/Libxc
master_sites        http://www.tddft.org/programs/octopus/download/libxc

checksums           rmd160  244f4f483021e740d0d38cafe1cc8587afc217f8 \
                    sha256  6c866168fa6245e6777cec8a1da257975e2e4cf410681416e248fbff2b03e55d

compilers.choose    fc
compilers.setup     require_fortran

use_parallel_build  yes

universal_variant   no

test.run            yes
test.target         check

livecheck.type      regex
livecheck.url       http://www.tddft.org/programs/octopus/wiki/index.php/Libxc:download
livecheck.regex     ${name} (\[0-9.\]+)