If memory serves me right there _are_ ebuilds which mention lua5-2 in lua_gen_cond_dep() calls. Let's steal another idea from Python eclasses and allow this implementation not to trip pattern validation in spite of no longer being supported by the eclasses, by be declaring it a historical implementation.
For the time being the list of historical implementations is empty, will move lua5-2 to it on the scheduled date. -- Marecki