# IT4Innovations 2018

easyblock = 'ConfigureMake'

name = 'GEOS'
version = '3.7.0'
versionsuffix = '-Py-2.7'

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

toolchain = {'name': 'GCC', 'version': '6.3.0-2.27'}

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

dependencies = [
    ('Py', '2.7', '', True)
]

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

configopts = '--enable-python'

modextrapaths = {'PYTHONPATH': 'lib/python2.7site-packages'}

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

moduleclass = 'math'
