From a962b92c468ea99b30da4d9a96edab90501eafae Mon Sep 17 00:00:00 2001 From: Martin Kletzander Date: Fri, 14 Jan 2022 10:43:51 +0100 Subject: 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 Closes: https://github.com/gentoo/gentoo/pull/23790 Signed-off-by: Joonas Niilola --- app-misc/hivex/hivex-1.3.20.ebuild | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'app-misc/hivex') 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 -- cgit v1.2.3-65-gdbad