Lua: better specify providers in LuaPackage base class (#42392)

This commit is contained in:
Alberto Invernizzi 2024-02-01 08:57:12 +01:00 committed by GitHub
parent 2fc0d05a55
commit 29658eddcc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -29,15 +29,12 @@ class LuaPackage(spack.package_base.PackageBase):
with when("build_system=lua"): with when("build_system=lua"):
depends_on("lua-lang") depends_on("lua-lang")
extends("lua", when="^lua") with when("^[virtuals=lua-lang] lua"):
with when("^lua-luajit"): extends("lua")
extends("lua-luajit") with when("^[virtuals=lua-lang] lua-luajit"):
depends_on("luajit") extends("lua-luajit+lualinks")
depends_on("lua-luajit+lualinks") with when("^[virtuals=lua-lang] lua-luajit-openresty"):
with when("^lua-luajit-openresty"): extends("lua-luajit-openresty+lualinks")
extends("lua-luajit-openresty")
depends_on("luajit")
depends_on("lua-luajit-openresty+lualinks")
@property @property
def lua(self): def lua(self):