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