Skip to content

[file] [package list]

file/5.42-cpeGNU-22.06 (file-5.42-cpeGNU-22.06.eb)

This software is archived in the LUMI-SoftwareStack GitHub repository as easybuild/easyconfigs/__archive__/f/file/file-5.42-cpeGNU-22.06.eb. The corresponding module would be file/5.42-cpeGNU-22.06.

##
# This file is an EasyBuild reciPY as per https://github.com/hpcugent/easybuild
#
##

easyblock = 'ConfigureMake'

local_zlib_version =         '1.2.12'        # https://zlib.net/
local_bzip2_version =        '1.0.8'         # http://www.bzip.org/downloads.html
local_XZ_version =           '5.2.5'         # https://tukaani.org/xz/
local_file_version =         '5.42'          # ftp://ftp.astron.com/pub/file/

name =    'file'
version = local_file_version

homepage = 'http://www.darwinsys.com/file/'

whatis = [
    "Description: file provides the file command, a 'file type guesser",
]

description = """
The file command is 'a file type guesser', that is, a command-line tool
that tells you in words what kind of data a file contains. Unlike most
GUI systems, command-line UNIX systems - with this program leading the
charge - don't rely on filename extentions to tell you the type of a file,
but look at the file's actual contents. This is, of course, more reliable,
but requires a bit of I/O.

The module does not only provide the file command, but also libmagic on
which it is based.
"""

docurls = [
    "Manual pages: file (1), libmagic (3) and magic (4)"
]

toolchain = {'name': 'cpeGNU', 'version': '22.06'}
toolchainopts = {'pic': True}

# https://www.astron.com/pub/file/file-5.41.tar.gz
source_urls = ['https://www.astron.com/pub/file']
sources =     [SOURCE_TAR_GZ]
checksums =   ['c076fb4d029c74073f15c43361ef572cfb868407d347190ba834af3b1639b0e4']

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

dependencies = [
    ('zlib',  local_zlib_version),
    ('bzip2', local_bzip2_version),
    ('XZ',    local_XZ_version),
]

sanity_check_paths = {
    'files': ['bin/file', 'include/magic.h', 'lib/libmagic.%s' % SHLIB_EXT, 'lib/pkgconfig/libmagic.pc'] +
             ['share/man/man1/file.1', 'share/man/man3/libmagic.3', 'share/man/man4/magic.4'],
    'dirs':  []
}

sanity_check_commands = [
    'file --version',
    'pkg-config --libs libmagic',
]

moduleclass = 'system'

[file] [package list]