blob: 082ff297e6d7a2b0103ddd0d71a468e7181e63fa (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
# Copyright 2013-2024 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.package 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")
license("GPL-3.0-only")
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)
|