# IT4Innovations 2020
# LK

easyblock = 'CMakeMake'

name = 'RELION'
version = '3.1.0'

homepage = 'http://www2.mrc-lmb.cam.ac.uk/relion/index.php/Main_Page'
description = """RELION (for REgularised LIkelihood OptimisatioN, pronounce rely-on) is a stand-alone computer
 program that employs an empirical Bayesian approach to refinement of (multiple) 3D reconstructions or 2D class
 averages in electron cryo-microscopy (cryo-EM)."""

toolchain = {'name': 'intel', 'version': '2020a'}

source_urls = ['https://github.com/3dem/relion/archive/']
sources = ['%(version)s.tar.gz']
patches = ['fltk-ftp.patch']

builddependencies = [
    ('CMake', '3.16.4'),
]

dependencies = [
    ('LibTIFF', '4.1.0'),
]

configopts = "-DMKLFFT=ON -DFORCE_OWN_FLTK=ON "

sanity_check_paths = {
    'files': ['bin/relion'],
    'dirs': []
}

moduleclass = 'bio'
