# IT4Innovations
# LK 2023

easyblock = 'CMakeMake'

name = 'LEMON'
version = '1.3.1'

homepage = 'https://lemon.cs.elte.hu'
description = """ LEMON stands for Library for Efficient Modeling and Optimization in Networks.
 It is a C++ template library providing efficient implementations of common data structures and algorithms
 with focus on combinatorial optimization tasks connected mainly with graphs and networks. """

toolchain = {'name': 'GCC', 'version': '12.2.0'}
toolchainopts = {'pic': True}

source_urls = ['https://lemon.cs.elte.hu/pub/sources/']
sources = ['%(namelower)s-%(version)s.tar.gz']
checksums = ['71b7c725f4c0b4a8ccb92eb87b208701586cf7a96156ebd821ca3ed855bad3c8']

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

separate_build_dir = True

configopts = ['', '-DBUILD_SHARED_LIBS=TRUE']

runtest = 'check'

sanity_check_paths = {
    'files': ['bin/%s' % x for x in ['dimacs-solver', 'dimacs-to-lgf', 'lemon-0.x-to-1.x.sh', 'lgf-gen']] +
             ['lib/libemon.a', 'lib/libemon.%s' % SHLIB_EXT],
    'dirs': ['include/lemon'],
}

moduleclass = 'lib'
