# IT4Innovations 2019

easyblock = 'ConfigureMake'

name = 'GEOS'
version = '3.7.2'

homepage = 'http://trac.osgeo.org/geos'
description = """GEOS (Geometry Engine - Open Source) is a C++ port of the  Java Topology Suite (JTS)"""

toolchain = {'name': 'Py', 'version': '3.6'}

source_urls = ['http://download.osgeo.org/geos/']
sources = [SOURCELOWER_TAR_BZ2]

patches = ['GEOS-%(version)s_fix-Python3.patch']

builddependencies = [('SWIG', '3.0.12')]

configopts = '--enable-python'

modextrapaths = {'PYTHONPATH': 'lib/python3.6/site-packages'}

sanity_check_paths = {
    'files': [
        'bin/geos-config',
        'lib/libgeos.%s' %
        SHLIB_EXT,
        'lib/libgeos.a',
        'include/geos.h'],
    'dirs': [
        'lib/python3.6/site-packages/geos']
    }

moduleclass = 'math'
