Gentoo Logo
Gentoo Spaceship

Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-dev
Lists: gentoo-dev: < Prev By Thread Next > < Prev By Date Next >
To: gentoo-dev@g.o
From: Ryan Hill <dirtyepic@g.o>
Subject: Re: [RFC] New eclass for x11 packages
Date: Thu, 18 Feb 2010 19:22:17 -0600
On Thu, 18 Feb 2010 23:33:42 +0100
Tomáš Chvátal <scarabeus@g.o> wrote:

> Hi,
> we prepared new eclass for x11 packages that should be used as
> replacement for x-modular.eclass.
> After long discussion with others on irc we choose to name it as
> xorg-2.eclass.
> Whats new/changed:

> Fonts handling slightly rewritten to be done as written in specs (or i
> hope i did so :]).

It'd be nice to move all of the fonts stuff to font.eclass.  Right now we
have two similar-but-not-quite font systems that tend to do the same thing
but drift apart sometimes in incompatible ways.

But I know I don't have time to do it and it seems to work well enough right now, so
meh. ;)

>>> 	[[ ${PN} == util-macros ]] || DEPEND+=" >=x11-misc/util-macros-1.3.0"
>>> 	[[ ${PN} == font-util ]] || DEPEND+=" >=media-fonts/font-util-1.1.1-r1"  
>> Do non-fonts really need font-util there?  Looks like that sets up a nice 
>> circular dependency.  
>The same dep is in x-modular eclass. I spoted it in some fonts packages
>as required so i left it there.
>Good work/idea would be if someone doublecheck that one :]

Hmm, I don't see it in x-modular.  It shouldn't be required for non-fonts
unless something in git needs it for some wacky reason.

  remove_font_metadata() {
	  if [[ ${FONT_DIR} != Speedo && ${FONT_DIR} != CID ]]; then
		  einfo "Removing font metadata"
		  rm -rf "${ED}"/usr/share/fonts/${FONT_DIR}/fonts.{scale,dir,cache-1}

Sorry, I forgot I was going to follow up on this..  FONT_DIR is a
space-separated list of directories.  The only example of a font with
multiple directories I know of is font-misc-ethiopic.  In that case, the
command run here would be:

  rm -rf /usr/share/fonts/TTF OTF/fonts.{scale,dir,cache-1}


cleanup_fonts(), create_fonts_scale(), and create_fonts_dir() are similarly
broken with multiple directories.

  create_fonts_scale() {
	  if [[ ${DIR} != Speedo && ${DIR} != CID ]]; then

I think you mean ${FONT_DIR} here.  

Honestly, you might consider dropping TTF from font-misc-ethiopic and only
install the OTF version.  It would simplify things greatly.

fonts,                                            by design, by neglect
gcc-porting,                              for a fact or just for effect
wxwidgets @ gentoo     EFFD 380E 047A 4B51 D2BD C64F 8AA8 8346 F9A4 0662
signature.asc (PGP signature)
Re: Re: [RFC] New eclass for x11 packages
-- Tomáš Chvátal
[RFC] New eclass for x11 packages
-- Tomáš Chvátal
Lists: gentoo-dev: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
Re: [RFC] New eclass for x11 packages
Next by thread:
Re: Re: [RFC] New eclass for x11 packages
Previous by date:
Re: [RFC] New eclass for x11 packages
Next by date:
RFC: ACCEPT_LICENSE and deprecation of check_license

Updated Jun 29, 2012

Summary: Archive of the gentoo-dev mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.