summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Helmert III <ajak@gentoo.org>2021-06-01 14:40:57 -0500
committerJohn Helmert III <ajak@gentoo.org>2021-06-01 14:43:27 -0500
commit600543a6c01a0f6a4124b06b8b4448e12bac7aae (patch)
treedebec2b77d0272b436eef4bd04742c5c5ef4eaca /app-misc/hivex
parentmedia-libs/openimageio: add 2.2.15.0 (diff)
downloadgentoo-600543a6c01a0f6a4124b06b8b4448e12bac7aae.tar.gz
gentoo-600543a6c01a0f6a4124b06b8b4448e12bac7aae.tar.bz2
gentoo-600543a6c01a0f6a4124b06b8b4448e12bac7aae.zip
app-misc/hivex: fix unconditional ruby usage
Closes: https://bugs.gentoo.org/644768 Signed-off-by: John Helmert III <ajak@gentoo.org>
Diffstat (limited to 'app-misc/hivex')
-rw-r--r--app-misc/hivex/hivex-1.3.18.ebuild24
1 files changed, 13 insertions, 11 deletions
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