1 |
On Mon, 29 Aug 2011 09:11:31 +0200 |
2 |
Tomáš Chvátal <scarabeus@g.o> wrote: |
3 |
|
4 |
> # @ECLASS: openoffice.eclass |
5 |
|
6 |
Ekhm. |
7 |
|
8 |
Also I think, you should use 'openoffice' in the name anyway, |
9 |
or 'libreoffice', or whatever suggesting the actual office packages |
10 |
branch. |
11 |
|
12 |
> # @ECLASS-VARIABLE: OOO_EXTENSIONS |
13 |
> # @REQUIRED |
14 |
> # @DEFAULT_UNSET |
15 |
|
16 |
I don't think you're supposed to mix these two. |
17 |
|
18 |
> openoffice-ext_get_implementation() { |
19 |
> debug-print-function ${FUNCNAME} "$@" |
20 |
> local implementations="libreoffice openoffice" |
21 |
|
22 |
Be modern, use an array :D. |
23 |
|
24 |
> die "Could not determine office implementation!" |
25 |
|
26 |
That sounds weird. |
27 |
|
28 |
> } |
29 |
|
30 |
> openoffice-ext_src_install() { |
31 |
> debug-print-function ${FUNCNAME} "$@" |
32 |
> local i |
33 |
> |
34 |
> insinto |
35 |
> $(openoffice-ext_get_implementation)/share/extension/install/ for i |
36 |
> in ${OOO_EXTENSIONS}; do doins ${i} |
37 |
> done |
38 |
|
39 |
I think you should use local scope if you're intending to use 'insinto'. |
40 |
|
41 |
-- |
42 |
Best regards, |
43 |
Michał Górny |