easyblock = 'MesonNinja'

name = 'pangomm'
version = '2.46.4'

homepage = 'https://developer.gnome.org/pangomm/'
description = """pangomm is the C++ interface for Pango, providing text layout and rendering
support for C++ applications."""

toolchain = {'name': 'foss', 'version': '2024a'}

source_urls = ['https://download.gnome.org/sources/pangomm/2.46/']
sources = [f'pangomm-{version}.tar.xz']

checksums = [
    'b92016661526424de4b9377f1512f59781f41fb16c9c0267d6133ba1cd68db22',
]

builddependencies = [
    ('Meson', '1.4.0'),
    ('Ninja', '1.12.1'),
    ('Doxygen', '1.11.0'),
    ('M4', '1.4.19'),
    ('CMake', '3.29.3'),
    ('pkg-config', '0.29.2'),
    ('Python', '3.12.3'),
]

dependencies = [
    ('Pango', '1.54.0'),
    ('cairomm', '1.16.2'),
    ('libsigc++', '3.6.0'),
    ('mm-common', '1.0.6'),
    ('GLib', '2.80.4'),
    ('GLibmm', '2.80.1'),
]

configopts = ['-Dbuildtype=release']

prebuildopts = "export XML_CATALOG_FILES='/etc/xml/catalog' && "

runtest = False

sanity_check_paths = {
    'files': [
        'include/pangomm-1.4/pangomm.h',
    ],
    'dirs': [
        'lib/pkgconfig',
        'lib',
    ],
}

moduleclass = 'tools'
