easyblock = 'ConfigureMake'

name = 'XMLSec'
version = '1.2.34'

homepage = 'https://www.aleksey.com/xmlsec/index.html'

description = """XML Security Library is a C library based on LibXML2,
 supporting major XML security standards."""

toolchain = {'name': 'GCCcore', 'version': '11.3.0'}

source_urls = ['http://www.aleksey.com/xmlsec/download/']
sources = ['%(namelower)s%(version_major)s-%(version)s.tar.gz']
checksums = ['52ced4943f35bd7d0818a38298c1528ca4ac8a54440fd71134a07d2d1370a262']

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

dependencies = [
    ('libtool', '2.4.7'),
    ('libxml2', '2.9.13'),
    ('OpenSSL', '1.1', '', True),
]

sanity_check_paths = {
    'files': ['bin/xmlsec1', 'bin/xmlsec1-config',
              'lib/libxmlsec1.a', 'lib/libxmlsec1-openssl.a',
              'lib/libxmlsec1.%s.%s' % (SHLIB_EXT, version),
              'lib/libxmlsec1-openssl.%s.%s' % (SHLIB_EXT, version)],
    'dirs': ['include/xmlsec%(version_major)s/xmlsec', 'share'],
}

moduleclass = 'lib'
