easyblock = 'CMakeMake'

name = 'EMAN2'
version = '2.11'

homepage = 'http://blake.bcm.edu/emanwiki/EMAN2'
description = """EMAN2 is the successor to EMAN1. It is a broadly based greyscale scientific image processing suite
 with a primary focus on processing data from transmission electron microscopes. """

toolchain = {'name': 'foss', 'version': '2015a'}

source_urls = ['http://ncmi.bcm.edu/ncmi/software/counter_222/software_130/']
sources = ['eman%(version)s.source.tar.gz']

pyver = '2.7.9'
versionsuffix = '-Python-%s' % pyver

dependencies = [
    # FFTW provided via toolchain
    ('GSL', '1.16'),
    ('Python', pyver),  # also provides numpy
    ('Boost', '1.58.0', versionsuffix),
    ('IPython', '3.2.0', versionsuffix),
    ('HDF5', '1.8.15-patch1'),
    ('freetype', '2.6'),
    # optional
    ('PyQt', '4.11.4', versionsuffix),
    ('LibTIFF', '4.0.4'),
    ('libpng', '1.6.17'),
]
builddependencies = [('CMake', '3.2.3')]

start_dir = 'eman2'
separate_build_dir = True

configopts = "-DEMAN_INSTALL_PREFIX=%(installdir)s -DENABLE_FTGL=OFF"

sanity_check_paths = {
    'files': ['bin/e2proc2d.py', 'bin/e2proc3d.py', 'bin/e2bdb.py', 'bin/e2iminfo.py', 'bin/e2display.py',
              'bin/e2filtertool.py'],
    'dirs': ['examples', 'include', 'lib', 'test/rt'],
}

moduleclass = 'bio'
