##
# This is an easyconfig file for EasyBuild, see https://github.com/hpcugent/easybuild
# Copyright:: Copyright 2013-2016 Juelich Superlocal_computing Centre, Germany
# Authors::   Bernd Mohr <b.mohr@fz-juelich.de>
#             Markus Geimer <m.geimer@fz-juelich.de>
# License::   3-clause BSD
#
# This work is based on experiences from the UNITE project
# http://apps.fz-juelich.de/unite/
##

easyblock = 'EB_Score_minus_P'

name = 'OTF2'
version = '2.0'

homepage = 'http://www.score-p.org'
description = """The Open Trace Format 2 is a highly scalable, memory efficient event
 trace data format plus support library. It is the new standard trace format for
 Scalasca, Vampir, and TAU and is open for other tools."""

toolchain = SYSTEM

sources = [SOURCELOWER_TAR_GZ]
source_urls = ['http://www.vi-hps.org/upload/packages/otf2/']

checksums = [
    '5b546188b25bc1c4e285e06dddf75dfc',     # otf2-2.0.tar.gz
]

builddependencies = [('SIONlib', '1.6.1', '-tools')]

configopts = '--enable-shared'

sanity_check_paths = {
    'files': [
        "bin/otf2-config",
        "include/otf2/otf2.h",
        ("lib/libotf2.a",
         "lib64/libotf2.a")],
    'dirs': [],
}

moduleclass = 'perf'