1 |
commit: 78920cabe45bff25328265a21b6fdd695c581be3 |
2 |
Author: Tomáš Chvátal <scarabeus <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Aug 2 20:29:12 2016 +0000 |
4 |
Commit: Tomas Chvatal <scarabeus <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Aug 2 20:40:17 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=78920cab |
7 |
|
8 |
office-ext-r1.eclass: avoid repoman unknown dependency warning |
9 |
|
10 |
Signed-off-by: Tomáš Chvátal <scarabeus <AT> gentoo.org> |
11 |
|
12 |
eclass/office-ext-r1.eclass | 23 ++++++++++++++++------- |
13 |
1 file changed, 16 insertions(+), 7 deletions(-) |
14 |
|
15 |
diff --git a/eclass/office-ext-r1.eclass b/eclass/office-ext-r1.eclass |
16 |
index f9492a8..e2d213d 100644 |
17 |
--- a/eclass/office-ext-r1.eclass |
18 |
+++ b/eclass/office-ext-r1.eclass |
19 |
@@ -72,14 +72,23 @@ RDEPEND="" |
20 |
|
21 |
for i in ${OFFICE_IMPLEMENTATIONS[@]}; do |
22 |
IUSE+=" office_implementation_${i}" |
23 |
- RDEPEND+=" |
24 |
- office_implementation_${i}? ( |
25 |
- || ( |
26 |
- app-office/${i}${OFFICE_REQ_USE} |
27 |
- app-office/${i}-bin${OFFICE_REQ_USE} |
28 |
+ if [[ ${i} == "openoffice" ]]; then |
29 |
+ # special only binary |
30 |
+ RDEPEND+=" |
31 |
+ office_implementation_openoffice? ( |
32 |
+ app-office/openoffice-bin${OFFICE_REQ_USE} |
33 |
) |
34 |
- ) |
35 |
- " |
36 |
+ " |
37 |
+ else |
38 |
+ RDEPEND+=" |
39 |
+ office_implementation_${i}? ( |
40 |
+ || ( |
41 |
+ app-office/${i}${OFFICE_REQ_USE} |
42 |
+ app-office/${i}-bin${OFFICE_REQ_USE} |
43 |
+ ) |
44 |
+ ) |
45 |
+ " |
46 |
+ fi |
47 |
done |
48 |
|
49 |
REQUIRED_USE="|| ( " |