summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorSeth R. Johnson <johnsonsr@ornl.gov>2021-11-05 16:04:47 -0400
committerGitHub <noreply@github.com>2021-11-05 14:04:47 -0600
commitc5be548046d3d673e1e36b82708f2e98ac7d4b9c (patch)
tree5c406d5a4bf318cc7ecbe48255e334dcc1b322ff /var
parentd9d1319442a75a26004cae23c37538f1f6506c25 (diff)
downloadspack-c5be548046d3d673e1e36b82708f2e98ac7d4b9c.tar.gz
spack-c5be548046d3d673e1e36b82708f2e98ac7d4b9c.tar.bz2
spack-c5be548046d3d673e1e36b82708f2e98ac7d4b9c.tar.xz
spack-c5be548046d3d673e1e36b82708f2e98ac7d4b9c.zip
New package: GNDS (#27176)
Adds a new package for the AMPX/SCALE implementation of the GNDS interface, https://www.oecd.org/publications/specifications-for-the-generalised-nuclear-database-structure-gnds-94d5e451-en.htm .
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/gnds/package.py28
1 files changed, 28 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/gnds/package.py b/var/spack/repos/builtin/packages/gnds/package.py
new file mode 100644
index 0000000000..3d9686a0f2
--- /dev/null
+++ b/var/spack/repos/builtin/packages/gnds/package.py
@@ -0,0 +1,28 @@
+# 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 Gnds(CMakePackage):
+ """The GNDS package is an implementation of the OECD specifications for the
+ Generalized Nuclear Database Structure used in the AMPX cross section
+ processing code.
+ """
+
+ homepage = "https://code.ornl.gov/RNSD/gnds"
+ url = "https://code.ornl.gov/RNSD/gnds/-/archive/v0.0.1/gnds-v0.0.1.tar.gz"
+
+ maintainers = ['sethrj']
+
+ version('0.0.1', sha256='4c8faaa01a3e6fb08ec3e8e126a76f75b5442509a46b993e325ec79dd9f04879')
+
+ variant('shared', default=True, description="Build shared libraries")
+
+ depends_on('pugixml')
+
+ def cmake_args(self):
+ args = [self.define_from_variant('BUILD_SHARED_LIBS', 'shared')]
+ return args