commit: 223280966bd899718c85a616f8baa0376c8d84bb Author: Sam James <sam <AT> gentoo <DOT> org> AuthorDate: Wed Apr 7 01:48:46 2021 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Wed Apr 7 01:57:41 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=22328096
app-arch/rpm: make openmp optional Closes: https://bugs.gentoo.org/779769 Signed-off-by: Sam James <sam <AT> gentoo.org> app-arch/rpm/rpm-4.16.0.ebuild | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/app-arch/rpm/rpm-4.16.0.ebuild b/app-arch/rpm/rpm-4.16.0.ebuild index 1742df61ac5..071d60b3c1d 100644 --- a/app-arch/rpm/rpm-4.16.0.ebuild +++ b/app-arch/rpm/rpm-4.16.0.ebuild @@ -6,7 +6,7 @@ EAPI=7 LUA_COMPAT=( lua5-2 ) PYTHON_COMPAT=( python3_{7,8,9} ) -inherit autotools flag-o-matic lua-single perl-module python-single-r1 +inherit autotools flag-o-matic lua-single perl-module python-single-r1 toolchain-funcs DESCRIPTION="Red Hat Package Management Utils" HOMEPAGE="https://rpm.org @@ -20,7 +20,7 @@ KEYWORDS="~alpha amd64 ~arm arm64 ~hppa ~ia64 ~mips ppc ppc64 ~s390 ~sparc x86 ~ # Tests are broken. See bug 657500 RESTRICT="test" -IUSE="acl caps doc dbus lua nls python selinux test +zstd" +IUSE="acl caps doc dbus lua nls openmp python selinux test +zstd" REQUIRED_USE="lua? ( ${LUA_REQUIRED_USE} ) python? ( ${PYTHON_REQUIRED_USE} )" @@ -53,9 +53,15 @@ RDEPEND="${CDEPEND} selinux? ( sec-policy/selinux-rpm ) " +pkg_pretend() { + [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp +} + pkg_setup() { use lua && lua-single_pkg_setup use python && python-single-r1_pkg_setup + + [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp } src_prepare() { @@ -69,7 +75,6 @@ src_prepare() { sed -i "s:@__PYTHON@:${PYTHON}:" macros.in || die "Fixing %__python failed" eapply_user - eautoreconf # Prevent automake maintainer mode from kicking in (#450448). @@ -83,6 +88,7 @@ src_configure() { --with-crypto=nss \ $(use_enable python) \ $(use_enable nls) \ + $(use_enable openmp) \ $(use_enable dbus inhibit-plugin) \ $(use_with lua) \ $(use_with caps cap) \
