summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/fenics-ufcx/package.py
diff options
context:
space:
mode:
Diffstat (limited to 'var/spack/repos/builtin/packages/fenics-ufcx/package.py')
-rw-r--r--var/spack/repos/builtin/packages/fenics-ufcx/package.py23
1 files changed, 23 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/fenics-ufcx/package.py b/var/spack/repos/builtin/packages/fenics-ufcx/package.py
new file mode 100644
index 0000000000..c426ec5c39
--- /dev/null
+++ b/var/spack/repos/builtin/packages/fenics-ufcx/package.py
@@ -0,0 +1,23 @@
+# Copyright 2013-2022 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 FenicsUfcx(CMakePackage):
+ """FFCx provides the ufcx.h interface header for finite element kernels,
+ used by DOLFINx. ufcx.h can be installed from the FFCx repo without
+ making it dependent on Python.
+ """
+
+ homepage = 'https://github.com/FEniCS/ffcx'
+ git = 'https://github.com/FEniCS/ffcx.git'
+ url = 'https://github.com/FEniCS/ffcx/archive/v0.4.2.tar.gz'
+ maintainers = ['ma595']
+
+ version('main', branch='main')
+ version('0.4.2', sha256='3be6eef064d6ef907245db5b6cc15d4e603762e68b76e53e099935ca91ef1ee4')
+
+ root_cmakelists_dir = 'cmake'