Gentoo Archives: gentoo-portage-dev

From: Zac Medico <zmedico@g.o>
To: gentoo-portage-dev@l.g.o
Subject: Re: [gentoo-portage-dev] Portage color.map settings
Date: Sat, 15 Aug 2009 09:04:35
Message-Id: 4A867A41.4000009@gentoo.org
In Reply to: [gentoo-portage-dev] Portage color.map settings by Philipp Riegger
1 Philipp Riegger wrote:
2 > Hi!
3 >
4 > Given the following portage output:
5 >
6 > "
7 > troy ~ # USE="examples" emerge -pv python
8 > --- Invalid atom
9 > in /usr/portage/local/layman/dev-zero/profiles/package.mask:
10 > =dev-libs/boost-log-scm
11 >
12 > These are the packages that would be merged, in order:
13 >
14 > Calculating dependencies... done!
15 > [ebuild R ] dev-lang/python-3.1 USE="-build -doc examples* gdbm
16 > ipv6 ncurses readline sqlite ssl threads tk -ucs2 -wininst xml" 0 kB
17 >
18 > Total: 1 package (1 reinstall), Size of downloads: 0 kB
19 > troy ~ #
20 > "
21 >
22 > The "R" after "[ebuild" appears in yellow. The "examples" (USE-flag) in
23 > green. How can I switch those to darker colors?
24
25 With >=portage-2.2_rc34, this patch is included:
26
27 http://bugs.gentoo.org/show_bug.cgi?id=274279
28
29 With that you can do things like yellow=darkblue and green=darkgreen.
30
31 It would be a better if we added special styles like
32 PKG_REINSTALL=darkblue and PKG_NEW_USE_ENABLED=darkgreen. I'll
33 accept patches to add new styles such as these. The relevant code
34 for the colors you mentioned is in depgraph.py:
35
36 http://sources.gentoo.org/viewcvs.py/portage/main/trunk/pym/_emerge/depgraph.py?view=markup
37
38 All that needs to be done is to replace hardcoded colors such as
39 green(flag) with colorize('PKG_NEW_USE_ENABLED', flag).
40
41 > Thanks,
42 > Philipp
43 >
44
45
46 --
47 Thanks,
48 Zac

Replies

Subject Author
Re: [gentoo-portage-dev] Portage color.map settings Philipp Riegger <lists@××××××××××××.de>