easyblock = 'ConfigureMake'

name = 'ePiX'
version = '1.2.22'

homepage = 'https://mathcs.holycross.edu/~ahwang/current/ePiX.html'
description = """ePiX is a collection of utilities for creating high-quality
mathematical illustrations using LaTeX."""

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

source_urls = ['https://mathcs.holycross.edu/~ahwang/epix/']
sources = ['epix-%(version)s.tar.gz']

checksums = [
    'c314b47110cd3ff081e80f60ac4834c0291da94ddfac805ea20036871f4d488f',
]

builddependencies = [
    ('Autotools', '20231222'),
    ('pkg-config', '0.29.2'),
]

dependencies = [
    # Runtime tools (not strictly required to compile, but required to *use* ePiX)
    ('texlive', '20230313'),
    ('texinfo', '7.0.3'),
    ('Ghostscript', '10.03.1'),
]

#configopts = "--disable-doc --enable-shared --disable-static "

buildopts = 'V=1'

runtest = False

sanity_check_paths = {
    'files': [
        'bin/epix',
    ],
    'dirs': [
        'include/epix',
        'lib',
        'share/epix',
    ],
}

sanity_check_commands = [
    'epix --help',
]

moduleclass = 'math'
