forked from spack/spack
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
1 changed file
with
6 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
from spack.package import * | ||
|
||
|
||
class Feelpp(CMakePackage): | ||
""" | ||
Feel++ is an Open-Source C++ library designed to solve a wide range of | ||
|
@@ -19,7 +20,7 @@ class Feelpp(CMakePackage): | |
git = "https://github.com/feelpp/feelpp.git" | ||
|
||
license("LGPL-3.0-or-later AND GPL-3.0-or-later") | ||
maintainers( "prudhomm", "vincentchabannes" ) | ||
maintainers("prudhomm", "vincentchabannes") | ||
|
||
version("develop", branch="develop") | ||
version("preset", branch="2284-add-spack-environment-to-the-main-ci") | ||
|
@@ -41,12 +42,13 @@ class Feelpp(CMakePackage): | |
conflicts("+cpp17", when="+cpp23", msg="Cannot enable both C++17 and C++23") | ||
conflicts("+cpp20", when="+cpp23", msg="Cannot enable both C++20 and C++23") | ||
|
||
|
||
# Specify dependencies with the required versions | ||
depends_on("[email protected]:", type="build") # Require CMake > 3.21 | ||
depends_on("[email protected]: +regex+date_time+filesystem+iostreams+mpi+multithreaded+program_options+serialization+shared+system+test") | ||
depends_on( | ||
"[email protected]: +regex+date_time+filesystem+iostreams+mpi+multithreaded+program_options+serialization+shared+system+test" | ||
) | ||
depends_on("[email protected] +mumps+hwloc+ptscotch +suite-sparse+hdf5 +hypre+kokkos") | ||
depends_on("llvm@18:",type="build") # Require LLVM (Clang) version 18 or higher | ||
depends_on("llvm@18:", type="build") # Require LLVM (Clang) version 18 or higher | ||
depends_on("slepc") | ||
depends_on("mpi") | ||
depends_on("[email protected]") | ||
|
@@ -64,9 +66,6 @@ class Feelpp(CMakePackage): | |
depends_on("ruby") | ||
depends_on("curl") | ||
|
||
|
||
|
||
|
||
# Python dependencies if +python variant is enabled | ||
depends_on("py-pytest", when="+python") | ||
depends_on("py-pandas", when="+python") | ||
|
@@ -118,7 +117,6 @@ def build(self, spec, prefix): | |
|
||
cmake("--build", "--preset", self.get_preset_name()) | ||
|
||
|
||
def install(self, spec, prefix): | ||
"""Override the default install command to use CMake presets.""" | ||
cmake = which("cmake") | ||
|