-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpackage.py
59 lines (47 loc) · 3.07 KB
/
package.py
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# -*- coding: utf-8 -*-
##############################################################################
# Project VtkContrib
#
# CEA/DAM/DSSI, 2020
##############################################################################
from spack import *
class Vtkcontrib(CMakePackage):
"""Bibliotheque d'utilitaires VTK"""
homepage = 'https://github.com/LIHPC-Computational-Geometry/vtkcontrib'
url = 'https://github.com/LIHPC-Computational-Geometry/vtkcontrib/archive/refs/tags/0.0.0.tar.gz'
git = 'https://github.com/LIHPC-Computational-Geometry/vtkcontrib.git'
maintainers = ['meshing_team']
# Rem : peu de variants pour VTK au regard de ce qui pourrait etre fait : opengl2, python, xdmf, qt, mpi, ffmpeg
# On veut dans cette version un VTK 7.*
# depends_on('[email protected]:7.99~opengl2~python~xdmf+qt', type=('build', 'link'))
# depends_on('[email protected]', type=('build', 'link'))
depends_on('[email protected]:', type=('build', 'link'))
depends_on('vtk-maillage', type=('build', 'link'))
# depends_on('mpi', type=('build', 'link'))
# for undefined reference in util-linux/libmount to intl_....
# depends_on('gettext')
patch('vtkcontrib-4.6.0_calc_mpi.patch', when='@4.6.0')
version('5.7.1', sha256='000ff5ef5f2eb5873b110c479dff63a1705251c77275ae55fbaa5243aa8433e2')
version('5.7.0', sha256='71fdb9f29538fcf4076c8238f8ceb369c20e5a548982837d3b5543852a66a03a')
version('5.6.1', sha256='ef20de3d076e4b55b9e10aadfa2d5f1b25e21934b439c9c8afe00fa88e0164fa')
version('5.6.0', sha256='848c2576f870b3e3dc5cb1d84d3f073f676497d865109642c7ab05f355d5a4c4')
version('5.5.0', sha256='cb3056a9448fed7e738febc1382a5d1b6ae9ed29c0e1340f99dd03d0af913eba')
version('5.4.3', sha256='80f8b6e2f29f8d79e16f96874d4b5b336ca7e16e86d21f69376b285a0cd70469')
version('5.4.2', sha256='5d93d8051f4a1546932f201368bc2d4222ec617c1344dbc9ee1413beb7e24ec2')
version('5.4.1', sha256='de31db5778628eb8b01a67517379b2abe524944a038a348c00d65b1935ad0081')
version('5.4.0', sha256='c3c7d6b9491cbb273084ef1f5795e88599d23a041b568b61d1da426277cefcea')
version('4.6.4', sha256='1fce68d5c9342f90ff54aae75248679d52e303cf1954cdcf2ed0bf9bc6157a4c')
version('4.6.1', sha256='8d32ff953f61addd0a40fa6a92c2ba8fe11f7431cc01608f45b8f7f681a7de76')
version('4.6.0', sha256='269220824875c4945bdbdd78589d460b5a5ca806d78166c38079bb228e933e11')
version('4.0.1', sha256='ea186d906ed63c9be0328067d08889dfe72b4fc1710831fc8234496f048003af')
version('4.0.0', sha256='3ddcb0b3f5c06c93a8fc3ea9b7cb03e93d3f5ed4ec0d2ea2a48eab7c68529305')
variant('shared', default=True, description='Creation de bibliotheques dynamiques (defaut:shared, annuler le defaut par ~shared)')
def cmake_args(self):
# Since version 5.4.0 VtkContrib uses common_vtk.cmake of GUIToolkitsVariables which
# sets VTK 7, VTK 8 or VTK 9 to ON.
args = []
args.append(self.define_from_variant('BUILD_SHARED_LIBS', 'shared'))
# if OFF does vtkcontrib uses OPENGL2 ?
# see VTK_OPENGL_BACKEND in src/VtkContrib/CMakeLists.txt
args.append('-DUSE_OPENGL_BACKEND:BOOL=ON')
return args