From 29658eddcc12dc3919fd0a575f4254a0dd708069 Mon Sep 17 00:00:00 2001 From: Alberto Invernizzi <9337627+albestro@users.noreply.github.com> Date: Thu, 1 Feb 2024 08:57:12 +0100 Subject: Lua: better specify providers in LuaPackage base class (#42392) --- lib/spack/spack/build_systems/lua.py | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) (limited to 'lib') 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): -- cgit v1.2.3-70-g09d2