From: | Francesco Riosa <francesco@×××××××××.it> | ||
---|---|---|---|
To: | gentoo-dev@l.g.o | ||
Subject: | Re: [gentoo-dev] Unofficial Development Guide | ||
Date: | Wed, 11 May 2005 20:11:55 | ||
Message-Id: | 42826718.1050205@pnpitalia.it | ||
In Reply to: | [gentoo-dev] Unofficial Development Guide by Ciaran McCreesh |
1 | there is a small typo in |
2 | http://www.firedrop.org.uk/devmanual/eclass-writing/ |
3 | |
4 | [ Export Functions ] |
5 | ... say we had fnord.eclass |
6 | |
7 | ECLASS="fnord" |
8 | INHERITED="$INHERITED $ECLASS" |
9 | EXPORT_FUNCTIONS src_compile |
10 | |
11 | foo_src_compile() { |
12 | do_stuff || die |
13 | } |
14 | |
15 | Then an ebuild could do this: |
16 | |
17 | inherit foo.eclass |
18 | |
19 | src_compile() { |
20 | do_pre_stuff || die |
21 | foo_src_compile |
22 | do_post_stuff || die |
23 | } |
24 | |
25 | |
26 | the eclass should be called "foo" everywhere |
27 | -- |
28 | gentoo-dev@g.o mailing list |
Subject | Author |
---|---|
Re: [gentoo-dev] Unofficial Development Guide | Ciaran McCreesh <ciaranm@g.o> |