summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlberto Invernizzi <9337627+albestro@users.noreply.github.com>2024-02-01 08:57:12 +0100
committerGitHub <noreply@github.com>2024-02-01 08:57:12 +0100
commit29658eddcc12dc3919fd0a575f4254a0dd708069 (patch)
treec43e29f2446e0c3731fc2609bbb6fbe55f261939
parent2fc0d05a5544d0e3e7927ec350af79d7e9f82643 (diff)
downloadspack-29658eddcc12dc3919fd0a575f4254a0dd708069.tar.gz
spack-29658eddcc12dc3919fd0a575f4254a0dd708069.tar.bz2
spack-29658eddcc12dc3919fd0a575f4254a0dd708069.tar.xz
spack-29658eddcc12dc3919fd0a575f4254a0dd708069.zip
Lua: better specify providers in LuaPackage base class (#42392)
-rw-r--r--lib/spack/spack/build_systems/lua.py15
1 files changed, 6 insertions, 9 deletions
diff --git a/lib/spack/spack/build_systems/lua.py b/lib/spack/spack/build_systems/lua.py
index d862604e90..9b19e1ef26 100644
--- a/lib/spack/spack/build_systems/lua.py
+++ b/lib/spack/spack/build_systems/lua.py
@@ -29,15 +29,12 @@ class LuaPackage(spack.package_base.PackageBase):
with when("build_system=lua"):
depends_on("lua-lang")
- extends("lua", when="^lua")
- with when("^lua-luajit"):
- extends("lua-luajit")
- depends_on("luajit")
- depends_on("lua-luajit+lualinks")
- with when("^lua-luajit-openresty"):
- extends("lua-luajit-openresty")
- depends_on("luajit")
- depends_on("lua-luajit-openresty+lualinks")
+ with when("^[virtuals=lua-lang] lua"):
+ extends("lua")
+ with when("^[virtuals=lua-lang] lua-luajit"):
+ extends("lua-luajit+lualinks")
+ with when("^[virtuals=lua-lang] lua-luajit-openresty"):
+ extends("lua-luajit-openresty+lualinks")
@property
def lua(self):