easyblock = 'CMakeMake'

name = 'Doxygen'
version = '1.14.0'

homepage = 'https://www.doxygen.nl'
description = """
 Doxygen is a documentation system for C++, C, Java, Objective-C, Python,
 IDL (Corba and Microsoft flavors), Fortran, VHDL, PHP, C#, and to some
 extent D.
"""

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

source_urls = ['https://www.doxygen.nl/files/']
sources = ['%(namelower)s-%(version)s.src.tar.gz']
checksums = ['d4536d11ab13037327d8d026b75f5a86b7ccb2093e2f546235faf61fd86e6b5d']

builddependencies = [
    ('binutils', '2.44'),
    ('Bison', '3.8.2'),
    ('CMake', '4.0.3'),
    ('flex', '2.6.4'),
    ('pkgconf', '2.4.3'),
    ('Python', '3.13.5'),
]

dependencies = [
    ('libiconv', '1.18'),
]

configopts = "-DICONV_DIR=$EBROOTLIBICONV -DICONV_IN_GLIBC=OFF"

sanity_check_paths = {
    'files': ["bin/doxygen"],
    'dirs': [],
}

sanity_check_commands = ["doxygen --help"]

moduleclass = 'devel'
