summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorPeter Brady <ptb@lanl.gov>2022-01-09 17:49:49 -0700
committerGitHub <noreply@github.com>2022-01-09 19:49:49 -0500
commitfe64afb47925bde22b078a6dc366f4dde67c6247 (patch)
treea730c07e56b48c3a586de65f44eb2b009581a139 /var
parent0277067e5f716d4821da2238bc7c99ad486626c6 (diff)
downloadspack-fe64afb47925bde22b078a6dc366f4dde67c6247.tar.gz
spack-fe64afb47925bde22b078a6dc366f4dde67c6247.tar.bz2
spack-fe64afb47925bde22b078a6dc366f4dde67c6247.tar.xz
spack-fe64afb47925bde22b078a6dc366f4dde67c6247.zip
New package: petaca (#28326)
* Add the petaca fortran/c package * Adopt date for version name and remove variants
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/petaca/package.py49
1 files changed, 49 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/petaca/package.py b/var/spack/repos/builtin/packages/petaca/package.py
new file mode 100644
index 0000000000..20c70a6d31
--- /dev/null
+++ b/var/spack/repos/builtin/packages/petaca/package.py
@@ -0,0 +1,49 @@
+# 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 Petaca(CMakePackage):
+ """A collection of modern Fortran modules.
+
+ Modules include:
+ - Parameter lists
+ - map_any_type
+ - fortran_dynamic_loader
+ - timer_tree_type
+ - yajl_fort
+ - json
+ """
+
+ homepage = "https://petaca.readthedocs.io/en/master"
+ git = "https://github.com/nncarlson/petaca.git"
+
+ maintainers = ['pbrady']
+
+ version('develop', branch="master")
+ version('develop-2021-03-31', commit='f17df95193ca1a3879687a59a91a123be25e3efa', preferred=True)
+
+ depends_on('cmake@3.3:', type='build')
+ depends_on('yajl@2.0.1:')
+
+ # override RelWithDebugInfo since those flags aren't set in petaca
+ variant('build_type', default="Release",
+ description='Type build type to build',
+ values=('Debug', 'Release'))
+
+ # copied from openmpi/package.py to ensure fortran support
+ @run_before('cmake')
+ def die_without_fortran(self):
+ if (self.compiler.f77 is None) or (self.compiler.fc is None):
+ raise InstallError(
+ 'petaca requires both C and Fortran compilers!'
+ )
+
+ def cmake_args(self):
+ return [
+ self.define('ENABLE_TESTS', self.run_tests)
+ ]