##
# This file is an EasyBuild reciPY as per https://github.com/easybuilders/easybuild
#
# Copyright:: Copyright 2012-2014 Cyprus Institute / CaSToRC, Uni.Lu/LCSB, NTUA
# Authors::   George Tsouloupas <g.tsouloupas@cyi.ac.cy>, Fotis Georgatos <fotis@cern.ch>
# License::   MIT/GPL
# $Id$
#
# This work implements a part of the HPCBIOS project and is a component of the policy:
# http://hpcbios.readthedocs.org/en/latest/HPCBIOS_2012-94.html
##

easyblock = 'CMakeMake'

name = 'libharu'
version = '2.2.0'

homepage = 'http://libharu.org/'
description = """libHaru is a free, cross platform, open source library for generating PDF files."""

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

source_urls = [' https://github.com/libharu/libharu/archive/']
sources = ['RELEASE_%s.tar.gz' % '_'.join(version.split('.'))]

patches = [
    'libharu-2.2.0_libpng-1.5.patch',
    'libharu-2.2.0_fix-demo-linking.patch',
]

dependencies = [('libpng', '1.5.13')]

builddependencies = [('CMake', '2.8.4')]

parallel = 1

sanity_check_paths = {
    'files': ['lib/libharu.%s' % SHLIB_EXT],
    'dirs': ['bin', 'include/libharu']
}

moduleclass = 'bio'
