summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthieu Dorier <mdorier@anl.gov>2021-07-26 06:47:04 +0100
committerGitHub <noreply@github.com>2021-07-26 07:47:04 +0200
commited0c3233db0b030e32b392be94d723edc1ba60be (patch)
treef476ccf04a9639c4b33a40d13e5ac3de3de4b7ae
parent794931f0d7f698caaa5e18d30ad681bdd84f4c00 (diff)
downloadspack-ed0c3233db0b030e32b392be94d723edc1ba60be.tar.gz
spack-ed0c3233db0b030e32b392be94d723edc1ba60be.tar.bz2
spack-ed0c3233db0b030e32b392be94d723edc1ba60be.tar.xz
spack-ed0c3233db0b030e32b392be94d723edc1ba60be.zip
lua-sol2: added new package (#25067)
-rw-r--r--var/spack/repos/builtin/packages/lua-sol2/package.py29
1 files changed, 29 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/lua-sol2/package.py b/var/spack/repos/builtin/packages/lua-sol2/package.py
new file mode 100644
index 0000000000..96678debf2
--- /dev/null
+++ b/var/spack/repos/builtin/packages/lua-sol2/package.py
@@ -0,0 +1,29 @@
+# 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 LuaSol2(CMakePackage):
+ """sol2 is a C++ library binding to Lua."""
+
+ homepage = "https://github.com/ThePhD/sol2"
+ url = "https://github.com/ThePhD/sol2/archive/refs/tags/v3.2.2.tar.gz"
+ git = "https://github.com/ThePhD/sol2.git"
+
+ version('develop', branch='develop')
+ version('3.2.3', sha256='f74158f92996f476786be9c9e83f8275129bb1da2a8d517d050421ac160a4b9e')
+ version('3.2.2', sha256='141790dae0c1821dd2dbac3595433de49ba72545845efc3ec7d88de8b0a3b2da')
+ version('3.2.1', sha256='b10f88dc1246f74a10348faef7d2c06e2784693307df74dcd87c4641cf6a6828')
+ version('3.2.0', sha256='733f03d82df6e0e8a15967831840d240dcb2c606982bec753bd173a9cc1b3435')
+ version('3.0.3', sha256='bf089e50387edfc70063e24fd7fbb693cceba4a50147d864fabedd1b33483582')
+ version('3.0.2', sha256='3f5f369eae6732ae9a315fe4370bbdc9900d2f2f4f291206aeb5b2d5533f0c99')
+
+ # Lua is not needed when building, since sol2 is headers-only
+ depends_on('lua', type=('link', 'run'))
+
+ def cmake_args(self):
+ args = ['-DSOL2_ENABLE_INSTALL=ON']
+ return args