1
1
from spack .package import *
2
2
3
+
3
4
class Feelpp (CMakePackage ):
4
5
"""
5
6
Feel++ is an Open-Source C++ library designed to solve a wide range of
@@ -19,7 +20,7 @@ class Feelpp(CMakePackage):
19
20
git = "https://github.com/feelpp/feelpp.git"
20
21
21
22
license ("LGPL-3.0-or-later AND GPL-3.0-or-later" )
22
- maintainers ( "prudhomm" , "vincentchabannes" )
23
+ maintainers ("prudhomm" , "vincentchabannes" )
23
24
24
25
version ("develop" , branch = "develop" )
25
26
version ("preset" , branch = "2284-add-spack-environment-to-the-main-ci" )
@@ -41,12 +42,13 @@ class Feelpp(CMakePackage):
41
42
conflicts ("+cpp17" , when = "+cpp23" , msg = "Cannot enable both C++17 and C++23" )
42
43
conflicts ("+cpp20" , when = "+cpp23" , msg = "Cannot enable both C++20 and C++23" )
43
44
44
-
45
45
# Specify dependencies with the required versions
46
46
depends_on (
"[email protected] :" ,
type = "build" )
# Require CMake > 3.21
47
- depends_on (
"[email protected] : +regex+date_time+filesystem+iostreams+mpi+multithreaded+program_options+serialization+shared+system+test" )
47
+ depends_on (
48
+ "[email protected] : +regex+date_time+filesystem+iostreams+mpi+multithreaded+program_options+serialization+shared+system+test"
49
+ )
48
50
depends_on (
"[email protected] +mumps+hwloc+ptscotch +suite-sparse+hdf5 +hypre+kokkos" )
49
- depends_on ("llvm@18:" ,type = "build" ) # Require LLVM (Clang) version 18 or higher
51
+ depends_on ("llvm@18:" , type = "build" ) # Require LLVM (Clang) version 18 or higher
50
52
depends_on ("slepc" )
51
53
depends_on ("mpi" )
52
54
@@ -64,9 +66,6 @@ class Feelpp(CMakePackage):
64
66
depends_on ("ruby" )
65
67
depends_on ("curl" )
66
68
67
-
68
-
69
-
70
69
# Python dependencies if +python variant is enabled
71
70
depends_on ("py-pytest" , when = "+python" )
72
71
depends_on ("py-pandas" , when = "+python" )
@@ -118,7 +117,6 @@ def build(self, spec, prefix):
118
117
119
118
cmake ("--build" , "--preset" , self .get_preset_name ())
120
119
121
-
122
120
def install (self , spec , prefix ):
123
121
"""Override the default install command to use CMake presets."""
124
122
cmake = which ("cmake" )
0 commit comments