easyblock = 'PerlModule'

name = 'GraphViz2'
version = '2.33'

homepage = 'https://metacpan.org/pod/GraphViz2'
description = """This module provides a Perl interface to the amazing Graphviz,
an open source graph visualization tool from AT&T."""

toolchain = {'name': 'intel', 'version': '2014b'}

source_urls = ['http://cpan.metacpan.org/authors/id/R/RS/RSAVAGE/']
sources = [SOURCE_TGZ]

perl = 'Perl'
perlver = '5.20.0'
versionsuffix = '-%s-%s' % (perl, perlver)

dependencies = [
    (perl, perlver),
    ("Graphviz", "2.38.0"),
]

options = {'modulename': 'GraphViz2'}

perlmajver = perlver.split('.')[0]
sanity_check_paths = {
    'files': ['lib/perl%s/site_perl/%s/GraphViz2.pm' % (perlmajver, perlver)],
    'dirs': ['lib/perl%s/site_perl/%s/GraphViz2' % (perlmajver, perlver)],
}

moduleclass = 'vis'
