# IT4Innovations 2018
easyblock = 'ConfigureMake'

name = 'dos2unix'
version = '7.4.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': 'system', 'version': ''}
toolchainopts = {'optarch': True, 'pic': True}

source_urls = ['https://datapacket.dl.sourceforge.net/project/dos2unix/dos2unix/%(version)s/']
sources = ['dos2unix-%(version)s.tar.gz']

skipsteps = ['configure']

dependencies = [ ('gettext', '0.19.8.1', '', True) ]

installopts = "prefix=%(installdir)s"

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

moduleclass = 'tools'
