easyblock = "PythonPackage"

name = "Sphinx"
version = "1.1.3"

homepage = "http://sphinx.pocoo.org/"
description = """Sphinx is a tool that makes it easy to create intelligent and beautiful documentation.
It was originally created for the new Python documentation, and it has excellent facilities for the 
documentation of Python projects, but C/C++ is already supported as well, and it is planned to add 
special support for other languages as well."""

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

source_urls = [PYPI_SOURCE]
sources = ["%s-%s.tar.gz" % (name.capitalize(), version)]

python = "Python"
pyver = "2.7.3"
pyshortver = '.'.join(pyver.split('.')[0:2])

versionsuffix = "-%s-%s" % (python, pyver)

dependencies = [(python, pyver),
                ('Docutils', '0.9.1', versionsuffix),
                ('Jinja2', '2.6', versionsuffix)]

runtest = "make test"

sanity_check_paths = {
    'files': ["bin/sphinx-%s" % x for x in ["apidoc", "autogen", "build", "quickstart"]],
    'dirs': ["lib/python%s/site-packages/%s-%s-py%s.egg" % (pyshortver, name, version, pyshortver)]
}

moduleclass = 'vis'
