commit: a962b92c468ea99b30da4d9a96edab90501eafae Author: Martin Kletzander <nert.pinx <AT> gmail <DOT> com> AuthorDate: Fri Jan 14 09:43:51 2022 +0000 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org> CommitDate: Fri Feb 11 14:56:44 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a962b92c
app-misc/hivex: Do not depend hardly on ruby The ruby-ng eclass exports src_prepare function and it should be only called conditionally just like all the other functions, so add a better src_prepare function as otherwise the build can fail if no compatible ruby target is selected in RUBY_TARGETS even if hivex is emerging with -ruby. Package-Manager: Portage-3.0.30, Repoman-3.0.3 Signed-off-by: Martin Kletzander <nert.pinx <AT> gmail.com> Closes: https://github.com/gentoo/gentoo/pull/23790 Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org> app-misc/hivex/hivex-1.3.20.ebuild | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/app-misc/hivex/hivex-1.3.20.ebuild b/app-misc/hivex/hivex-1.3.20.ebuild index 7c8d10963bbb..60d911612b9d 100644 --- a/app-misc/hivex/hivex-1.3.20.ebuild +++ b/app-misc/hivex/hivex-1.3.20.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2021 Gentoo Authors +# Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -65,6 +65,12 @@ src_unpack() { cp -prlP "${WORKDIR}/${P}" "${WORKDIR}"/all || die } +src_prepare() { + default + use perl && perl-module_src_prepare + use ruby && ruby-ng_src_prepare +} + src_configure() { use ruby && ruby-ng_src_configure
