# IT4Innovations 2020 easyblock = 'ConfigureMake' name = 'BAGEL' version = '1.2.2' homepage = "http://www.nubakery.org" description = """BAGEL (Brilliantly Advanced General Electronic-structure Library) is a parallel electronic-structure program.""" # Note: A compiler bug(?) in template deduction prevents newer versions of icpc to compile this software. toolchain = {'name': 'intel', 'version': '2020a'} source_urls = ['https://github.com/nubakery/bagel/archive/'] sources = ['v%(version)s.tar.gz'] builddependencies = [ ('Autotools', '20180311'), ] dependencies = [ ('Boost', '1.72.0'), ('libxc', '4.3.4'), ] # Hack, because bagel-v1.1.1 uses outdated filenames: preconfigopts = 'sed -i "s|-gcc-mt||g" configure.ac && ' preconfigopts += './autogen.sh && ' preconfigopts += 'CXXFLAGS="$CXXFLAGS -DNDEBUG" ' configopts = ' --with-boost=$BOOST_ROOT --with-mpi=intel --enable-mkl --with-libxc ' sanity_check_paths = { 'files': ['bin/BAGEL', 'lib/libbagel.%s' % SHLIB_EXT], 'dirs': [] } moduleclass = 'phys'