2018-10-08 04:52:23 +08:00
|
|
|
# Copyright 2013-2018 Lawrence Livermore National Security, LLC and other
|
|
|
|
# Spack Project Developers. See the top-level COPYRIGHT file for details.
|
2014-08-01 08:51:23 +08:00
|
|
|
#
|
2018-10-08 04:52:23 +08:00
|
|
|
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
|
|
|
|
2014-08-01 08:51:23 +08:00
|
|
|
from spack import *
|
2015-12-21 23:10:55 +08:00
|
|
|
|
2014-08-01 08:51:23 +08:00
|
|
|
|
2017-06-17 00:45:06 +08:00
|
|
|
class Cube(AutotoolsPackage):
|
2016-08-24 23:32:29 +08:00
|
|
|
"""Cube the profile viewer for Score-P and Scalasca profiles. It displays a
|
2016-08-04 23:58:59 +08:00
|
|
|
multi-dimensional performance space consisting of the dimensions:
|
2015-12-21 23:10:55 +08:00
|
|
|
- performance metric
|
|
|
|
- call path
|
2016-08-31 05:28:55 +08:00
|
|
|
- system resource
|
|
|
|
"""
|
2014-08-01 08:51:23 +08:00
|
|
|
|
|
|
|
homepage = "http://www.scalasca.org/software/cube-4.x/download.html"
|
2018-10-13 00:51:52 +08:00
|
|
|
url = "http://apps.fz-juelich.de/scalasca/releases/cube/4.4/dist/cubegui-4.4.2.tar.gz"
|
2014-08-01 08:51:23 +08:00
|
|
|
|
2018-10-13 00:51:52 +08:00
|
|
|
version('4.4.2', '29b6479616a524f8325f5031a883963bf965fb92569de33271a020f08650ec7b')
|
|
|
|
version('4.4', '0620bae3ac357d0486ce7f5f97e448eeb2494c9a31865b679380ee08c6750e70')
|
2017-06-17 00:45:06 +08:00
|
|
|
version('4.3.5', 'e5dce986e3c6381ea3a5fcb66c553adc')
|
|
|
|
version('4.3.4', '50f73060f55311cb12c5b3cb354d59fa')
|
|
|
|
version('4.3.3', '07e109248ed8ffc7bdcce614264a2909')
|
|
|
|
version('4.2.3', '8f95b9531f5a8f8134f279c2767c9b20')
|
2014-08-02 07:39:29 +08:00
|
|
|
|
2018-10-13 00:51:52 +08:00
|
|
|
variant('gui', default=True, description='Build Cube GUI')
|
2014-08-02 07:39:29 +08:00
|
|
|
|
2018-03-14 16:01:11 +08:00
|
|
|
patch('qt-version.patch', when='@4.3.0:4.3.999 +gui')
|
|
|
|
|
2018-10-13 00:51:52 +08:00
|
|
|
depends_on('cubelib', when='@4.4:')
|
|
|
|
|
|
|
|
depends_on('pkgconfig', type='build')
|
|
|
|
depends_on('dbus')
|
2016-08-04 20:24:25 +08:00
|
|
|
depends_on('zlib')
|
|
|
|
|
2018-05-18 08:52:01 +08:00
|
|
|
depends_on('qt@5:', when='@4.3.0: +gui')
|
2017-06-17 00:45:06 +08:00
|
|
|
depends_on('qt@4.8:', when='@4.2.0:4.2.999 +gui')
|
|
|
|
|
2018-10-13 00:51:52 +08:00
|
|
|
conflicts('~gui', when='@4.4:')
|
|
|
|
|
2017-06-17 00:45:06 +08:00
|
|
|
def url_for_version(self, version):
|
2018-05-18 08:52:01 +08:00
|
|
|
if version >= Version('4.4'):
|
2018-10-13 00:51:52 +08:00
|
|
|
url = 'http://apps.fz-juelich.de/scalasca/releases/cube/{0}/dist/cubegui-{1}.tar.gz'
|
2018-05-18 08:52:01 +08:00
|
|
|
else:
|
2018-10-13 00:51:52 +08:00
|
|
|
url = 'http://apps.fz-juelich.de/scalasca/releases/cube/{0}/dist/cube-{1}.tar.gz'
|
2018-05-18 08:52:01 +08:00
|
|
|
|
2018-10-13 00:51:52 +08:00
|
|
|
return url.format(version.up_to(2), version)
|
2017-06-17 00:45:06 +08:00
|
|
|
|
|
|
|
def configure_args(self):
|
|
|
|
spec = self.spec
|
|
|
|
|
|
|
|
configure_args = ['--enable-shared']
|
2016-09-30 03:37:35 +08:00
|
|
|
|
|
|
|
if '+gui' not in spec:
|
|
|
|
configure_args.append('--without-gui')
|
|
|
|
|
2017-06-17 00:45:06 +08:00
|
|
|
return configure_args
|
2017-08-08 02:32:09 +08:00
|
|
|
|
|
|
|
def install(self, spec, prefix):
|
|
|
|
make('install', parallel=False)
|