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

easyblock = 'Tarball'

name = 'wkhtmltopdf'
version = '0.12.3'
versionsuffix = '-Linux-x86_64'

homepage = 'http://wkhtmltopdf.org/'
description = """wkhtmltopdf and wkhtmltoimage are open source (LGPLv3) command line tools to render 
 HTML into PDF and various image formats using the Qt WebKit rendering engine. These run entirely headless 
 and do not require a display or display service."""

toolchain = {'name': 'dummy', 'version': ''}

source_urls = ['http://download.gna.org/wkhtmltopdf/%(version_major_minor)s/%(version)s/']
sources = ['wkhtmltox-%(version)s_linux-generic-amd64.tar.xz']

osdependencies = [
	('zlib', 'zlib1g'), 
	 'fontconfig', 
	('freetype', 'libfreetype6'), 
	('libX11', 'libx11-6'), 
	('libXext', 'libxext6'), 
	('libXrender', 'libxrender1')
]

sanity_check_paths = {
    'files': ['bin/wkhtmltoimage', 'bin/wkhtmltopdf'],
    'dirs': [],
}

moduleclass = 'tools'
