# IT4Innovations
# LK 2025

easyblock = 'ConfigureMake'

name = 'gettext'
version = '0.22.5'

homepage = 'https://www.gnu.org/software/gettext/'
description = """GNU 'gettext' is an important step for the GNU Translation Project, as it is an asset on which we may
build many other steps. This package offers to programmers, translators, and even users, a well integrated set of tools
and documentation"""

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

source_urls = [GNU_SOURCE]
sources = [SOURCE_TAR_GZ]
checksums = ['ec1705b1e969b83a9f073144ec806151db88127f5e40fe5a94cb6c8fa48996a0']

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

dependencies = [
    ('libxml2', '2.13.4'),
    ('ncurses', '6.5'),
    ('libiconv', '1.18'),
]

configopts = '--without-emacs --with-libxml2-prefix=$EBROOTLIBXML2'

sanity_check_paths = {
    'files': ['bin/gettext', 'lib/libasprintf.a', 'lib/libasprintf.%s' % SHLIB_EXT,
              'lib/libgettextpo.a', 'lib/libgettextpo.%s' % SHLIB_EXT],
    'dirs': ['include'],
}

sanity_check_commands = [
    "gettext --help",
    "msginit --help",
]

moduleclass = 'tools'
