# This file is an EasyBuild reciPY as per https://github.com/hpcugent/easybuild
# Author: Pablo Escobar Lopez
# Swiss Institute of Bioinformatics
# Biozentrum - University of Basel

easyblock = 'MakeCp'

name = 'pigz'
version = '2.3.1'

homepage = 'http://zlib.net/pigz/'
description = """ pigz, which stands for parallel implementation of gzip, is a fully
 functional replacement for gzip that exploits multiple processors and multiple cores
 to the hilt when local_compressing data. pigz was written by Mark Adler, and uses the zlib
 and pthread libraries. """

toolchain = {'name': 'goolf', 'version': '1.4.10'}

source_urls = ['http://zlib.net/pigz/']
sources = [SOURCE_TAR_GZ]

# README recommends zlib 1.2.6 or higher
dependencies = [('zlib', '1.2.8')]

buildopts = ' CC=$CC'

parallel = 1

files_to_copy = [(["pigz", "unpigz"], "bin")]

sanity_check_paths = {
    'files': ["bin/pigz", "bin/unpigz"],
    'dirs': [""],
}

moduleclass = 'tools'
