# IT4Innovations
# LK 2025

easyblock = 'ConfigureMake'

name = 'Emacs'
version = '29.4'

homepage = 'https://www.gnu.org/software/emacs/'
description = """GNU Emacs is an extensible, customizable text editor--and more.
 At its core is an interpreter for Emacs Lisp, a dialect of the Lisp programming
 language with extensions to support text editing."""

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

source_urls = [GNU_SOURCE]
sources = [SOURCELOWER_TAR_GZ]
checksums = ['1adb1b9a2c6cdb316609b3e86b0ba1ceb523f8de540cfdda2aec95b6a5343abf']

builddependencies = [
    ('binutils', '2.39'),
    ('pkgconf', '1.9.3'),
]

dependencies = [
    ('zlib', '1.2.12'),
    ('libpng', '1.6.38'),
    ('libjpeg-turbo', '2.1.4'),
    ('ncurses', '6.3'),
    ('LibTIFF', '4.4.0'),
    ('X11', '20221110'),
    ('GTK3', '3.24.35'),
]

# If you want to use Emacs plugins you must install the gnutls command line tools
# osdependencies = [('gnutls-utils')]

configopts = '--with-gif=no --with-tiff=yes --with-x-toolkit=yes --with-xpm=yes --with-gnutls=no '

sanity_check_paths = {
    'files': ["bin/emacs", "bin/emacs-%(version)s", "bin/emacsclient", "bin/etags"],
    'dirs': []
}

moduleclass = 'tools'
