# IT4Innovations
# LK 2023

easyblock = 'ConfigureMake'

name = 'dos2unix'
version = '7.5.0'

homepage = 'https://sourceforge.net/projects/dos2unix'
description = "dos2unix includes utilities to convert text files with DOS or MAC line breaks to Unix line breaks and vice versa. It also includes conversion of UTF-16 to UTF-8."

toolchain = {'name': 'GCCcore', 'version': '12.2.0'}
toolchainopts = {'optarch': True, 'pic': True}

source_urls = ['https://sourceforge.net/projects/dos2unix/files/dos2unix/%(version)s/']
sources = ['dos2unix-%(version)s.tar.gz']
checksums = ['7a3b01d01e214d62c2b3e04c3a92e0ddc728a385566e4c0356efa66fd6eb95af']

skipsteps = ['configure']

dependencies = [ 
    ('gettext', '0.21.1'),
    ('binutils', '2.39'),
 ]

installopts = "prefix=%(installdir)s"

sanity_check_paths = {
    'files': ['bin/dos2unix', 'bin/unix2dos'],
    'dirs': ['bin', 'share'],
}

moduleclass = 'tools'
