easyblock = 'ConfigureMake'

name = 'DMTCP'
version = '2.5.1'

homepage = 'http://dmtcp.sourceforge.net/'
description = """DMTCP (Distributed MultiThreaded Checkpointing) transparently checkpoints a single-host or
 distributed computation in user-space -- with no modifications to user code or to the O/S. It works on most Linux
 applications, including Python, Matlab, R, GUI desktops, MPI, etc."""

toolchain = {'name': 'dummy', 'version': ''}

source_urls = [SOURCEFORGE_SOURCE]
sources = [SOURCELOWER_TAR_GZ]
checksums = ['f37d766933aee1f8fe70352faa844794047583a9eb2b44a40cbd1234d7ed6cd5']

builddependencies = [('Autotools', '20150215')]

runtest = 'check'

sanity_check_paths = {
    'files': ['bin/dmtcp_command', 'bin/dmtcp_coordinator', 'bin/dmtcp_launch', 'bin/dmtcp_restart',
              'include/dmtcp.h'],
    'dirs': ['lib/dmtcp', 'share/man/man1'],
}

moduleclass = 'tools'
