From 78920cabe45bff25328265a21b6fdd695c581be3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Tue, 2 Aug 2016 22:29:12 +0200 Subject: [PATCH] office-ext-r1.eclass: avoid repoman unknown dependency warning MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Tomáš Chvátal --- eclass/office-ext-r1.eclass | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/eclass/office-ext-r1.eclass b/eclass/office-ext-r1.eclass index f9492a839f31..e2d213dea4e1 100644 --- a/eclass/office-ext-r1.eclass +++ b/eclass/office-ext-r1.eclass @@ -72,14 +72,23 @@ RDEPEND="" for i in ${OFFICE_IMPLEMENTATIONS[@]}; do IUSE+=" office_implementation_${i}" - RDEPEND+=" - office_implementation_${i}? ( - || ( - app-office/${i}${OFFICE_REQ_USE} - app-office/${i}-bin${OFFICE_REQ_USE} + if [[ ${i} == "openoffice" ]]; then + # special only binary + RDEPEND+=" + office_implementation_openoffice? ( + app-office/openoffice-bin${OFFICE_REQ_USE} ) - ) - " + " + else + RDEPEND+=" + office_implementation_${i}? ( + || ( + app-office/${i}${OFFICE_REQ_USE} + app-office/${i}-bin${OFFICE_REQ_USE} + ) + ) + " + fi done REQUIRED_USE="|| ( " -- 2.26.2