summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorJoe Schoonover <11430768+fluidnumerics-joe@users.noreply.github.com>2021-08-30 01:04:05 -0600
committerGitHub <noreply@github.com>2021-08-30 09:04:05 +0200
commit5029b8ca555f9f17147fbfc573f369882d95ebf9 (patch)
treea0be8f23c777ff356cd4b1d5fcfa791851caa007 /var
parent0d226aa7108e4777de7bd10d5fbcde43aca344a1 (diff)
downloadspack-5029b8ca555f9f17147fbfc573f369882d95ebf9.tar.gz
spack-5029b8ca555f9f17147fbfc573f369882d95ebf9.tar.bz2
spack-5029b8ca555f9f17147fbfc573f369882d95ebf9.tar.xz
spack-5029b8ca555f9f17147fbfc573f369882d95ebf9.zip
FLAP: add new package (#25685)
Co-authored-by: Joe Schoonover <joe@fluidnumerics.com>
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/flap/package.py25
1 files changed, 25 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/flap/package.py b/var/spack/repos/builtin/packages/flap/package.py
new file mode 100644
index 0000000000..3196dbab2f
--- /dev/null
+++ b/var/spack/repos/builtin/packages/flap/package.py
@@ -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)