commit: 3ba91476bf7a524125c8fa249c7adb1acde70cc3
Author: Marek Szuba <marecki <AT> gentoo <DOT> org>
AuthorDate: Mon Nov 30 01:04:02 2020 +0000
Commit: Marek Szuba <marecki <AT> gentoo <DOT> org>
CommitDate: Mon Nov 30 01:08:27 2020 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3ba91476
dev-lua/luarocks-3.4.0-r100: add a postinst message about Lua versions
Signed-off-by: Marek Szuba <marecki <AT> gentoo.org>
dev-lua/luarocks/luarocks-3.4.0-r100.ebuild | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
diff --git a/dev-lua/luarocks/luarocks-3.4.0-r100.ebuild
b/dev-lua/luarocks/luarocks-3.4.0-r100.ebuild
index ac482071bc6..6dcf557087a 100644
--- a/dev-lua/luarocks/luarocks-3.4.0-r100.ebuild
+++ b/dev-lua/luarocks/luarocks-3.4.0-r100.ebuild
@@ -59,3 +59,20 @@ src_install() {
{ find "${D}" -type f -exec sed -i -e "s:${D}::g" {} \;; } || die
}
+
+pkg_postinst() {
+ local lua_abi_ver
+ if use lua_single_target_luajit; then
+ lua_abi_ver="5.1"
+ else
+ lua_abi_ver=${ELUA#lua}
+ fi
+ elog
+ elog "To manage rocks for a Lua version other than the current
${CATEGORY}/${PN} default (${lua_abi_ver})"
+ elog "you can use the command-line option --lua-version, e.g."
+ elog
+ elog " luarocks --lua-version 5.3 install luasocket"
+ elog
+ elog "(use 5.1 for luajit). Note that the relevant Lua version must
already be present in the system."
+ elog
+}