# Copyright 2020-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 LUA_COMPAT=( lua5-{1..4} luajit ) inherit lua toolchain-funcs DESCRIPTION="A UTF-8 support module for Lua and LuaJIT" HOMEPAGE="https://github.com/starwing/luautf8" SRC_URI="https://github.com/starwing/luautf8/archive/${PV}.tar.gz -> ${P}.tar.gz" S="${WORKDIR}/${PN//-/}-${PV}" LICENSE="MIT" SLOT="0" KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86" IUSE="test" REQUIRED_USE="${LUA_REQUIRED_USE}" RESTRICT="!test? ( test )" RDEPEND="${LUA_DEPS}" DEPEND="${RDEPEND}" BDEPEND=" virtual/pkgconfig ${LUA_DEPS} " src_prepare() { local unicodedir="${EPREFIX}"/usr/share/unicode local ucddir if has_verson '