summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian F. A. Negre <christianfannegre@gmail.com>2023-03-21 12:32:32 -0600
committerGitHub <noreply@github.com>2023-03-21 11:32:32 -0700
commitf49e9591b7702268ddc28ce6cae81da4e0b6a4fc (patch)
treeeeea80720757909fb83087f69dbf0a66879e97bb
parenta0bc32c319a047b3258450d278532389cfa605b3 (diff)
downloadspack-f49e9591b7702268ddc28ce6cae81da4e0b6a4fc.tar.gz
spack-f49e9591b7702268ddc28ce6cae81da4e0b6a4fc.tar.bz2
spack-f49e9591b7702268ddc28ce6cae81da4e0b6a4fc.tar.xz
spack-f49e9591b7702268ddc28ce6cae81da4e0b6a4fc.zip
lcc: new package (#36100)
* lcc: new package * update CMake version per `CMakeLists.txt` --------- Co-authored-by: Todd Gamblin <tgamblin@llnl.gov>
-rw-r--r--var/spack/repos/builtin/packages/lcc/package.py39
1 files changed, 39 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/lcc/package.py b/var/spack/repos/builtin/packages/lcc/package.py
new file mode 100644
index 0000000000..e61ed13531
--- /dev/null
+++ b/var/spack/repos/builtin/packages/lcc/package.py
@@ -0,0 +1,39 @@
+# Copyright 2013-2023 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 Lcc(CMakePackage):
+ """Los Alamos Crystal Cut (LCC) is a simple crystal builder. It is an easy-to-use
+ and easy-to-develop code to make crystal solid/shape and slabs from a crystal
+ lattice. Provided you have a ‘.pdb‘ file containing your lattice basis you can
+ create a solid or slab from command line."""
+
+ homepage = "https://github.com/lanl/LCC.git"
+ url = "https://github.com/lanl/LCC/archive/refs/tags/v1.0.1.tar.gz"
+ git = "https://github.com/lanl/LCC.git"
+
+ maintainers("cnegre")
+
+ version("main", branch="main", preferred=True)
+ version("1.0.1", sha256="fa13364dcdf3b1f8d80fc768f0e7ad3849f8d98091fb96926100a6764f836020")
+ version("1.0.0", sha256="750ce09e809a4e85ae3219fd537dc84a923fe3d3683b26b5d915eccfd1f0120c")
+
+ variant("shared", default=False, description="Build shared libs")
+
+ depends_on("cmake@3.10:", type="build")
+ depends_on("bml")
+ depends_on("qmd-progress")
+
+ root_cmakelists_dir = "src"
+
+ def cmake_args(self):
+ args = [
+ "-DCMAKE_Fortran_FLAGS=-ffree-line-length-none",
+ "-DCMAKE_Fortran_FLAGS=-g -fopenmp",
+ self.define_from_variant("BUILD_SHARED_LIBS", "shared"),
+ ]
+ return args