1 |
-----BEGIN PGP SIGNED MESSAGE----- |
2 |
Hash: SHA1 |
3 |
|
4 |
Dne 19.2.2010 02:22, Ryan Hill napsal(a): |
5 |
> On Thu, 18 Feb 2010 23:33:42 +0100 |
6 |
> Tomáš Chvátal <scarabeus@g.o> wrote: |
7 |
> |
8 |
>> Hi, |
9 |
>> we prepared new eclass for x11 packages that should be used as |
10 |
>> replacement for x-modular.eclass. |
11 |
>> |
12 |
>> After long discussion with others on irc we choose to name it as |
13 |
>> xorg-2.eclass. |
14 |
>> |
15 |
>> Whats new/changed: |
16 |
> |
17 |
>> Fonts handling slightly rewritten to be done as written in specs (or i |
18 |
>> hope i did so :]). |
19 |
> |
20 |
> It'd be nice to move all of the fonts stuff to font.eclass. Right now we |
21 |
> have two similar-but-not-quite font systems that tend to do the same thing |
22 |
> but drift apart sometimes in incompatible ways. |
23 |
> |
24 |
> But I know I don't have time to do it and it seems to work well enough right now, so |
25 |
> meh. ;) |
26 |
> |
27 |
>>>> [[ ${PN} == util-macros ]] || DEPEND+=" >=x11-misc/util-macros-1.3.0" |
28 |
>>>> [[ ${PN} == font-util ]] || DEPEND+=" >=media-fonts/font-util-1.1.1-r1" |
29 |
>>> |
30 |
>>> Do non-fonts really need font-util there? Looks like that sets up a nice |
31 |
>>> circular dependency. |
32 |
>> The same dep is in x-modular eclass. I spoted it in some fonts packages |
33 |
>> as required so i left it there. |
34 |
>> Good work/idea would be if someone doublecheck that one :] |
35 |
> |
36 |
> Hmm, I don't see it in x-modular. It shouldn't be required for non-fonts |
37 |
> unless something in git needs it for some wacky reason. |
38 |
> |
39 |
> |
40 |
> remove_font_metadata() { |
41 |
> if [[ ${FONT_DIR} != Speedo && ${FONT_DIR} != CID ]]; then |
42 |
> einfo "Removing font metadata" |
43 |
> rm -rf "${ED}"/usr/share/fonts/${FONT_DIR}/fonts.{scale,dir,cache-1} |
44 |
> fi |
45 |
> } |
46 |
> |
47 |
> Sorry, I forgot I was going to follow up on this.. FONT_DIR is a |
48 |
> space-separated list of directories. The only example of a font with |
49 |
> multiple directories I know of is font-misc-ethiopic. In that case, the |
50 |
> command run here would be: |
51 |
> |
52 |
> rm -rf /usr/share/fonts/TTF OTF/fonts.{scale,dir,cache-1} |
53 |
> |
54 |
> :/ |
55 |
> |
56 |
> cleanup_fonts(), create_fonts_scale(), and create_fonts_dir() are similarly |
57 |
> broken with multiple directories. |
58 |
> |
59 |
> |
60 |
> create_fonts_scale() { |
61 |
> if [[ ${DIR} != Speedo && ${DIR} != CID ]]; then |
62 |
> |
63 |
> I think you mean ${FONT_DIR} here. |
64 |
YEAH :P Fixed in git. |
65 |
> |
66 |
> Honestly, you might consider dropping TTF from font-misc-ethiopic and only |
67 |
> install the OTF version. It would simplify things greatly. |
68 |
> |
69 |
> |
70 |
Well everywhere the FONT_DIR is treated as one dir, so maybe we should |
71 |
just bash to submission the one offending ebuild and be done with it. |
72 |
|
73 |
I can of course write logic to count with space separated list... |
74 |
You decide, after all you are font guy :P Or actually anyone share your |
75 |
opinions about this :] |
76 |
|
77 |
Tomas |
78 |
-----BEGIN PGP SIGNATURE----- |
79 |
Version: GnuPG v2.0.14 (GNU/Linux) |
80 |
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ |
81 |
|
82 |
iEYEARECAAYFAkuFkh4ACgkQHB6c3gNBRYfQJQCfZnjWiT6GtKloZCMncnWe/Aas |
83 |
VRsAoM5nHXldDiygrYMyZPg9aLB46G0V |
84 |
=Kooc |
85 |
-----END PGP SIGNATURE----- |