summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/tulip/package.py
blob: 135c6ba3db3fafe21d39231bf58267080c5d4556 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Copyright 2013-2023 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)


from spack.package import *


class Tulip(CMakePackage):
    """Tulip is an information visualization framework dedicated to the
    analysis and visualization of relational data.

    Tulip aims to provide the developer with a complete library, supporting
    the design of interactive information visualization applications for
    relational data that can be tailored to the problems he or she is
    addressing.
    """

    homepage = "https://tulip.labri.fr"
    url = "https://sourceforge.net/projects/auber/files/tulip/tulip-5.4.0/tulip-5.4.0_src.tar.gz"

    version("5.4.0", sha256="2175e4e1a79028ab7a2479e882242f304fd3e01fedf80e1f29f8f5e9a6eb1325")

    extends("python")
    depends_on("py-pyqt5", type=("build", "run"))

    depends_on("yajl")
    depends_on("qt")
    depends_on("qhull")
    depends_on("freetype")
    depends_on("zlib-api")
    depends_on("glew")
    depends_on("jpeg")
    depends_on("libpng")
    depends_on("libxml2")

    def cmake_args(self):
        # The use of GL/glu.h seems to be deprecated, see:
        # https://github.com/nigels-com/glew/issues/192
        return [
            '-DCMAKE_CXX_FLAGS="-DGLEW_NO_GLU"',
            '-DCMAKE_C_FLAGS="-DGLEW_NO_GLU"',
            "-DTULIP_BUILD_DOC:BOOL=OFF",
        ]