From 600543a6c01a0f6a4124b06b8b4448e12bac7aae Mon Sep 17 00:00:00 2001 From: John Helmert III Date: Tue, 1 Jun 2021 14:40:57 -0500 Subject: app-misc/hivex: fix unconditional ruby usage Closes: https://bugs.gentoo.org/644768 Signed-off-by: John Helmert III --- app-misc/hivex/hivex-1.3.18.ebuild | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) (limited to 'app-misc') diff --git a/app-misc/hivex/hivex-1.3.18.ebuild b/app-misc/hivex/hivex-1.3.18.ebuild index f1c6db65034f..9e486753dc95 100644 --- a/app-misc/hivex/hivex-1.3.18.ebuild +++ b/app-misc/hivex/hivex-1.3.18.ebuild @@ -20,27 +20,28 @@ KEYWORDS="~amd64 ~x86" IUSE="ocaml readline +perl python test ruby" RDEPEND=" + dev-libs/libxml2:2 virtual/libiconv virtual/libintl - dev-libs/libxml2:2 ocaml? ( dev-lang/ocaml[ocamlopt] dev-ml/findlib[ocamlopt] ) - readline? ( sys-libs/readline:0 ) perl? ( dev-lang/perl:= dev-perl/IO-stringy ) - ruby? ( $(ruby_implementations_depend) ) python? ( ${PYTHON_DEPS} ) + readline? ( sys-libs/readline:0 ) + ruby? ( $(ruby_implementations_depend) ) " DEPEND="${RDEPEND} perl? ( - test? ( dev-perl/Pod-Coverage - dev-perl/Test-Pod-Coverage ) - ) - " + test? ( + dev-perl/Pod-Coverage + dev-perl/Test-Pod-Coverage + ) + )" ruby_add_bdepend "ruby? ( dev-ruby/rake virtual/rubygems @@ -62,11 +63,11 @@ pkg_setup() { src_unpack() { default - cp -prlP "${WORKDIR}/${P}" "${WORKDIR}"/all + cp -prlP "${WORKDIR}/${P}" "${WORKDIR}"/all || die } src_configure() { - ruby-ng_src_configure + use ruby && ruby-ng_src_configure if use perl; then pushd perl @@ -90,7 +91,8 @@ src_configure() { src_compile() { default - ruby-ng_src_compile + + use ruby && ruby-ng_src_compile } src_install() { @@ -101,7 +103,7 @@ src_install() { python_optimize fi - ruby-ng_src_install + use ruby && ruby-ng_src_install if use perl; then perl_delete_localpod -- cgit v1.2.3-65-gdbad