From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 312EB1382C5 for ; Mon, 30 Nov 2020 01:08:42 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 49FC7E0876; Mon, 30 Nov 2020 01:08:41 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 32870E0876 for ; Mon, 30 Nov 2020 01:08:41 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id CA036341391 for ; Mon, 30 Nov 2020 01:08:39 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 0A74B474 for ; Mon, 30 Nov 2020 01:08:38 +0000 (UTC) From: "Marek Szuba" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Marek Szuba" Message-ID: <1606698507.3ba91476bf7a524125c8fa249c7adb1acde70cc3.marecki@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lua/luarocks/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-lua/luarocks/luarocks-3.4.0-r100.ebuild X-VCS-Directories: dev-lua/luarocks/ X-VCS-Committer: marecki X-VCS-Committer-Name: Marek Szuba X-VCS-Revision: 3ba91476bf7a524125c8fa249c7adb1acde70cc3 X-VCS-Branch: master Date: Mon, 30 Nov 2020 01:08:38 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 21765f28-75e5-4fa4-aad0-1863f6d64c9c X-Archives-Hash: a1088461db06248a339420b9efb36dc8 commit: 3ba91476bf7a524125c8fa249c7adb1acde70cc3 Author: Marek Szuba gentoo org> AuthorDate: Mon Nov 30 01:04:02 2020 +0000 Commit: Marek Szuba gentoo 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 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 +}