FLAP: add new package (#25685)
Co-authored-by: Joe Schoonover <joe@fluidnumerics.com>
This commit is contained in:
parent
0d226aa710
commit
5029b8ca55
1 changed files with 25 additions and 0 deletions
25
var/spack/repos/builtin/packages/flap/package.py
Normal file
25
var/spack/repos/builtin/packages/flap/package.py
Normal file
|
@ -0,0 +1,25 @@
|
|||
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other
|
||||
# Spack Project Developers. See the top-level COPYRIGHT file for details.
|
||||
#
|
||||
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||
|
||||
from spack import *
|
||||
|
||||
|
||||
class Flap(CMakePackage):
|
||||
"""Fortran command Line Arguments Parser"""
|
||||
|
||||
homepage = "https://github.com/szaghi/FLAP"
|
||||
url = "https://github.com/szaghi/FLAP.git"
|
||||
git = "https://github.com/szaghi/FLAP.git"
|
||||
|
||||
maintainers = ['fluidnumerics-joe']
|
||||
|
||||
version('master', branch='master', submodules=True)
|
||||
|
||||
def flag_handler(self, name, flags):
|
||||
if name in ['cflags', 'cxxflags', 'cppflags']:
|
||||
return (None, flags, None)
|
||||
elif name == 'fflags':
|
||||
flags.append('-cpp')
|
||||
return (flags, None, None)
|
Loading…
Reference in a new issue