Skip to content

Commit

Permalink
up #1
Browse files Browse the repository at this point in the history
add recipe for feelpp
  • Loading branch information
prudhomm committed Nov 9, 2023
1 parent 383ec19 commit a022a84
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions var/spack/repos/builtin/packages/feelpp/package.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
from spack import *

class Feelpp(CMakePackage):
"""A description of Feel++."""

homepage = "https://docs.feelpp.org"
git = "https://github.com/feelpp/feelpp.git"

maintainers = ['prudhomm']

version('master', branch='master')

# Specify minimum versions for dependencies and ensure petsc is compiled with mumps
depends_on('[email protected]:', type='build')
depends_on('[email protected]:')
depends_on('[email protected]:+mumps+metis+double')
# Add other dependencies as necessary

def cmake_args(self):
args = []
# Add any necessary CMake arguments here
return args

def build(self, spec, prefix):
with working_dir(self.build_directory):
cmake('--preset', 'feelpp')
cmake('--build', '--preset', 'feelpp')
# If ctest is included in the preset, it can be used here as well.

def install(self, spec, prefix):
# Custom installation logic, if necessary
pass

0 comments on commit a022a84

Please sign in to comment.