# IT4Innovations
# LK 2023

easyblock = 'ConfigureMake'

name = 'PCRE'
version = '8.45'

homepage = 'https://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 = SYSTEM

source_urls = [
    SOURCEFORGE_SOURCE,
    'https://ftp.pcre.org/pub/pcre/',
]
sources = [SOURCELOWER_TAR_GZ]
checksums = ['4e6ce03e0336e8b4a3d6c2b70b1c5e18590a5673a98186da90d4f33c23defc09']

#dependencies = [
#    ('bzip2', '1.0.8'),
#    ('zlib', '1.2.12'),
#]

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'