# IT4Innovations
# LK 2022

easyblock = 'MakeCp'

name = 'ANN'
version = '1.1.2'

homepage = 'https://www.cs.umd.edu/~mount/ANN/'
description = """ANN is a library written in C++, which supports data structures and algorithms 
for both exact and approximate nearest neighbor searching in arbitrarily high dimensions."""

toolchain = {'name': 'GCC', 'version': '12.2.0'}

source_urls = ['https://www.cs.umd.edu/~mount/ANN/Files/%(version)s/']
sources = ['ann_%(version)s.tar.gz']
checksums = ['eea03f2e224b66813226d775053316675375dcec45bd263674c052d9324a49a5']

buildopts = 'linux-g++'

files_to_copy = [
    (['include/ANN'], 'include'),  # stand-alone binaries
    (['lib/libANN.a'], 'lib'),  # 7z requires 7z.so plugin in same directory
]

sanity_check_paths = {
    'files': ['lib/libANN.a'],
    'dirs': ['include', 'lib'],
}

moduleclass = 'lib'
