Skip to content

Commit

Permalink
last style issues
Browse files Browse the repository at this point in the history
add package for feelpp #4
  • Loading branch information
prudhomm committed Sep 14, 2024
1 parent 0b12717 commit 299d1ae
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions var/spack/repos/builtin/packages/feelpp/package.py
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
Expand All @@ -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")
Expand All @@ -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]")
Expand All @@ -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")
Expand Down Expand Up @@ -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")
Expand Down

0 comments on commit 299d1ae

Please sign in to comment.