Gentoo Archives: gentoo-dev

From: Ryan Hill <dirtyepic@g.o>
To: gentoo-dev@l.g.o
Subject: [gentoo-dev] Re: [RFC] New eclass for x11 packages
Date: Fri, 19 Feb 2010 01:21:10
Message-Id: 20100218192217.4634d04c@gentoo.org
In Reply to: [gentoo-dev] [RFC] New eclass for x11 packages by "Tomáš Chvátal"
1 On Thu, 18 Feb 2010 23:33:42 +0100
2 Tomáš Chvátal <scarabeus@g.o> wrote:
3
4 > Hi,
5 > we prepared new eclass for x11 packages that should be used as
6 > replacement for x-modular.eclass.
7 >
8 > After long discussion with others on irc we choose to name it as
9 > xorg-2.eclass.
10 >
11 > Whats new/changed:
12
13 > Fonts handling slightly rewritten to be done as written in specs (or i
14 > hope i did so :]).
15
16 It'd be nice to move all of the fonts stuff to font.eclass. Right now we
17 have two similar-but-not-quite font systems that tend to do the same thing
18 but drift apart sometimes in incompatible ways.
19
20 But I know I don't have time to do it and it seems to work well enough right now, so
21 meh. ;)
22
23 >>> [[ ${PN} == util-macros ]] || DEPEND+=" >=x11-misc/util-macros-1.3.0"
24 >>> [[ ${PN} == font-util ]] || DEPEND+=" >=media-fonts/font-util-1.1.1-r1"
25 >>
26 >> Do non-fonts really need font-util there? Looks like that sets up a nice
27 >> circular dependency.
28 >The same dep is in x-modular eclass. I spoted it in some fonts packages
29 >as required so i left it there.
30 >Good work/idea would be if someone doublecheck that one :]
31
32 Hmm, I don't see it in x-modular. It shouldn't be required for non-fonts
33 unless something in git needs it for some wacky reason.
34
35
36 remove_font_metadata() {
37 if [[ ${FONT_DIR} != Speedo && ${FONT_DIR} != CID ]]; then
38 einfo "Removing font metadata"
39 rm -rf "${ED}"/usr/share/fonts/${FONT_DIR}/fonts.{scale,dir,cache-1}
40 fi
41 }
42
43 Sorry, I forgot I was going to follow up on this.. FONT_DIR is a
44 space-separated list of directories. The only example of a font with
45 multiple directories I know of is font-misc-ethiopic. In that case, the
46 command run here would be:
47
48 rm -rf /usr/share/fonts/TTF OTF/fonts.{scale,dir,cache-1}
49
50 :/
51
52 cleanup_fonts(), create_fonts_scale(), and create_fonts_dir() are similarly
53 broken with multiple directories.
54
55
56 create_fonts_scale() {
57 if [[ ${DIR} != Speedo && ${DIR} != CID ]]; then
58
59 I think you mean ${FONT_DIR} here.
60
61 Honestly, you might consider dropping TTF from font-misc-ethiopic and only
62 install the OTF version. It would simplify things greatly.
63
64
65 --
66 fonts, by design, by neglect
67 gcc-porting, for a fact or just for effect
68 wxwidgets @ gentoo EFFD 380E 047A 4B51 D2BD C64F 8AA8 8346 F9A4 0662

Attachments

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

Replies

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