easyblock = 'CMakeMake'

name = 'exactextract'
version = '0.1'

homepage = 'https://github.com/isciences/exactextract'
description = """exactextract provides a fast and accurate algorithm for summarizing values in the portion of a raster dataset that is covered by a polygon, often referred to as zonal statistics. Unlike other zonal statistics implementations, it takes into account raster cells that are partially covered by the polygon."""

toolchain = {'name': 'foss', 'version': '2018b'}

source_urls = ['https://github.com/isciences/exactextract/archive/']
sources = ['master.zip']

builddependencies = [('CMake', '3.11.4')]
dependencies = [
    ('GEOS', '3.6.2', '-Python-2.7.15'),
    ('GDAL', '2.2.3', '-Python-2.7.15'),
]

separate_build_dir = True

configopts = '-DCMAKE_BUILD_TYPE=Release'

#CMAKE_INSTALL_PREFIX

sanity_check_paths = {
    'files': ['bin/exactextract'],
    'dirs': [],
}

moduleclass = 'tools'
