# IT4Innovations
# LK 2023

easyblock = 'CMakeMake'

name = 'KaHIP'
version = '3.14'

homepage = 'https://kahip.github.io/'
description = """The graph partitioning framework KaHIP -- Karlsruhe High Quality Partitioning."""

toolchain = {'name': 'iimpi', 'version': '2022b'}
toolchainopts = {'pic': True}

source_urls = ['https://github.com/KaHIP/KaHIP/archive/refs/tags']
sources = ['v%(version)s.tar.gz']
checksums = ['9da04f3b0ea53b50eae670d6014ff54c0df2cb40f6679b2f6a96840c1217f242']

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

sanity_check_paths = {
    'files': ["lib/libkahip_static.a", "lib/libkahip.%s" % SHLIB_EXT] +
             ["lib/libparhip_interface_static.a", "lib/libparhip_interface.%s" % SHLIB_EXT] +
             ["include/%s" % x for x in ["kaHIP_interface.h", "parhip_interface.h"]],
    'dirs': [],
}

moduleclass = 'math'
