# IT4Innovations
# LK 2025

easyblock = 'ConfigureMake'

name = 'intltool'
version = '0.51.0'

homepage = 'https://freedesktop.org/wiki/Software/intltool/'
description = """intltool is a set of tools to centralize translation of
 many different file formats using GNU gettext-compatible PO files."""

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

source_urls = ['https://launchpad.net/intltool/trunk/%(version)s/+download/']
sources = [SOURCE_TAR_GZ]
patches = ['intltool-%(version)s_fix-Perl-compat.patch']
checksums = [
    '67c74d94196b153b774ab9f89b2fa6c6ba79352407037c8c14d5aeb334e959cd',  # intltool-0.51.0.tar.gz
    'e839f7228b2b92301831bca88ed0bc7bce5dbf862568f1644642988204903db6',  # intltool-0.51.0_fix-Perl-compat.patch
]

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

dependencies = [
    ('Perl-bundle-CPAN', '5.40.0'),
]

fix_perl_shebang_for = ['bin/intltool-*']

sanity_check_paths = {
    'files': ['bin/intltool%s' % x for x in ['-extract', '-merge', '-prepare', '-update', 'ize']],
    'dirs': []
}

sanity_check_commands = ["intltool-merge --help"]

moduleclass = 'devel'
