summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Szuba <marecki@gentoo.org>2020-12-20 18:49:09 +0000
committerMarek Szuba <marecki@gentoo.org>2020-12-20 18:52:41 +0000
commit7bf2e7f81360b6cc09285cb567159233f4670c05 (patch)
tree0f81800775103b7fa02cf104b1e270b50cdb2892 /net-mail/dovecot/files
parentmedia-gfx/scrot: Stabilize 1.4 arm, #760372 (diff)
downloadgentoo-7bf2e7f81360b6cc09285cb567159233f4670c05.tar.gz
gentoo-7bf2e7f81360b6cc09285cb567159233f4670c05.tar.bz2
gentoo-7bf2e7f81360b6cc09285cb567159233f4670c05.zip
net-mail/dovecot: migrate to lua-single.eclass
Simple enough, just needed an autoconf patch to use the Lua implementation specified by $ELUA instead of enumerating PUC Lua versions. Nb. autoconf scripts also mention LuaJIT but in a somewhat different context, leave it to the maintainers of this package to decide whether they want to have it supported or not. Closes: https://bugs.gentoo.org/752819 Signed-off-by: Marek Szuba <marecki@gentoo.org>
Diffstat (limited to 'net-mail/dovecot/files')
-rw-r--r--net-mail/dovecot/files/dovecot-2.3.11.3-autoconf-lua-version.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/net-mail/dovecot/files/dovecot-2.3.11.3-autoconf-lua-version.patch b/net-mail/dovecot/files/dovecot-2.3.11.3-autoconf-lua-version.patch
new file mode 100644
index 000000000000..5572271929ef
--- /dev/null
+++ b/net-mail/dovecot/files/dovecot-2.3.11.3-autoconf-lua-version.patch
@@ -0,0 +1,17 @@
+--- a/m4/want_lua.m4
++++ b/m4/want_lua.m4
+@@ -13,13 +13,12 @@
+ AC_MSG_RESULT([$with_lua])
+
+ AS_IF([test "x$with_lua" != "xno"],
+- [for LUAPC in lua5.3 lua-5.3 lua53 lua5.2 lua-5.2 lua52 lua5.1 lua-5.1 lua51 lua; do
++ [
+ PKG_CHECK_MODULES([LUA], $LUAPC >= 5.1, [
+ AC_DEFINE([HAVE_LUA], [1], [Define to 1 if you have lua])
+ with_lua=yes
+ ], [LUAPC=""]) # otherwise pkg_check will fail
+ if test "x$LUA_LIBS" != "x"; then break; fi
+- done
+ ])
+
+ AS_IF([test "x$with_lua" = "xyes"], [