# This file is an EasyBuild reciPY as per https://github.com/hpcugent/easybuild
# Author: Benjamin P. Roberts
# New Zealand eScience Infrastructure
# The University of Auckland, Auckland, New Zealand

easyblock = 'ConfigureMake'

name = 'BEEF'
version = '0.1.1-r16'

homepage = 'http://suncat.stanford.edu/facility/software/functional'
description = """BEEF is a library-based implementation of the Bayesian
Error Estimation Functional, suitable for linking against by Fortran-
or C-based DFT codes. A description of BEEF can be found at
http://dx.doi.org/10.1103/PhysRevB.85.235149."""

toolchain = {'name': 'iomkl', 'version': '4.6.13'}
toolchainopts = {'openmp': False, 'usempi': False}

# To make a source tarball from the SVN repository:
# 1. svn co -r 16 svn://suncatls1.slac.stanford.edu/beef
# 2. tar --exclude \.svn -cjvf beef-0.1.1-r16.tar.bz2 beef/trunk
sources = [SOURCELOWER_TAR_BZ2]

configopts = 'CC="$CC"'

sanity_check_paths = {
    'files': ['bin/bee', 'lib/libbeef.a'],
    'dirs': [],
}

moduleclass = 'chem'
