Gentoo Archives: gentoo-dev

From: "Michał Górny" <mgorny@g.o>
To: gentoo-dev@l.g.o
Cc: scarabeus@g.o
Subject: Re: [gentoo-dev] [RFC] office-ext.eclass
Date: Mon, 29 Aug 2011 07:23:59
Message-Id: 20110829092456.42593566@pomiocik.lan
In Reply to: [gentoo-dev] [RFC] office-ext.eclass by "Tomáš Chvátal"
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

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-dev] [RFC] office-ext.eclass "Tomáš Chvátal" <scarabeus@g.o>