Skip to content

[Tk] [package list]

Tk/8.6.11-cpeCray-21.08 (Tk-8.6.11-cpeCray-21.08.eb)

This software is archived in the LUMI-SoftwareStack GitHub repository as easybuild/easyconfigs/__archive__/t/Tk/Tk-8.6.11-cpeCray-21.08.eb. The corresponding module would be Tk/8.6.11-cpeCray-21.08.

# contributed by Luca Marsella (CSCS)
easyblock = 'ConfigureMake'

local_Tcl_version =          '8.6.11'        # https://tcl.tk/
local_zlib_version =         '1.2.11'        # https://zlib.net/

local_Tk_version =           '8.6.11'        # https://tcl.tk/

name =    'Tk'
version = local_Tk_version

homepage = 'http://www.tcl.tk/'

whatis = [
    'Description: Tk is a graphical user interface toolkit'
]

description = """
Tk is a graphical user interface toolkit that takes developing desktop
applications to a higher level than conventional approaches. Tk is the
standard GUI not only for Tcl, but for many other dynamic languages, and
can produce rich, native applications that run unchanged across Windows,
Mac OS X, Linux and more.
"""

toolchain = {'name': 'cpeCray', 'version': '21.08'}

source_urls = ["https://prdownloads.sourceforge.net/tcl"]
sources =     ['%(namelower)s%(version)s-src.tar.gz']
patches =     ['Tk-8.6.4_different-prefix-with-tcl.patch']
checksums =   [
    '5228a8187a7f70fa0791ef0f975270f068ba9557f57456f51eb02d9d4ea31282',  # tk8.6.11-src.tar.gz
    '7a6daa8349393af3d340e774aebf07c7410c51e01bc654ceb3679877063b961d',  # Tk-8.6.4_different-prefix-with-tcl.patch
]

builddependencies = [ # Create a reproducible build environment.
    ('buildtools',   '%(toolchain_version)s',   '', True),
]

dependencies = [
    ('Tcl',  local_Tcl_version),
    ('X11',  '%(toolchain_version)s'),
    ('zlib', local_zlib_version),
]

configopts = '--enable-threads --with-tcl=$EBROOTTCL/lib CFLAGS="-I$EBROOTTCL/include"'

installopts = "&& make install-private-headers"

postinstallcmds = [
    "ln -s wish%(version_major_minor)s %(installdir)s/bin/wish"
]

sanity_check_paths = {
    'files': ['bin/wish', 'lib/tkConfig.sh',   'include/tkInt.h', 'lib/libtk%(version_major_minor)s.' + SHLIB_EXT],
    'dirs':  ['lib/tk%(version_major_minor)s'],
}

sanity_check_commands = [
    # No test for wish possible as that requires DISPLAY to be set.
    'pkg-config --libs tk',
]

start_dir = 'unix'

moduleclass = 'vis'

[Tk] [package list]