commit:     0ceaf9ef9abf10d32e6a21cea95f4fec73be9c32
Author:     Marek Szuba <marecki <AT> gentoo <DOT> org>
AuthorDate: Mon Dec  7 12:44:17 2020 +0000
Commit:     Marek Szuba <marecki <AT> gentoo <DOT> org>
CommitDate: Mon Dec  7 13:12:19 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0ceaf9ef

app-arch/rpm-4.16.0: migrate to lua-single.eclass

Trivial, upstream autoconf scripts use pkg-config to find Lua. Supports
lua5-2 only i.e. same as before the migration.

No change to the mask.

Closes: https://bugs.gentoo.org/752519
Signed-off-by: Marek Szuba <marecki <AT> gentoo.org>

 app-arch/rpm/rpm-4.16.0.ebuild | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/app-arch/rpm/rpm-4.16.0.ebuild b/app-arch/rpm/rpm-4.16.0.ebuild
index 67132e47a62..f6c94ab43d7 100644
--- a/app-arch/rpm/rpm-4.16.0.ebuild
+++ b/app-arch/rpm/rpm-4.16.0.ebuild
@@ -3,9 +3,10 @@
 
 EAPI=7
 
+LUA_COMPAT=( lua5-2 )
 PYTHON_COMPAT=( python3_{6,7,8,9} )
 
-inherit autotools flag-o-matic perl-module python-single-r1
+inherit autotools flag-o-matic lua-single perl-module python-single-r1
 
 DESCRIPTION="Red Hat Package Management Utils"
 HOMEPAGE="https://rpm.org
@@ -20,7 +21,8 @@ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc 
~ppc64 ~s390 ~sparc ~
 RESTRICT="test"
 
 IUSE="acl caps doc dbus lua nls python selinux test +zstd"
-REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
+REQUIRED_USE="lua? ( ${LUA_REQUIRED_USE} )
+       python? ( ${PYTHON_REQUIRED_USE} )"
 
 CDEPEND="!app-arch/rpm5
        app-arch/libarchive
@@ -36,7 +38,7 @@ CDEPEND="!app-arch/rpm5
        dev-libs/nss
        python? ( ${PYTHON_DEPS} )
        nls? ( virtual/libintl )
-       lua? ( dev-lang/lua:5.2 )
+       lua? ( ${LUA_DEPS} )
        acl? ( virtual/acl )
        caps? ( >=sys-libs/libcap-2.0 )
        zstd? ( app-arch/zstd )
@@ -52,6 +54,7 @@ RDEPEND="${CDEPEND}
 "
 
 pkg_setup() {
+       use lua && lua-single_pkg_setup
        use python && python-single-r1_pkg_setup
 }
 

Reply via email to