1 |
Neil Bothwick <neil@××××××××××.uk> writes: |
2 |
|
3 |
> On Tue, 06 Apr 2010 11:17:14 -0500, Harry Putnam wrote: |
4 |
> |
5 |
>> > You can set features on a per-package basis by putting FEATURES="blah" |
6 |
>> > into /etc/portage/env/category/package. |
7 |
>> |
8 |
>> If that would also work for something like always using a specific |
9 |
>> EXTRA_ECONF for a certain package: |
10 |
>> |
11 |
>> EXTRA_ECONF="--enable-rootcommit" <for the cvs package> |
12 |
> |
13 |
> It would. |
14 |
> |
15 |
>> Can you show an example of the necessary syntax? |
16 |
> |
17 |
> Just put the variable assignment in the file, it is sourced by bash when |
18 |
> the ebuild is parsed, so most things that can go in an ebuild can go |
19 |
> here. Usually it is used to override settings or set EXTRA_ECONF but you |
20 |
> can use it to redefine the ebuild functions. Some people put a custom |
21 |
> src_unpack() in here when they want to apply a patch, rather than |
22 |
> putting a modified ebuild in an overlay. |
23 |
|
24 |
Ahh very helpful, thank you. Especially about putting custom |
25 |
src_unpack stuff. Fussing with creating a new ebuild is a pain to us |
26 |
non devel types. |
27 |
|
28 |
But one thing is unclear. You say: |
29 |
`Just put the variable assignment in the file' |
30 |
|
31 |
You don't mean without reference to a specific package do you. |
32 |
Like: |
33 |
cat /etc/portage/env/category/package |
34 |
EXTRA_ECONF="--enable-rootcommit" |
35 |
|
36 |
So is it: |
37 |
cat /etc/portage/env/category/package |
38 |
dev-util/cvs EXTRA_ECONF="--enable-rootcommit" |
39 |
|
40 |
Or something else? |