commit:     9b1436c7434d763f06dda60229747997664fb5c5
Author:     David Seifert <soap <AT> gentoo <DOT> org>
AuthorDate: Mon Sep 26 15:43:35 2022 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Mon Sep 26 15:43:35 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9b1436c7

games-arcade/epiar: request deprecated lua-5.1 API

Closes: https://bugs.gentoo.org/872803
Signed-off-by: David Seifert <soap <AT> gentoo.org>

 games-arcade/epiar/epiar-0.5.1-r1.ebuild | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

diff --git a/games-arcade/epiar/epiar-0.5.1-r1.ebuild 
b/games-arcade/epiar/epiar-0.5.1-r1.ebuild
index ba4c0b862a2c..994a9dc22a21 100644
--- a/games-arcade/epiar/epiar-0.5.1-r1.ebuild
+++ b/games-arcade/epiar/epiar-0.5.1-r1.ebuild
@@ -1,10 +1,10 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
 
 LUA_COMPAT=( lua5-1 )
-inherit autotools lua-single
+inherit autotools flag-o-matic lua-single
 
 DESCRIPTION="Space adventure/combat game"
 HOMEPAGE="https://epiar.net/";
@@ -41,6 +41,14 @@ src_prepare() {
        eautoreconf
 }
 
+src_configure() {
+       # -DLUA_COMPAT_OPENLIB=1 is required to enable the
+       # deprecated (in 5.1) luaL_openlib API (#872803)
+       append-cppflags -DLUA_COMPAT_OPENLIB=1
+
+       default
+}
+
 src_install() {
        default
 

Reply via email to