summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Szuba <marecki@gentoo.org>2020-12-07 13:44:17 +0100
committerMarek Szuba <marecki@gentoo.org>2020-12-07 14:12:19 +0100
commit0ceaf9ef9abf10d32e6a21cea95f4fec73be9c32 (patch)
tree331333ae2b58174f9b473786ef7564c5f8b82f67 /app-arch/rpm
parentapp-admin/ps_mem: add python3_9 support (diff)
downloadgentoo-0ceaf9ef9abf10d32e6a21cea95f4fec73be9c32.tar.gz
gentoo-0ceaf9ef9abf10d32e6a21cea95f4fec73be9c32.tar.bz2
gentoo-0ceaf9ef9abf10d32e6a21cea95f4fec73be9c32.zip
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@gentoo.org>
Diffstat (limited to 'app-arch/rpm')
-rw-r--r--app-arch/rpm/rpm-4.16.0.ebuild9
1 files 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 67132e47a629..f6c94ab43d7b 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
}