easyblock = 'ConfigureMake'

name = 'librsvg'
version = '2.40.15'

homepage = 'https://wiki.gnome.org/action/show/Projects/LibRsvg'
description = """librsvg is a library to render SVG files using cairo."""

toolchain = {'name': 'intel', 'version': '2016a'}

sources = [SOURCE_TAR_XZ]
source_urls = ['https://download.gnome.org/sources/librsvg/%(version_major_minor)s']

dependencies = [
    ('Gdk-Pixbuf', '2.35.1'),
    ('libcroco', '0.6.11'),
    ('Pango', '1.40.1'),
    ('cairo', '1.14.6', '-GLib-2.48.0'),
]

# this loader wants to install in the directory of Gdk-Pixbuf itself, so disable
configopts = '--disable-pixbuf-loader'

sanity_check_paths = {
    'files': ['bin/rsvg-convert', 'lib/librsvg-%%(version_major)s.%s' % SHLIB_EXT, 'lib/librsvg-2.a'],
    'dirs': ['include/librsvg-2.0', 'share']
}

moduleclass = 'vis'
