easyblock = 'ConfigureMake'

name = 'PCRE2'
version = '10.21'

homepage = 'http://www.pcre.org/'
description = """
 The PCRE library is a set of functions that implement regular expression pattern matching using the same syntax
 and semantics as Perl 5.
"""

toolchain = {'name': 'foss', 'version': '2016a'}
toolchainopts = {'optarch': True, 'pic': True}

source_urls = ['http://download.sourceforge.net/pcre']
sources = [SOURCELOWER_TAR_GZ]

configopts = "--with-pic --disable-cpp --enable-jit"

sanity_check_paths = {
    'files': ["bin/pcre2-config", "bin/pcre2grep", "bin/pcre2test", "lib/libpcre2-8.a"],
    'dirs': [],
}

moduleclass = 'devel'