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.
add recipe for feelpp
- Loading branch information
Showing
1 changed file
with
32 additions
and
0 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 |
---|---|---|
@@ -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 |