easyblock = 'MakeCp'

name = 'snaphu'
version = '1.4.2'

homepage = 'https://web.stanford.edu/group/radar/softwareandlinks/sw/snaphu/'
description = """SNAPHU is an implementation of the Statistical-cost, Network-flow Algorithm for Phase Unwrapping
 proposed by Chen and Zebker"""

toolchain = {'name': 'intel', 'version': '2016b'}

source_urls = ['https://web.stanford.edu/group/radar/softwareandlinks/sw/snaphu/']
sources = ['snaphu-v%(version)s.tar.gz']

start_dir = 'src'

buildopts = 'CC="$CC" CFLAGS="$CFLAGS $LDFLAGS"'

files_to_copy = ['bin', 'config', 'man']

sanity_check_paths = {
    'files': ['bin/snaphu'],
    'dirs': ['config', 'man'],
}

moduleclass = 'math'
