easyblock = 'ConfigureMake'

name = 'PCRE'
version = '8.41'

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': 'GCCcore', 'version': '6.3.0'}
toolchainopts = {'pic': True}

source_urls = [SOURCEFORGE_SOURCE]
sources = [SOURCELOWER_TAR_GZ]
checksums = ['244838e1f1d14f7e2fa7681b857b3a8566b74215f28133f14a8f5e59241b682c']

builddependencies = [
    ('binutils', '2.27'),
]

dependencies = [
    ('bzip2', '1.0.6'),
    ('zlib', '1.2.11'),
]

configopts = """\
    --enable-utf\
    --enable-unicode-properties\
    --enable-pcre16\
    --enable-pcre32\
"""

sanity_check_paths = {
    'files': ['bin/pcre-config', 'include/pcre.h',
              'share/man/man3/pcre.3', 'lib/libpcre32.%s' % SHLIB_EXT],
    'dirs': ['lib/pkgconfig', 'share/doc/pcre/html', 'share/man/man1'],
}

moduleclass = 'devel'
