summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/salome-configuration/package.py
blob: f319b20a6fa1644b554e636aa0dcdae726b4250e (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
# Copyright 2013-2021 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)
#
# Important feature: a set of salome-xxx packages must have all the same version
# - except salome-med that is also fixed but by another number version

from spack import *


class SalomeConfiguration(Package):
    """salome-configuration is a part of SALOME platform and define general
    build tools for the platform."""

    maintainers = ['franciskloss']

    homepage = "https://www.salome-platform.org"
    git      = "https://git.salome-platform.org/gitpub/tools/configuration.git"

    version('9.7.0', tag='V9_7_0')
    version('9.6.0', tag='V9_6_0')
    version('9.5.0', tag='V9_5_0')
    version('9.4.0', tag='V9_4_0')
    version('9.3.0', tag='V9_3_0')

    patch('SalomeMacros.patch',   working_dir='./cmake')
    patch('FindSalomeHDF5.patch', working_dir='./cmake')

    def setup_dependent_build_environment(self, env, dependent_spec):
        env.set('CONFIGURATION_ROOT_DIR', self.prefix)

    def install(self, spec, prefix):
        install_tree('.', prefix)